Open
Bug 880022
Opened 12 years ago
Updated 11 months ago
Ensure CustomizableUI.jsm doesn't break when there are no browser windows open
Categories
(Firefox :: Toolbars and Customization, defect)
Firefox
Toolbars and Customization
Tracking
()
NEW
People
(Reporter: Unfocused, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [Australis:P5])
Attachments
(1 obsolete file)
Quoting from bug 873066 comment 14:
> However, we'd still
> need the code to handle the case where there are no windows - mostly due to
> OSX when there are no browser windows open, although it'd be possible to hit
> it in other ways too (even earlier in initialization, or when there's an
> add-on window open but no browser window).
Need to check if anything in Customizable.jsm breaks if there are no browser windows open when any API is called.
Updated•12 years ago
|
Whiteboard: [Australis:M?] → [Australis:M7]
Comment 1•12 years ago
|
||
Removing the items from M7 that do not block us from landing on m-c.
Whiteboard: [Australis:M7] → [Australis:M?]
Comment 2•12 years ago
|
||
Not sure how to prioritize this. P5 without any known impact, but sounds like someone needs to look and see if that's actually the case. Are there any common scenarios where this might happen?
Flags: needinfo?(bmcbride)
Whiteboard: [Australis:M?] → [Australis:M?][Australis:P3]
Reporter | ||
Comment 3•12 years ago
|
||
(In reply to Justin Dolske [:Dolske] from comment #2)
> Are there
> any common scenarios where this might happen?
Easy to get into this situation on OSX - close all windows, without closing the app.
Flags: needinfo?(bmcbride)
Comment 4•11 years ago
|
||
(In reply to Blair McBride [:Unfocused] from comment #3)
> (In reply to Justin Dolske [:Dolske] from comment #2)
> > Are there
> > any common scenarios where this might happen?
>
> Easy to get into this situation on OSX - close all windows, without closing
> the app.
I've been testing this from the browser console, and it seems to work well. Even, say, removing a widget that has removable="false" doesn't break stuff, because the widget ID is removed from placements at that point, but re-added once a window opens (because buildArea realizes it can't actually be removed).
Should we add automated tests for this (OS X only, most likely?), or should we just mark WFM and carry on with life?
Flags: needinfo?(bmcbride)
Reporter | ||
Comment 5•11 years ago
|
||
Ah, good to know :)
I think we should have tests on OSX for this, since it seems like something that would be easy to accidentally break.
Flags: needinfo?(bmcbride)
Comment 6•11 years ago
|
||
(In reply to Blair McBride [:Unfocused] from comment #5)
> Ah, good to know :)
>
> I think we should have tests on OSX for this, since it seems like something
> that would be easy to accidentally break.
Unfortunately word in #developers was that having mochitests that deal with 0 open browser windows wasn't currently possible, so I've not looked into this further yet.
Comment 7•11 years ago
|
||
So this means that this is impossible to do atm? P-?
Flags: needinfo?(gijskruitbosch+bugs)
Updated•11 years ago
|
Whiteboard: [Australis:M?][Australis:P3] → [Australis:M?][Australis:P5]
Comment 8•11 years ago
|
||
(In reply to Mike de Boer [:mikedeboer] from comment #7)
> So this means that this is impossible to do atm? P-?
No, it just means it's not trivial. We should still do this, and I'd even say it's somewhat important because we don't want to get things messed up if people close all their browser windows on OS X. It's just going to take work.
Flags: needinfo?(gijskruitbosch+bugs)
Updated•11 years ago
|
Whiteboard: [Australis:M?][Australis:P5] → [Australis:P5]
Updated•2 years ago
|
Severity: normal → S3
Updated•11 months ago
|
Attachment #9387055 -
Attachment is obsolete: true
You need to log in
before you can comment on or make changes to this bug.
Description
•