Bug 1623856 - Make shift-click reload button open a new window. r=dao

Differential Revision: https://phabricator.services.mozilla.com/D86464
This commit is contained in:
Xidorn Quan 2020-08-12 14:56:50 +00:00
parent 0a671b3936
commit ddf0b0df24

View File

@ -2794,15 +2794,6 @@ function BrowserStop() {
function BrowserReloadOrDuplicate(aEvent) {
aEvent = getRootEvent(aEvent);
let accelKeyPressed =
AppConstants.platform == "macosx" ? aEvent.metaKey : aEvent.ctrlKey;
var backgroundTabModifier = aEvent.button == 1 || accelKeyPressed;
if (aEvent.shiftKey && !backgroundTabModifier) {
BrowserReloadSkipCache();
return;
}
let where = whereToOpenLink(aEvent, false, true);
if (where == "current") {
BrowserReload();