Bug 1501478 - Fix payment dialog in browser.xhtml. r=MattN
authorBrendan Dahl <bdahl@mozilla.com>
Tue, 23 Oct 2018 22:43:12 +0000
changeset 442802 4c162e4eda0879b7ea1761c3db4679e403273479
parent 442801 a263875f2a4c7c1b02445f9b90cb4ed9c3875c8a
child 442803 f3d51256c5d728e4b324525917b481565f5690d9
push id71654
push userbdahl@mozilla.com
push dateWed, 24 Oct 2018 16:11:08 +0000
treeherderautoland@4c162e4eda08 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMattN
bugs1501478
milestone65.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 1501478 - Fix payment dialog in browser.xhtml. r=MattN Differential Revision: https://phabricator.services.mozilla.com/D9602
browser/components/payments/paymentUIService.js
--- a/browser/components/payments/paymentUIService.js
+++ b/browser/components/payments/paymentUIService.js
@@ -74,17 +74,17 @@ PaymentUIService.prototype = {
         return;
       }
       container.hidden = false;
 
       // Prevent focusing or interacting with the <browser>.
       merchantBrowser.setAttribute("tabmodalPromptShowing", "true");
 
       // Darken the merchant content area.
-      let tabModalBackground = chromeWindow.document.createElement("box");
+      let tabModalBackground = chromeWindow.document.createXULElement("box");
       tabModalBackground.classList.add("tabModalBackground", "paymentDialogBackground");
       // Insert the same way as <tabmodalprompt>.
       merchantBrowser.parentNode.insertBefore(tabModalBackground,
                                               merchantBrowser.nextElementSibling);
     }, {
       once: true,
     });
   },