Bug 1546338 - re-adjust event iframe to be xul:iframe, to fix testEventDialogSize.js. rs=bustage-fix
authorMagnus Melin <mkmelin+mozilla@iki.fi>
Fri, 24 May 2019 16:42:50 +0300
changeset 35685 69f91833794216a472239e06add79a1ed914d8ff
parent 35684 8187a5f97b447dbc16ccbd525a81c0ec9e200df7
child 35686 bb7fbb8a04055e487a65286ae9955df8a452802b
push id392
push userclokep@gmail.com
push dateMon, 02 Sep 2019 20:17:19 +0000
reviewersbustage-fix
bugs1546338
Bug 1546338 - re-adjust event iframe to be xul:iframe, to fix testEventDialogSize.js. rs=bustage-fix
calendar/lightning/content/lightning-item-panel.js
--- a/calendar/lightning/content/lightning-item-panel.js
+++ b/calendar/lightning/content/lightning-item-panel.js
@@ -222,17 +222,17 @@ function onLoadLightningItemPanel(aIfram
         let iframeId = aIframeId || gTabmail.currentTabInfo.iframe.id;
         iframe = document.getElementById(iframeId);
         iframeSrc = aUrl;
 
         // Add a listener to detect close events, prompt user about saving changes.
         window.addEventListener("close", windowCloseListener);
     } else {
         // window dialog case
-        iframe = document.createElementNS("http://www.w3.org/1999/xhtml", "iframe");
+        iframe = document.createXULElement("iframe");
         iframeSrc = window.arguments[0].useNewItemUI
             ? "chrome://lightning/content/html-item-editing/lightning-item-iframe.html"
             : "chrome://lightning/content/lightning-item-iframe.xul";
 
         iframe.setAttribute("id", "lightning-item-panel-iframe");
         iframe.setAttribute("flex", "1");
 
         let statusbar = document.getElementById("status-bar");