Closed Bug 874152 Opened 12 years ago Closed 12 years ago

trusted content of panel can't access 'addon' object

Categories

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

defect
Not set
normal

Tracking

(firefox22 unaffected, firefox23+ fixed, firefox24 fixed)

RESOLVED FIXED
Tracking Status
firefox22 --- unaffected
firefox23 + fixed
firefox24 --- fixed

People

(Reporter: vikas.saurabh, Assigned: irakli)

References

Details

(Keywords: regression)

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) Gecko/20100101 Firefox/21.0 (Beta/Release) Build ID: 20130511120803 Steps to reproduce: In https://addons.mozilla.org/en-US/firefox/addon/OfflineQR/, I use 'addon' object to communicate between trusted content and main addon code. Post FF23 (Aurora channel), the access of 'addon' object isn't working from trusted content. Actual results: I find following in console: Error: ReferenceError: addon is not defined Source File: resource://jid1-5h9we5dytuz14q-at-jetpack/offline_qr/data/htmlQR/index.html?isAddon=true Line: 35 Expected results: 'addon' object should be accessible.
Bisecting mozilla/addon-sdk led to https://github.com/mozilla/addon-sdk/commit/5536d4235df0779349f1a19065b00775aeb38573 as the first commit when 'addon' object couldn't be accessed.
Attachment #753552 - Flags: review?(dtownsend+bugmail)
I fixed that regression and think we should probably uplift the change.
Attachment #753552 - Flags: review?(dtownsend+bugmail) → review+
Commit pushed to master at https://github.com/mozilla/addon-sdk https://github.com/mozilla/addon-sdk/commit/007eb037f0406e9791ac179dae21411ed6663966 Merge pull request #1005 from Gozala/bug/addon-global@874152 Bug 874152 - Fix regression that removed `addon` global.
Depends on: 875812
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Blocks: 816257
Keywords: regression
[Approval Request Comment] Bug caused by (feature/regressing bug #): 816257 User impact if declined: Some add-ons will not function correctly Testing completed (on m-c, etc.): On m-c over the weekend, has automated tests Risk to taking this patch (and alternatives if risky): Low risk String or IDL/UUID changes made by this patch: None
Attachment #754934 - Flags: approval-mozilla-aurora?
Attachment #754934 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: