Closed
Bug 675402
Opened 13 years ago
Closed 11 years ago
Scripts attached to pages used as the contentURL property for widgets don't get executed
Categories
(Add-on SDK Graveyard :: General, defect, P1)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: KWierso, Unassigned)
References
()
Details
Someone on the AMO forums is saying that scripts that are directly part of a page that's being used as a contentURL for a widget aren't being executed. From the widget documentation, it sounds like content JS should be loaded and run before anything else happens: https://addons.mozilla.org/en-US/developers/docs/sdk/1.0/packages/addon-kit/docs/widget.html > "end": load content scripts once all the > content (DOM, JS, CSS, images) for the > widget has been loaded, at the time the > window.onload event fires > > This property is optional and defaults to "end".
Reporter | ||
Updated•13 years ago
|
Comment 1•13 years ago
|
||
Wes: have you been able to reproduce the problem, and do you happen to have any sample code or steps to reproduce?
Priority: -- → P1
Whiteboard: [triage:followup]
Target Milestone: --- → 1.1
Reporter | ||
Comment 2•13 years ago
|
||
(In reply to comment #1) > Wes: have you been able to reproduce the problem, and do you happen to have > any sample code or steps to reproduce? I just tried to test it with this addon I wrote, but both the onclick and onload handler are working for me... https://builder.addons.mozilla.org/addon/1012572/latest/ Maybe the actual contentURL needs to be hosted remotely? That add-on uses an html file included in the add-on... I'll ask on the forum to see what specifically the user is doing.
Updated•13 years ago
|
Priority: P1 → --
Target Milestone: 1.1 → ---
Updated•13 years ago
|
Whiteboard: [triage:followup]
Comment 3•13 years ago
|
||
Wes: any update on whether or not you've been able to confirm this?
Status: NEW → UNCONFIRMED
Ever confirmed: false
Whiteboard: [triage:followup]
Reporter | ||
Comment 4•13 years ago
|
||
Okay, I have no idea what's going on. In my main profile (running in the current Nightly), my test addon mentioned in comment 2 works just fine. Using a new profile, I started up Firefox 6 and tried my addon. It didn't work, just like the forum poster says. I switched to Firefox 7 and tried my addon. Still not working. Same for Firefox 8. And when I used the new profile in a Nightly build, it also does NOT work. So something in my main profile has been changed from non-default settings to make it work, I guess.
Reporter | ||
Updated•13 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Reporter | ||
Comment 5•13 years ago
|
||
But now in my standalone 64-bit profile, it works on the 64-bit Nightly... I am so confused.
Reporter | ||
Comment 6•13 years ago
|
||
Irakli, any ideas here?
Priority: -- → P1
Whiteboard: [triage:followup]
Updated•12 years ago
|
Blocks: sdk/widget
Comment 7•11 years ago
|
||
When Australis lands widget will be deprecated so we won't be working on this.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•