Bug 1379431 - Keep URL bar open on arrows and click on anchor. r?mconley
MozReview-Commit-ID: LtY1oOgc5d4
--- a/browser/base/content/urlbarBindings.xml
+++ b/browser/base/content/urlbarBindings.xml
@@ -2082,16 +2082,19 @@ file, You can obtain one at http://mozil
} else if (this.classList.contains("showSearchSuggestionsNotification")) {
this._hideSearchSuggestionsNotification();
}
} catch (ex) {
// Not critical for the urlbar functionality, just report the error.
Cu.reportError(ex);
}
+ // Don't roll up on mouse click in the anchor
+ this.setAttribute("norolluponanchor", "true");
+
// Position the popup below the navbar. To get the y-coordinate,
// which is an offset from the bottom of the input, subtract the
// bottom of the navbar from the buttom of the input.
let yOffset = Math.round(
this.DOMWindowUtils.getBoundsWithoutFlushing(document.getElementById("nav-bar")).bottom -
this.DOMWindowUtils.getBoundsWithoutFlushing(aInput).bottom);
this.openPopup(aElement, "after_start", 0, yOffset, false, false);