diff options
author | ohfp <1813007-ohfp@users.noreply.gitlab.com> | 2020-06-05 17:53:19 +0200 |
---|---|---|
committer | ohfp <1813007-ohfp@users.noreply.gitlab.com> | 2020-06-06 21:39:06 +0200 |
commit | ac3d1cfbdbfa27a5b6ec79f937812f282bc3abff (patch) | |
tree | 7801d2161c075d1bbc7a2d8f47f2b1c7ff3e437c /megabar.patch | |
parent | Make it pass desktop-file-validate (diff) | |
download | librewolf-linux-ac3d1cfbdbfa27a5b6ec79f937812f282bc3abff.tar.gz librewolf-linux-ac3d1cfbdbfa27a5b6ec79f937812f282bc3abff.tar.bz2 librewolf-linux-ac3d1cfbdbfa27a5b6ec79f937812f282bc3abff.zip |
v77.0.1-1
Diffstat (limited to 'megabar.patch')
-rw-r--r-- | megabar.patch | 59 |
1 files changed, 59 insertions, 0 deletions
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(); + }); |