Closed
Bug 1464384
Opened 7 years ago
Closed 7 years ago
Stop returning true/false from focusAndSelectUrlBar
Categories
(Firefox :: Address Bar, enhancement)
Firefox
Address Bar
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
Assignee | ||
Comment 1•7 years ago
|
||
Comment hidden (mozreview-request) |
Comment 3•7 years ago
|
||
mozreview-review |
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+
Assignee | ||
Comment 4•7 years ago
|
||
(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
Comment 6•7 years ago
|
||
bugherder |
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.
Description
•