This impacts any code making use of the mobile.startup module and extending the View class either via extends View or OO.inheritClass
Steps to replicate the issue (include links if applicable):
- Go to page using unsupported code
- Open developer console
What happens?:
You should see the message "[1.44] Extending View class constructor is deprecated. Please use View.make"
What should have happened instead?:
- Please use the View.make function. An example is provided.
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
Requirement
Deprecation warning: Extending the View class constructor directly is deprecated as of MediaWiki 1.44. Developers should instead use the View.make method. Ensure that no deprecation warnings appear in the console when visiting affected pages, and verify correct usage of the updated function.
BDD
Feature: Remove deprecated use of View class constructor
Scenario: No deprecation warning when visiting page using updated View code
Given I visit a page that previously used the deprecated View constructor
When I open the developer console
Then no deprecation warning related to the View constructor is displayed
And the View.make function is used insteadTest Steps
Test Case 1: Verify no deprecation warning for View constructor
- Visit a page that previously used unsupported View constructor code. https://en.m.wikipedia.org/wiki/Special:Homepage#/homepage/suggested-edits
- Open the developer console.
- AC1: Confirm there is no warning stating: “[1.44] Extending View class constructor is deprecated. Please use View.make”.
QA Results - Beta
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T381627#10696629 |
QA Results - Prod
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T381627#10696688 |


