diff --git a/browser/base/content/tabbrowser.xml b/browser/base/content/tabbrowser.xml index 408b1a86e1cc..456debdda93d 100644 --- a/browser/base/content/tabbrowser.xml +++ b/browser/base/content/tabbrowser.xml @@ -3229,8 +3229,7 @@ addonInfo: aMessage.data.addonInfo }; let popup = browser.ownerDocument.getElementById("contentAreaContextMenu"); let event = gContextMenuContentData.event; - let pos = browser.mapScreenCoordinatesFromContent(event.screenX, event.screenY); - popup.openPopupAtScreen(pos.x, pos.y, true); + popup.openPopupAtScreen(event.screenX, event.screenY, true); break; } case "DOMWebNotificationClicked": { diff --git a/toolkit/components/satchel/AutoCompleteE10S.jsm b/toolkit/components/satchel/AutoCompleteE10S.jsm index 3928b273dec2..1e506fd97b27 100644 --- a/toolkit/components/satchel/AutoCompleteE10S.jsm +++ b/toolkit/components/satchel/AutoCompleteE10S.jsm @@ -81,9 +81,8 @@ this.AutoCompleteE10S = { this.popup.hidden = false; this.popup.setAttribute("width", rect.width); - let {x, y} = this.browser.mapScreenCoordinatesFromContent(rect.left, rect.top + rect.height); - this.x = x; - this.y = y; + this.x = rect.left; + this.y = rect.top + rect.height; }, _showPopup: function(results) { diff --git a/toolkit/content/widgets/browser.xml b/toolkit/content/widgets/browser.xml index e42c917683e0..4122681e1c7f 100644 --- a/toolkit/content/widgets/browser.xml +++ b/toolkit/content/widgets/browser.xml @@ -877,8 +877,7 @@ if (!this.autoscrollEnabled) { return false; } - let pos = this.mapScreenCoordinatesFromContent(data.screenX, data.screenY); - this.startScroll(data.scrolldir, pos.x, pos.y); + this.startScroll(data.scrolldir, data.screenX, data.screenY); return true; } case "Autoscroll:Cancel": @@ -1059,25 +1058,6 @@ - - - - - - - - - diff --git a/toolkit/content/widgets/remote-browser.xml b/toolkit/content/widgets/remote-browser.xml index 019446689078..b1fbb32a9455 100644 --- a/toolkit/content/widgets/remote-browser.xml +++ b/toolkit/content/widgets/remote-browser.xml @@ -391,27 +391,6 @@ ]]> - - - - - - - - - diff --git a/toolkit/modules/SelectParentHelper.jsm b/toolkit/modules/SelectParentHelper.jsm index 5d6b87425080..60a179fa0239 100644 --- a/toolkit/modules/SelectParentHelper.jsm +++ b/toolkit/modules/SelectParentHelper.jsm @@ -28,8 +28,7 @@ this.SelectParentHelper = { currentBrowser = browser; this._registerListeners(menulist.menupopup); - let {x, y} = browser.mapScreenCoordinatesFromContent(rect.left, rect.top + rect.height); - menulist.menupopup.openPopupAtScreen(x, y); + menulist.menupopup.openPopupAtScreen(rect.left, rect.top + rect.height); menulist.selectedItem.scrollIntoView(); },