Closed
Bug 699659
Opened 15 years ago
Closed 15 years ago
'Use of deprecated globals' message for Components in bootstrap.js
Categories
(addons.mozilla.org Graveyard :: Add-on Validation, defect)
addons.mozilla.org Graveyard
Add-on Validation
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 694628
People
(Reporter: erikvvold, Unassigned)
Details
On https://addons.mozilla.org/en-US/developers/addon/password-mask-changer/file/134787/validation
I get:
"
Use of deprecated globals
Warning: The use of global `Components` is deprecated. To use chrome authority use `require("chrome")` instead.
bootstrap.js
function logmsg(aMessage) {
var consoleService = Components.classes["@mozilla.org/consoleservice;1"]
.getService(Components.interfaces.nsIConsoleService
"
Which is not a check that needs to be performed on the bootstrap.js; use of Components on bootstrap.js is common.
Also using require("chrome"); is not possible in bootstrap.js
The warning appears for another file in the same extension, res/preferences.jsm so perhaps the validator should check if the extension is a jetpack or not first.
Comment 3•15 years ago
|
||
The dupe bug is fixed, but only new validations get the fixed rule set.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
| Assignee | ||
Updated•10 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•