Bug 1577388, use the top browser when receiving zoom messages, r=mconley
authorNeil Deakin <neil@mozilla.com>
Mon, 09 Sep 2019 15:42:43 +0000
changeset 553753 2bdd2503fbdb0408ceb2c46a07311543a123c950
parent 553752 e302a2dfc55b5cd44961ab7e55d549205a3c6d1c
child 553754 93d2d4bbe26300bc2caa3f712561333ac40ddf41
push id12169
push userffxbld-merge
push dateMon, 14 Oct 2019 16:59:29 +0000
treeherdermozilla-beta@c819687300ed [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmconley
bugs1577388
milestone71.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1577388, use the top browser when receiving zoom messages, r=mconley Differential Revision: https://phabricator.services.mozilla.com/D45178
toolkit/actors/ZoomParent.jsm
--- a/toolkit/actors/ZoomParent.jsm
+++ b/toolkit/actors/ZoomParent.jsm
@@ -3,17 +3,17 @@
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 "use strict";
 
 var EXPORTED_SYMBOLS = ["ZoomParent"];
 
 class ZoomParent extends JSWindowActorParent {
   receiveMessage(message) {
-    let browser = this.browsingContext.embedderElement;
+    let browser = this.browsingContext.top.embedderElement;
     if (!browser) {
       return;
     }
 
     let document = browser.ownerGlobal.document;
 
     switch (message.name) {
       case "FullZoomChange": {