diff --git a/.abf.yml b/.abf.yml
index b5433e3..f12a973 100644
--- a/.abf.yml
+++ b/.abf.yml
@@ -1,4 +1,4 @@
sources:
cbindgen-vendor.tar.xz: b180cff66e05546c967236a7abe983fff89a8b3e
- firefox-63.0.3.source.tar.xz: 6b29f42ad43264ceb45bc42fa9f8a227339b3f1f
+ firefox-64.0.source.tar.xz: 2a484615aea59fb4b01931d49f0043de0a543aaa
firefox-dictionary-61.0.2.tar.bz2: 25929c585dc8568a32d5be49aacc672f0ed2202f
diff --git a/firefox-kde.patch b/firefox-kde.patch
index fa47f31..8ceb221 100644
--- a/firefox-kde.patch
+++ b/firefox-kde.patch
@@ -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 @@ new file mode 100644
+ both "content" and "skin" packages, which bug 1385444 will unify later. -->
+
+
++
++
++
++
+
+
+
@@ -72,7 +78,11 @@ new file mode 100644
+ 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 @@ new file mode 100644
+ 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 @@ new file mode 100644
+ onpopuphidden="if (event.target == this) TabContextMenu.contextTab = null;">
+
-+
+
+
-+