Closed Bug 675387 Opened 13 years ago Closed 6 years ago

load/unload overlays from chrome.manifest files loaded dynamically

Categories

(Toolkit :: Add-ons Manager, defect)

defect
Not set
normal

Tracking

()

RESOLVED INACTIVE

People

(Reporter: davemgarrett, Unassigned)

References

Details

(Keywords: dev-doc-needed)

Bootstrapped addons can now use chrome.manifest files but overlay directives cannot be supported until the capability to unload an overlay dynamically is implemented (bug 607384).
Note that there are more complications with overlays, e.g. the question when they should initialize themselves. Normally overlays need to wait for the "load" event and only access the DOM after that. An overlay applying to an already open window would need to distinguish that case somehow. Then there are toolbar palettes: they can only be overlaid before the window's "load" event because they are removed from the document after that.
As https://developer.mozilla.org/en/Extensions/Bootstrapped_extensions is currently written, it is giving restartless add-on developers the impression that they can already go ahead and use overlay directives.
I don't see that; it was specifically written to not mention overlays. I do see someone has added that overlay support should exist in Firefox 10 though.
(In reply to Eric Shepherd [:sheppy] from comment #3)
> I don't see that; it was specifically written to not mention overlays. I do
> see someone has added that overlay support should exist in Firefox 10 though.

This isn't true so it should be removed
"you can use a chrome.manifest file to apply customizations to the application's user interface" does not specifically mention overlays, but it heavily, heavily implies them.

I'm not speaking of some "in theory" thing here; I myself had that impression until I double-checked Bugzilla.
Oh wait, this quote's even worse: "Prior to Gecko 8.0 (Firefox 8.0 / Thunderbird 8.0 / SeaMonkey 2.5) , implementing bootstrapped extensions that add UI to the application wasn't a trivial task. You couldn't use overlays, you had to manually manipulate the application's DOM."
(In reply to pikadudeno1+bugzilla from comment #6)
> Oh wait, this quote's even worse: "Prior to Gecko 8.0 (Firefox 8.0 /
> Thunderbird 8.0 / SeaMonkey 2.5) , implementing bootstrapped extensions that
> add UI to the application wasn't a trivial task. You couldn't use overlays,
> you had to manually manipulate the application's DOM."

Would you mind updating all the notes that you think are misleading?
Is there any way to distinguish between browser overlays and an extension using overlays in its own window?

It seems to me that if an bootstrapped extension is overlaying it's own window, that should work fine (They shouldn't even need to be unloaded).

(The reason an extension might do that is to separate various modules/pages, like preferences)
(In reply to Mike Kaply (:mkaply) from comment #8)
> Is there any way to distinguish between browser overlays and an extension
> using overlays in its own window?
> 
> It seems to me that if an bootstrapped extension is overlaying it's own
> window, that should work fine (They shouldn't even need to be unloaded).
> 
> (The reason an extension might do that is to separate various modules/pages,
> like preferences)

An extension (bootstrapped or not) can use the <?xul-overlay?> tag to overlay its own content, it doesn't need chrome.manifest for that.
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.