diff -r 9fec29d2ead2 -r 821cfbe8efcc firefox-kde.patch
--- a/firefox-kde.patch Tue Dec 11 08:48:38 2018 +0100
+++ b/firefox-kde.patch Wed Dec 12 12:15:16 2018 +0100
@@ -1,11 +1,11 @@
# HG changeset patch
-# Parent fdf78810e83396d10418791fbe32bed6bfe1558b
+# Parent f2429084f187d5758508ae547c411943cba60fcf
diff --git a/browser/base/content/browser-kde.xul b/browser/base/content/browser-kde.xul
new file mode 100644
--- /dev/null
+++ b/browser/base/content/browser-kde.xul
-@@ -0,0 +1,1317 @@
+@@ -0,0 +1,1384 @@
+#filter substitution
+
+# -*- Mode: HTML -*-
@@ -19,6 +19,12 @@
+ both "content" and "skin" packages, which bug 1385444 will unify later. -->
+
+
++
++
++
++
+
+
+
@@ -72,7 +78,11 @@
+ fullscreenbutton="true"
+ sizemode="normal"
+ retargetdocumentfocus="urlbar"
-+ persist="screenX screenY width height sizemode">
++ persist="screenX screenY width height sizemode"
++#ifdef BROWSER_XHTML
++ hidden="true"
++#endif
++ >
+
+# All JS files which are needed by browser.xul and other top level windows to
+# support MacOS specific features *must* go into the global-scripts.inc file so
@@ -90,9 +100,14 @@
+ window.onload = gBrowserInit.onLoad.bind(gBrowserInit);
+ window.onunload = gBrowserInit.onUnload.bind(gBrowserInit);
+ window.onclose = WindowIsClosing;
++
+#ifdef BROWSER_XHTML
-+ window.addEventListener("DOMContentLoaded",
-+ gBrowserInit.onBeforeInitialXULLayout.bind(gBrowserInit), { once: true });
++ window.addEventListener("readystatechange", () => {
++ // We initially hide the window to prevent layouts during parse. This lets us
++ // avoid accidental XBL construction and better match browser.xul (see Bug 1497975).
++ gBrowserInit.onBeforeInitialXULLayout();
++ document.documentElement.removeAttribute("hidden");
++ }, { once: true, capture: true });
+#else
+ window.addEventListener("MozBeforeInitialXULLayout",
+ gBrowserInit.onBeforeInitialXULLayout.bind(gBrowserInit), { once: true });
@@ -116,13 +131,12 @@
+ onpopuphidden="if (event.target == this) TabContextMenu.contextTab = null;">
+
-+
+
+
-+