mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 07:48:38 +09:00
Add missing aCurrentBrowser definition in utilityOverlay.js
Follow-up to cadeea97bbefe42f89d16a4678fdc382c7b74bcd This obsoletes #561.
This commit is contained in:
parent
2b8a811849
commit
64534aadb8
1 changed files with 4 additions and 0 deletions
|
|
@ -250,6 +250,10 @@ function openLinkIn(url, where, params) {
|
|||
aRelatedToCurrent = false;
|
||||
}
|
||||
|
||||
// We can only do this after we're sure of what |w| will be the rest of this function.
|
||||
// Note that if |w| is null we might have no current browser (we'll open a new window).
|
||||
var aCurrentBrowser = params.currentBrowser || (w && w.gBrowser.selectedBrowser);
|
||||
|
||||
if (!w || where == "window") {
|
||||
// This propagates to window.arguments.
|
||||
// Strip referrer data when opening a new private window, to prevent
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue