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)

defect
Not set
trivial

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.
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();
Assignee: nobody → abka.fa
Hi AK. It's yours now.
Comment on attachment 8361980 [details] [diff] [review] Change tabbrowser.xml DOMWebNotificationClicked handler to use windows.focus() thanks!
Attachment #8361980 - Flags: review?(dao) → review+
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 29
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.

Attachment

General

Creator:
Created:
Updated:
Size: