Closed Bug 839695 Opened 12 years ago Closed 12 years ago

(context-menu) error during test: "The Components object is deprecated."

Categories

(Add-on SDK Graveyard :: General, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: evold, Assigned: mossop)

References

Details

Attachments

(1 file)

When I run `cfx test -f context` I see the following message twice: info: addon-sdk: [JavaScript Error: "The Components object is deprecated. It will soon be removed." {file: "javascript:self.on("click", function (node, data) { let Ci = Components["interfaces"]; self.postMessage({ tagName: node.tagName, data: data });});" line: 1}] there seems to be a `let Ci = Components["interfaces"];` line that is unused in the context-menu tests that is causing this.
I never really figured out what that was doing there, it's been in the tests for a long time. I assumed it was testing that the content script could use the Components object for some reason but I didn't dig much further.
Assignee: nobody → dtownsend+bugmail
Flags: needinfo?(dtownsend+bugmail)
Priority: -- → P2
These lines should have been removed as a part of bug 732716
Flags: needinfo?(dtownsend+bugmail)
Attachment #714093 - Flags: review?(evold)
Commits pushed to master at https://github.com/mozilla/addon-sdk https://github.com/mozilla/addon-sdk/commit/75b55a06d6bdba138f253a87fca6005f1ef31b97 Bug 839695: Remove deprecated Components usage left over from bug 732716. https://github.com/mozilla/addon-sdk/commit/1afc3d73c6e20dc88e9aba91c6ff499d4fcf69ad Merge pull request #791 from Mossop/bug839695 Fix Bug 839695: Remove deprecated Components usage left over from bug 732716 r=@erikvold
Attachment #714093 - Flags: review?(evold) → review+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: