Closed Bug 607384 Opened 14 years ago Closed 5 years ago

Need to add an unloadOverlay method to nsIDOMXULDocument

Categories

(Core :: DOM: Core & HTML, defect, P5)

defect

Tracking

()

RESOLVED WONTFIX

People

(Reporter: sheppy, Unassigned)

References

Details

Given that we're starting to heavily promote the notion of bootstrapped extensions, which don't load overlays automatically, an obvious solution to this would be to support letting them use the nsIDOMXULDocument method loadOverlay() to load overlays. But since these extensions need to be able to dynamically unload, they can't use this method, since there's no method provided for unloading overlays. We need to add an unloadOverlay() method. Doing this would turn bootstrapped extensions from a neat idea to something easily usable for complex add-ons. Until something like this is done, I'm not sure we'll see much adoption of bootstrapped extensions.
Loading an overlay creates a bunch of nodes and puts them in various places in the DOM. After that, the window's scripts manipulate the DOM in various ways (possibly cloning the nodes inserted via the overlay, moving them around, adding new kids to them, etc). So what would it meant to unload an overlay, exactly? If we need this sort of capability, we really need to move from overlays to something else that doesn't munge the DOM and can therefore be excised from it. We could call it an extensible binding language or something?
Yeah, I didn't say it would be easy, and maybe it's not realistic. But it seems fairly clear that a way to load and unload overlays (or some equivalent) to add and remove stuff to the UI would make extension development easier -- especially in a world where we hope to encourage restartable addons.
Blocks: 675387
OS: Mac OS X → All
Hardware: x86 → All
Component: DOM: Mozilla Extensions → DOM
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046 Move all DOM bugs that haven't been updated in more than 3 years and has no one currently assigned to P5. If you have questions, please contact :mdaly.
Priority: -- → P5
Component: DOM → DOM: Core & HTML

Overlays are long-gone.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.