Closed
Bug 814404
Opened 12 years ago
Closed 12 years ago
[Mac OS] Blank Social menu item in Tools menu when focus is set to a non-browser window
Categories
(Firefox Graveyard :: SocialAPI, defect)
Tracking
(firefox17 wontfix, firefox18+ verified, firefox19+ verified, firefox20 verified, b2g18 fixed)
VERIFIED
FIXED
Firefox 20
People
(Reporter: virgil.dicu, Assigned: Gavin)
References
Details
(Whiteboard: [testday-20121221])
Attachments
(4 files)
440.57 KB,
image/png
|
Details | |
19.12 KB,
patch
|
Details | Diff | Splinter Review | |
2.04 KB,
patch
|
jaws
:
review+
bajaj
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
1.97 KB,
patch
|
Gavin
:
review+
Gavin
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
Occurs starting with Firefox 17 up to Nightly. only occurs on Mac OS.
STR:
1. Start Firefox with clean profile.
2. Open the Download manager (or any other Firefox window)
3. While focus is set to the window opened in step 2, select Tools menu
Actual result: missing menu items for Social API sidebar option (one missing item in Nightly, two in F17,18). See screenshot.
Reporter | ||
Comment 1•12 years ago
|
||
I'll be able to find a regression range for this tomorrow if the culprit isn't found by then.
status-firefox17:
--- → affected
status-firefox18:
--- → affected
status-firefox19:
--- → affected
status-firefox20:
--- → affected
Comment 2•12 years ago
|
||
This is not a cocoa bug, more likely a problem with our special handling of the application menubar with its menus/menuitems (macbrowserOverlay, browser-menubar.inc, browser-sets.inc)
Probably a bug with the Social API since it's the Social menu item. More details to follow as I test this further.
Component: Widget: Cocoa → SocialAPI
Product: Core → Firefox
Assignee | ||
Comment 4•12 years ago
|
||
The code in _providerReady that sets a label on menu_socialAmbientMenu doesn't run in non-browser.xul windows, and so the menu item doesn't get a label there.
We probably need to call some subset of SocialUI.init from nonBrowserWindowDelayedStartup (in addition to the existing call in delayedStartup).
Assignee | ||
Comment 5•12 years ago
|
||
This probably dates back to the introduction of this menu item.
Keywords: regression,
regressionwindow-wanted
Summary: [Mac OS] Missing menu items from Tools menu when focus is set to another Firefox window → [Mac OS] Missing Social menu item from Tools menu when focus is set to another Firefox window
Assignee | ||
Updated•12 years ago
|
tracking-firefox18:
--- → +
tracking-firefox19:
--- → +
Last good nightly: 2012-07-25
First bad nightly: 2012-07-26
Pushlog:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=ef20925bc2a5&tochange=7065b767f30d
There is quite a few changes here so I will try to narrow it down further. Just to provide more details about the actual results in testing this...
1. Start Firefox with a new profile
2. Click the Tools menu
> Tools
> -- Web Search
> -- Downloads
> -- Set up Sync...
> -- Web Developer >
> -- Page Info
> -- Start Private Browsing
> -- Clear Recent History
3. Open another window (ex. Bookmarks > Show All Bookmarks)
4. Click the Tools menu
> Tools
> -- Web Search
> -- Downloads
> -- Add-ons
> -- *blank*
> -- Set up Sync...
> -- Web Developer >
> -- Page Info (greyed out)
> -- Start Private Browsing
> -- Clear Recent History
5. Click the *blank* menu item
> Social toolbar and sidebar enabled
Assignee | ||
Comment 7•12 years ago
|
||
(In reply to :Gavin Sharp (use gavin@gavinsharp.com for email) from comment #5)
> This probably dates back to the introduction of this menu item.
Yep, that'd be bug 764872 in your range.
Updated•12 years ago
|
Assignee: nobody → jaws
Status: NEW → ASSIGNED
Comment 9•12 years ago
|
||
This patch refactors all the updates to the commands and broadcasters to be located in a single place that can be called whenever the UI should be updated.
The |updateCommands| function is a little too long for my liking. Maybe the separate commands/broadcasters can remain in their own function but this function would just call out to those functions.
I'm going to rework this patch to be much simpler so we can land something for it on Aurora/Beta.
Assignee | ||
Updated•12 years ago
|
Assignee: jaws → gavin.sharp
Assignee | ||
Comment 10•12 years ago
|
||
This just hides the broken menu items when non-browser windows are focused. This isn't ideal, but it's dead-safe and addresses the most visible bustedness for beta.
Attachment #691113 -
Flags: review?(jaws)
Comment 11•12 years ago
|
||
Comment on attachment 691113 [details] [diff] [review]
simple patch
Review of attachment 691113 [details] [diff] [review]:
-----------------------------------------------------------------
This patch will only work for beta since menu_socialToggle doesn't exist anymore on m-c (aurora too I think).
Attachment #691113 -
Flags: review?(jaws) → review+
Assignee | ||
Comment 12•12 years ago
|
||
Comment on attachment 691113 [details] [diff] [review]
simple patch
[Approval Request Comment]
Bug caused by (feature/regressing bug #): present since socialAPI landed
User impact if declined: ugly empty menu item in Tools menu for non-browser windows
Testing completed (on m-c, etc.): none, only tested locally
Risk to taking this patch (and alternatives if risky): low risk - only hides menu items in non-browser windows. Really can't break anything more than it already is.
String or UUID changes made by this patch: none
Attachment #691113 -
Flags: approval-mozilla-beta?
Comment 13•12 years ago
|
||
I'd like us to land the same simple fix for Aurora and m-c until we get a proper solution implemented, this way we are not under such a tight time crunch to get this fixed.
Attachment #691375 -
Flags: review?(gavin.sharp)
Assignee | ||
Comment 14•12 years ago
|
||
Comment on attachment 691375 [details] [diff] [review]
simple patch for aurora and central
Sounds good! Let's file a followup to fix properly.
Attachment #691375 -
Flags: review?(gavin.sharp)
Attachment #691375 -
Flags: review+
Attachment #691375 -
Flags: approval-mozilla-aurora+
Comment 15•12 years ago
|
||
Hardware: x86 → All
Summary: [Mac OS] Missing Social menu item from Tools menu when focus is set to another Firefox window → [Mac OS] Blank Social menu item in Tools menu when focus is set to a non-browser window
Comment 16•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 20
Comment 17•12 years ago
|
||
Comment 18•12 years ago
|
||
Comment on attachment 691113 [details] [diff] [review]
simple patch
Approving for Beta given this is a low risk fix. Virgil, can you please help with some verification on Aurora before we go to build with Beta 5 Tuesday.Thank you !
Attachment #691113 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Updated•12 years ago
|
QA Contact: virgil.dicu
Assignee | ||
Updated•12 years ago
|
Comment 19•12 years ago
|
||
Comment 20•12 years ago
|
||
status-b2g18:
--- → fixed
Assignee | ||
Comment 21•12 years ago
|
||
Pushed a followup to beta since the wrong patch was initially landed:
https://hg.mozilla.org/releases/mozilla-beta/rev/0a821cf988bb
Comment 22•12 years ago
|
||
(In reply to :Gavin Sharp (use gavin@gavinsharp.com for email) from comment #21)
> Pushed a followup to beta since the wrong patch was initially landed:
> https://hg.mozilla.org/releases/mozilla-beta/rev/0a821cf988bb
https://hg.mozilla.org/releases/mozilla-b2g18/rev/0a821cf988bb
Reporter | ||
Comment 23•12 years ago
|
||
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:20.0) Gecko/20121217 Firefox/20.0
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:19.0) Gecko/20121216 Firefox/19.0
Looks good on Mac OS X 10.8 with Aurora and Nightly. No menu entries for Facebook Sidebar when focus is set to another window. Other menu entries are displayed as expected.
Beta verification remaining.
Status: RESOLVED → VERIFIED
Keywords: verifyme
Updated•6 years ago
|
Product: Firefox → Firefox Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•