From ac3d1cfbdbfa27a5b6ec79f937812f282bc3abff Mon Sep 17 00:00:00 2001 From: ohfp <1813007-ohfp@users.noreply.gitlab.com> Date: Fri, 5 Jun 2020 17:53:19 +0200 Subject: v77.0.1-1 --- megabar.patch | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 megabar.patch (limited to 'megabar.patch') diff --git a/megabar.patch b/megabar.patch new file mode 100644 index 0000000..02e7f0f --- /dev/null +++ b/megabar.patch @@ -0,0 +1,59 @@ +diff --git a/browser/components/urlbar/UrlbarInput.jsm b/browser/components/urlbar/UrlbarInput.jsm +index c557a10..3f8f1d4 100644 +--- a/browser/components/urlbar/UrlbarInput.jsm ++++ b/browser/components/urlbar/UrlbarInput.jsm +@@ -1085,18 +1085,18 @@ class UrlbarInput { + } + this.removeAttribute("breakout-extend-disabled"); + +- this._toolbar.setAttribute("urlbar-exceeds-toolbar-bounds", "true"); +- this.setAttribute("breakout-extend", "true"); ++ // this._toolbar.setAttribute("urlbar-exceeds-toolbar-bounds", "true"); ++ // this.setAttribute("breakout-extend", "true"); + + // Enable the animation only after the first extend call to ensure it + // doesn't run when opening a new window. +- if (!this.hasAttribute("breakout-extend-animate")) { +- this.window.promiseDocumentFlushed(() => { +- this.window.requestAnimationFrame(() => { +- this.setAttribute("breakout-extend-animate", "true"); +- }); +- }); +- } ++ // if (!this.hasAttribute("breakout-extend-animate")) { ++ // this.window.promiseDocumentFlushed(() => { ++ // this.window.requestAnimationFrame(() => { ++ // this.setAttribute("breakout-extend-animate", "true"); ++ // }); ++ // }); ++ // } + } + + endLayoutExtend() { +@@ -1186,8 +1186,13 @@ class UrlbarInput { + let updateKey = {}; + this._layoutBreakoutUpdateKey = updateKey; + +- this.removeAttribute("breakout"); +- this.textbox.parentNode.removeAttribute("breakout"); ++ if (this.hasAttribute("breakout")) { ++ this.removeAttribute("breakout"); ++ } ++ ++ if (this.textbox.parentNode.hasAttribute("breakout")) { ++ this.textbox.parentNode.removeAttribute("breakout"); ++ } + + await this.window.promiseDocumentFlushed(() => {}); + await new Promise(resolve => { +@@ -1209,8 +1214,8 @@ class UrlbarInput { + px(getBoundsWithoutFlushing(this._toolbar).height) + ); + +- this.setAttribute("breakout", "true"); +- this.textbox.parentNode.setAttribute("breakout", "true"); ++ // this.setAttribute("breakout", "true"); ++ // this.textbox.parentNode.setAttribute("breakout", "true"); + + resolve(); + }); -- cgit