Bug 1847065 - ensure zoom reset and shopping url bar icons check for non-leftclicks before doing something, r=fchasen

Differential Revision: https://phabricator.services.mozilla.com/D185443
This commit is contained in:
Gijs Kruitbosch
2023-08-08 17:46:13 +00:00
parent aaca47b0fd
commit f4139c1440
4 changed files with 46 additions and 2 deletions

View File

@@ -482,6 +482,19 @@ var FullZoom = {
return result;
},
/**
* Called from the URL bar's inline zoom reset indicator button.
*
* @param {Event} event the click/keyboard event that triggered the call.
*/
resetFromURLBar(event) {
if (event.button > 0) {
return;
}
this.reset();
this.resetScalingZoom();
},
resetScalingZoom: function FullZoom_resetScaling(
browser = gBrowser.selectedBrowser
) {