Bug 1501478 - Fix payment dialog in browser.xhtml. r=MattN
authorBrendan Dahl <bdahl@mozilla.com>
Tue, 23 Oct 2018 22:43:12 +0000
changeset 491166 4c162e4eda0879b7ea1761c3db4679e403273479
parent 491165 a263875f2a4c7c1b02445f9b90cb4ed9c3875c8a
child 491167 f3d51256c5d728e4b324525917b481565f5690d9
push id247
push userfmarier@mozilla.com
push dateSat, 27 Oct 2018 01:06:44 +0000
reviewersMattN
bugs1501478
milestone65.0a1
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,
     });
   },