Closed
Bug 960997
Opened 11 years ago
Closed 11 years ago
DOMWebNotificationClicked message handler should do window.focus() instead of setting focusManager.activeWindow = window
Categories
(Firefox :: Tabbed Browser, defect)
Firefox
Tabbed Browser
Tracking
()
RESOLVED
FIXED
Firefox 29
People
(Reporter: dao, Assigned: abka.fa)
References
Details
(Whiteboard: [good first bug][lang=js][mentor=dao][qa-])
Attachments
(1 file)
In tabbrowser.xml, the DOMWebNotificationClicked message handler gets the focus manager and then sets focusManager.activeWindow = window in order to bring the window to the front:
http://hg.mozilla.org/mozilla-central/annotate/9bcc52594322/browser/base/content/tabbrowser.xml#l2973
It should instead call window.focus, which is simpler.
Reporter | ||
Updated•11 years ago
|
Version: 27 Branch → Trunk
May I please be assigned to this bug? Also, for clarification, you're saying that the current window should be focused using the window object itself, rather than setting it as the activeWindow using focusManager, correct?
Therefore the two lines:
let focusManager = Cc["@mozilla.org/focus-manager;1"].getService(Ci.nsIFocusManager);
focusManager.activeWindow = window;
should be changed to simply:
window.focus();
Updated•11 years ago
|
Assignee: nobody → abka.fa
Comment 2•11 years ago
|
||
Hi AK. It's yours now.
Attachment #8361980 -
Flags: review?(dao)
Reporter | ||
Comment 4•11 years ago
|
||
Comment on attachment 8361980 [details] [diff] [review]
Change tabbrowser.xml DOMWebNotificationClicked handler to use windows.focus()
thanks!
Attachment #8361980 -
Flags: review?(dao) → review+
Reporter | ||
Updated•11 years ago
|
Keywords: checkin-needed
Reporter | ||
Comment 5•11 years ago
|
||
Keywords: checkin-needed
Comment 6•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 29
Updated•11 years ago
|
Whiteboard: [good first bug][lang=js][mentor=dao] → [good first bug][lang=js][mentor=dao][qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•