Closed Bug 313190 Opened 19 years ago Closed 7 months ago

Add <stack> around browser windows to allow overlaying content

Categories

(Firefox :: General, defect)

x86
All
defect

Tracking

()

RESOLVED WONTFIX

People

(Reporter: vlad, Unassigned)

References

Details

Attachments

(1 file)

For some extensions, it's highly desirable to be able to overlay content on top of the current browser window -- whether that is for notifications, for special effects, or whatnot. Currently the only way to do overlapping XUL elements is by using a <stack>; however, there isn't a convenient stack to use in browser.xul.
This patch adds a <stack> with an id around the entire browser window content area. There don't seem to be any bad effects that I can notice; you can overlay content on top of the top chrome. Overlaying content on top of the browser area itself doesn't quite work, because of bug 191830 -- unless you do some tricks to force a view for overlaid elements, the browser content area will paint over everything else.
Hmm. This shouldn't be working at all, since bug 190115 isn't fixed.
Depends on: 190115
Yeah, I'm not sure if it's 191830 or 190115/130078 that was causing the problems -- if I stuck a <vbox style="background: black" top="50" left="150" width="50" height="200"/> in there before the browser vbox, it showed up in the right place, just clipped by the browser content area. Ditto for opacity: 0.5 (it was opaque on top of the rest of the content, just not the content area).
Depends on: 130078
Is it possible to have this checked in even though it won't have things working as expected when putting chrome over content? If checked in now, it would be easier for people to put elements over the non-content part of the browser window, but only after bug 130078 gets fixed would the content part also work. (Checking it in would make it 1 fewer patches to apply to be able to develop chrome over content extensions on a local trunk build. Btw, attachment 200272 [details] [diff] [review] has been working well for me, and I haven't noticed any regressions.)
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
(bug 596371 goes a bit further and puts a stack around each individual <browser>, but the idea is the same)
Should we keep this bug open to be able to overlay chrome and content at the same time, e.g., for notifications that are anchored in chrome but extend over content?
Indeed, this bug addresses different use cases that aren't satisfied by the changes for bug 596371, since that bug is about stacking only the <browser>s inside the <tabbrowser>, while this bug is about stacking the entire content of the browsing window. Use cases for this bug include dynamic personas that place a content iframe underneath the content of the browsing window.
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Severity: normal → S3

Extensions aren't allowed to modify the browser chrome anymore.

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

Attachment

General

Created:
Updated:
Size: