Closed
Bug 981305
Opened 11 years ago
Closed 11 years ago
[Australis] Developer widget - Don't copy over <menuseparator> if previous item is the first item and a <menu> element
Categories
(Firefox :: Menus, defect)
Firefox
Menus
Tracking
()
VERIFIED
FIXED
Firefox 31
People
(Reporter: ntim, Assigned: Gijs)
References
(Blocks 1 open bug)
Details
(Whiteboard: [Australis:P3])
Attachments
(2 files, 1 obsolete file)
|
3.83 KB,
text/html
|
Details | |
|
4.37 KB,
patch
|
mconley
:
review+
Sylvestre
:
approval-mozilla-aurora+
Sylvestre
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
Here 's my web developer menu :
Firebug >
-------------
Toggle tools
Console
Inspector
Debugger
[...]
When the web developer menu gets copied over to the web developer widget, it will remove the <menu> elements for design issues. And my panel will look like this :
------------ (useless separator on the top of panel)
Toggle tools
[...]
I'll attach a screen so you can understand better the situation.
| Reporter | ||
Comment 1•11 years ago
|
||
| Reporter | ||
Updated•11 years ago
|
Blocks: australis-cust
Whiteboard: [Australis:P-]
| Assignee | ||
Updated•11 years ago
|
Whiteboard: [Australis:P-] → [Australis:P?]
Comment 2•11 years ago
|
||
P4 in terms of impact, but I'm going to call this a P3 because it involves Firebug and devtools, which are more important than average.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Whiteboard: [Australis:P?] → [Australis:P3]
Comment 3•11 years ago
|
||
(Also, you've been filing useful bugs, so I've set your canconfirm bit so you can file / switch bugs to the NEW state, instead of just UNCONFIRMED. Thanks!)
| Assignee | ||
Updated•11 years ago
|
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
OS: Windows 8.1 → All
Hardware: x86_64 → All
Version: 30 Branch → Trunk
| Assignee | ||
Comment 4•11 years ago
|
||
Attachment #8394120 -
Flags: review?(mconley)
Comment 5•11 years ago
|
||
Comment on attachment 8394120 [details] [diff] [review]
don't insert leading or duplicate separators,
Review of attachment 8394120 [details] [diff] [review]:
-----------------------------------------------------------------
LGTM. Would be nice to have a test for this if you're feeling adventurous.
Attachment #8394120 -
Flags: review?(mconley) → review+
| Assignee | ||
Comment 6•11 years ago
|
||
Now with test goodness.
Attachment #8394253 -
Flags: review?(mconley)
| Assignee | ||
Updated•11 years ago
|
Attachment #8394120 -
Attachment is obsolete: true
Comment 7•11 years ago
|
||
Comment on attachment 8394253 [details] [diff] [review]
don't insert leading or duplicate separators,
Review of attachment 8394253 [details] [diff] [review]:
-----------------------------------------------------------------
Just one nit, otherwise, looks good.
::: browser/components/customizableui/test/browser_981305_separator_insertion.js
@@ +41,5 @@
> + PanelUI.hide();
> + yield panelHiddenPromise;
> +});
> +
> +add_task(function asyncCleanup() {
Nothing async going on in here - might as well use registerCleanupFunction.
Attachment #8394253 -
Flags: review?(mconley) → review+
| Reporter | ||
Comment 8•11 years ago
|
||
(In reply to Justin Dolske [:Dolske] from comment #3)
> (Also, you've been filing useful bugs, so I've set your canconfirm bit so
> you can file / switch bugs to the NEW state, instead of just UNCONFIRMED.
> Thanks!)
Thanks :)
| Reporter | ||
Comment 9•11 years ago
|
||
Oh btw, the patch should also remove the separator if the separator is the last item.
| Assignee | ||
Comment 10•11 years ago
|
||
Comment on attachment 8394253 [details] [diff] [review]
don't insert leading or duplicate separators,
(In reply to Tim Nguyen [:ntim] from comment #9)
> Oh btw, the patch should also remove the separator if the separator is the
> last item.
Egh. This is a lot harder to fix. :-\
| Assignee | ||
Comment 11•11 years ago
|
||
(In reply to :Gijs Kruitbosch from comment #10)
> Comment on attachment 8394253 [details] [diff] [review]
> don't insert leading or duplicate separators,
>
> (In reply to Tim Nguyen [:ntim] from comment #9)
> > Oh btw, the patch should also remove the separator if the separator is the
> > last item.
>
> Egh. This is a lot harder to fix. :-\
Does it actually happen in practice? Do people insert menus at the bottom of that menu, with a separator?
| Assignee | ||
Comment 12•11 years ago
|
||
(In reply to :Gijs Kruitbosch from comment #10)
> Comment on attachment 8394253 [details] [diff] [review]
> don't insert leading or duplicate separators,
>
> (In reply to Tim Nguyen [:ntim] from comment #9)
> > Oh btw, the patch should also remove the separator if the separator is the
> > last item.
>
> Egh. This is a lot harder to fix. :-\
Err, actually, I was wrong - the patch actually already handles this! I've added a test bit to prove it, and will be landing that shortly. :-)
| Assignee | ||
Comment 13•11 years ago
|
||
w/ nits + extra test for the trailing separator case,
remote: https://hg.mozilla.org/integration/fx-team/rev/9ea07591d94b
status-firefox29:
--- → affected
status-firefox30:
--- → affected
status-firefox31:
--- → affected
Whiteboard: [Australis:P3] → [Australis:P3][fixed-in-fx-team]
| Reporter | ||
Comment 14•11 years ago
|
||
Thanks for the fix !
It'd be nice if the sidebar widget could avoid similar problems too. I guess the fix will be similar :).
| Assignee | ||
Comment 15•11 years ago
|
||
(In reply to Tim Nguyen [:ntim] from comment #14)
> Thanks for the fix !
> It'd be nice if the sidebar widget could avoid similar problems too. I guess
> the fix will be similar :).
I looked at that code but didn't think that it'd ever have separators, nevermind separators and submenus. Are there add-ons that do that? :-(
Flags: needinfo?(ntim007)
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [Australis:P3][fixed-in-fx-team] → [Australis:P3]
Target Milestone: --- → Firefox 31
| Reporter | ||
Comment 17•11 years ago
|
||
(In reply to :Gijs Kruitbosch from comment #15)
> (In reply to Tim Nguyen [:ntim] from comment #14)
> > Thanks for the fix !
> > It'd be nice if the sidebar widget could avoid similar problems too. I guess
> > the fix will be similar :).
>
> I looked at that code but didn't think that it'd ever have separators,
> nevermind separators and submenus. Are there add-ons that do that? :-(
You should try All in One sidebar. It creates a duplicate separator.
Flags: needinfo?(ntim007)
| Reporter | ||
Updated•11 years ago
|
| Assignee | ||
Comment 18•11 years ago
|
||
Filed bug 986808 for the sidebar case. It's less important because 29 isn't affected.
| Assignee | ||
Comment 19•11 years ago
|
||
Comment on attachment 8394253 [details] [diff] [review]
don't insert leading or duplicate separators,
[Approval Request Comment]
Bug caused by (feature/regressing bug #): Australis
User impact if declined: web developer subview can look ugly, with confusing/duplicate separators
Testing completed (on m-c, etc.): on m-c, has automated test
Risk to taking this patch (and alternatives if risky): very low
String or IDL/UUID changes made by this patch: none
Attachment #8394253 -
Flags: approval-mozilla-beta?
Attachment #8394253 -
Flags: approval-mozilla-aurora?
Updated•11 years ago
|
Attachment #8394253 -
Flags: approval-mozilla-beta?
Attachment #8394253 -
Flags: approval-mozilla-beta+
Attachment #8394253 -
Flags: approval-mozilla-aurora?
Attachment #8394253 -
Flags: approval-mozilla-aurora+
| Assignee | ||
Comment 20•11 years ago
|
||
Comment 21•11 years ago
|
||
I was able to confirm the fix for this bug on the latest Beta (Build ID: 20140324101726), latest Aurora (Build ID: 20140325004002) and latest Nightly (Build ID: 20140325030201), using:
- Windows 7 64-bit [1],
- Windows 8.1 64-bit [2],
- Ubuntu 13.10 64-bit [3],
- Mac OS X 10.9 [4].
1. Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:31.0) Gecko/20100101 Firefox/31.0
2. Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0
3. Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0
4. Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Firefox/31.0
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•