Closed
Bug 694628
Opened 15 years ago
Closed 15 years ago
"Components" deprecated warning is being applied to non-SDK addons
Categories
(addons.mozilla.org Graveyard :: Add-on Validation, defect, P1)
addons.mozilla.org Graveyard
Add-on Validation
Tracking
(Not tracked)
VERIFIED
FIXED
6.3.1
People
(Reporter: davemgarrett, Assigned: robhudson)
References
Details
Attachments
(1 file)
|
423.56 KB,
image/png
|
Details |
I just uploaded this month's Flagfox update and the addon validator is giving me a bunch of the following warning:
"Warning: The use of global `Components` is deprecated. To use chrome authority use `require("chrome")` instead."
Flagfox is a regular extension, not using the Add-on SDK, and I'm seeing one for each file, both XUL and JSM. The require("chrome") feature is from the SDK where this applies.
Comment 1•15 years ago
|
||
This seems important
Assignee: nobody → chudson
Priority: -- → P1
Target Milestone: --- → 6.2.8
Comment 2•15 years ago
|
||
FWIW, if this should be Jetpack-only, there are convenient ways to access and test for that using error bundles, namely:
err.get_resource("is_jetpack")
which will return True or None.
| Reporter | ||
Comment 3•15 years ago
|
||
I don't remember (or just can't find) any announcement about this deprecation on Planet, but it is mentioned with the SDK 1.1 release due to the addition of migration routes for non-SDK addons.
http://blog.mozilla.com/addons/2011/09/13/announcing-add-on-sdk-1-1/
https://wiki.mozilla.org/Labs/Jetpack/Release_Notes/1.1
The relnotes reference bug 663541 for the "Components" object transition, and it references bug 636145 for the final removal of support. Both are Add-on SDK bugs. The "require()" function is of course an SDK feature.
Priority: P1 → --
Target Milestone: 6.2.8 → ---
| Reporter | ||
Updated•15 years ago
|
Component: Admin/Editor Tools → Add-on Validation
QA Contact: admin-tools → add-on-validation
| Reporter | ||
Updated•15 years ago
|
Priority: -- → P1
Target Milestone: --- → 6.2.8
| Assignee | ||
Comment 4•15 years ago
|
||
Fixed in https://github.com/mozilla/amo-validator/commit/733baa6
Updating AMO...
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Comment 5•15 years ago
|
||
looks fixed at https://addons-dev.allizom.org/en-US/developers/upload/dc97c98d76ea419ebd6bbabbc91c2554
Dave, can you confirm? Thanks!
| Reporter | ||
Comment 6•15 years ago
|
||
> https://addons-dev.allizom.org/en-US/developers/upload/
> dc97c98d76ea419ebd6bbabbc91c2554
Not sure what you did there. That looks like a repack of Flagfox with extra "__MACOSX" junk in it for some reason.
I can't actually test with this month's update because the appversions list is out-of-date on that server and with bug 545882 not addressed it still chokes. Testing with 4.1.7.
https://addons.mozilla.org/en-US/developers/upload/2ed49b06db92429591f1208e7f8b1821
https://addons-dev.allizom.org/en-US/developers/upload/bd0f198100144363bc4309d88cae5cb4
With the update to the validator all 4 warnings for this are gone. Marking as verified fixed.
Note that for some reason the first 3 for the XUL files were considered "Security Tests" and the last 1 for the JSM was in the "Extension Tests". That seems odd as. Both areas have chrome privileges so I would think they would all be in one or the other.
Status: RESOLVED → VERIFIED
| Reporter | ||
Comment 7•15 years ago
|
||
5 warnings, rather; there's a 2nd one for the other JSM file buried down farther
Updated•15 years ago
|
Target Milestone: 6.2.8 → 6.3.1
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
•