Skip to content

Commit

Permalink
Merge mozilla-central to fx-team to pick up the #1 top orange fix
Browse files Browse the repository at this point in the history
UltraBlame original commit: b7d0f477f873814e06c9b77e60264788f582ec44
  • Loading branch information
marco-c committed Sep 28, 2019
1 parent a216ae2 commit b6df9ad
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
4 changes: 2 additions & 2 deletions browser/base/content/urlbarBindings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@

Cc["@mozilla.org/widget/clipboardhelper;1"]
.getService(Ci.nsIClipboardHelper)
.copyString(val);
.copyString(val, document);
},
supportsCommand: function(aCommand) {
switch (aCommand) {
Expand Down Expand Up @@ -753,7 +753,7 @@

Cc["@mozilla.org/widget/clipboardhelper;1"]
.getService(Ci.nsIClipboardHelper)
.copyStringToClipboard(val, Ci.nsIClipboard.kSelectionClipboard);
.copyStringToClipboard(val, document, Ci.nsIClipboard.kSelectionClipboard);
]]></handler>
</handlers>

Expand Down
13 changes: 6 additions & 7 deletions browser/components/nsBrowserGlue.js
Original file line number Diff line number Diff line change
Expand Up @@ -492,13 +492,6 @@ BrowserGlue.prototype = {
if (!aQuitType)
aQuitType = "quit";


var inPrivateBrowsing = Cc["@mozilla.org/privatebrowsing;1"].
getService(Ci.nsIPrivateBrowsingService).
privateBrowsingEnabled;
if (inPrivateBrowsing)
return;

var showPrompt = false;
var mostRecentBrowserWindow;

Expand Down Expand Up @@ -530,6 +523,12 @@ BrowserGlue.prototype = {
return;
}

var inPrivateBrowsing = Cc["@mozilla.org/privatebrowsing;1"].
getService(Ci.nsIPrivateBrowsingService).
privateBrowsingEnabled;
if (inPrivateBrowsing)
return;

if (!showPrompt)
return;

Expand Down
2 changes: 1 addition & 1 deletion browser/devtools/webconsole/HUDService.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,7 @@ HUD_SERVICE.prototype =
strings.push("[" + timestampString + "] " + item.clipboardText);
}
}
clipboardHelper.copyString(strings.join("\n"));
clipboardHelper.copyString(strings.join("\n"), this.doc);
}
};

Expand Down

0 comments on commit b6df9ad

Please sign in to comment.