Closed Bug 1464384 Opened 7 years ago Closed 7 years ago

Stop returning true/false from focusAndSelectUrlBar

Categories

(Firefox :: Address Bar, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 62
Tracking Status
firefox62 --- fixed

People

(Reporter: dao, Assigned: dao)

References

Details

Attachments

(1 file)

This goes back to when the address bar could be removed from the toolbar. The address bar cannot be removed anymore, so the return value is always true -- except in non-browser windows on Mac. https://treeherder.mozilla.org/#/jobs?repo=try&revision=9ec13982b9e184c7e847a7da6bde902af893f4fa
See Also: → 1464414
Comment on attachment 8980582 [details] Bug 1464384 - Stop returning true/false from focusAndSelectUrlBar. https://reviewboard.mozilla.org/r/246730/#review252882 ::: browser/base/content/browser.js:2300 (Diff revision 1) > + focusAndSelectUrlBar(true); > return; > + } > > - if (window.location.href != getBrowserURL()) { > - var win = getTopWin(); > + // If there's an open browser window, redirect the command there. > + let win = getTopWin(); out of curiosity, is there a specific reason for getTopWin() in utilityOverlay, instead of being a BrowserWindowTracker.getCurrentOrTopWindow()?
Attachment #8980582 - Flags: review?(mak77) → review+
(In reply to Marco Bonardo [::mak] from comment #3) > Comment on attachment 8980582 [details] > Bug 1464384 - Stop returning true/false from focusAndSelectUrlBar. > > https://reviewboard.mozilla.org/r/246730/#review252882 > > ::: browser/base/content/browser.js:2300 > (Diff revision 1) > > + focusAndSelectUrlBar(true); > > return; > > + } > > > > - if (window.location.href != getBrowserURL()) { > > - var win = getTopWin(); > > + // If there's an open browser window, redirect the command there. > > + let win = getTopWin(); > > out of curiosity, is there a specific reason for getTopWin() in > utilityOverlay, instead of being a > BrowserWindowTracker.getCurrentOrTopWindow()? getTopWin has direct access to the current window, BrowserWindowTracker doesn't.
Pushed by dgottwald@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/85187fee1034 Stop returning true/false from focusAndSelectUrlBar. r=mak
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 62
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: