Skip to content
This repository has been archived by the owner on Mar 5, 2019. It is now read-only.

Commit

Permalink
Fix opening external links always in a new window and reuseBlank pref…
Browse files Browse the repository at this point in the history
… in Fx37+

ReferenceError: can't access lexical declaration `usingPreloadedContent' before initialization
https://hg.mozilla.org/mozilla-central/rev/3e110e958354#l1.293

Tested on Fx28, Fx37
  • Loading branch information
yfdyh000 committed Apr 5, 2015
1 parent d999da7 commit c66c400
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chrome/content/tabutils.js
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ tabutils._tabOpeningOptions = function() {
}
}
}).toString().replace(/^.*{|}$/g, "")],
[/(?=return t;)/, gBrowser.addTab.toString().match(/var (uriIsBlankPage|uriIsNotAboutBlank|uriIsAboutBlank).*|let docShellsSwapped[\s\S]*(?=\n.*docShellsSwapped.*)|if \((uriIsNotAboutBlank|.*uriIsAboutBlank)\) {([^{}]|{[^{}]*})*}/g).join("\n")] // Bug 716108 [Fx16]
[/(?=return t;)/, gBrowser.addTab.toString().match(/var (uriIsBlankPage|uriIsNotAboutBlank|uriIsAboutBlank).*|let (docShellsSwapped|usingPreloadedContent)[\s\S]*(?=\n.*(docShellsSwapped|usingPreloadedContent).*)|if \((uriIsNotAboutBlank|.*uriIsAboutBlank)\) {([^{}]|{[^{}]*})*}/g).join("\n")] // Bug 716108 [Fx16], Bug 1077652 [Fx37]
);

gBrowser.getBlankTab = function getBlankTab() {
Expand Down
2 changes: 1 addition & 1 deletion install.rdf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<em:id>[email protected]</em:id>
<em:type>2</em:type>
<em:name>Tab Utilities Fixed</em:name>
<em:version>1.5.2015.03.30</em:version>
<em:version>1.5.2015.04.05</em:version>
<em:creator>YFdyh000</em:creator>
<em:contributor>ithinc (Former author)</em:contributor>
<em:contributor>Phil Tsarik</em:contributor>
Expand Down

0 comments on commit c66c400

Please sign in to comment.