mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-02 21:37:32 +09:00
Revert "Bug 1456652 - SameSite cookie Reader view patch bypass"
This reverts commit 6f64e487f35986f093dbb002d12554a61021b2c9.
This commit is contained in:
parent
509ede2093
commit
8a46923c30
1 changed files with 1 additions and 12 deletions
|
|
@ -119,18 +119,7 @@ this.ReaderMode = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let referrerURI, principal;
|
win.document.location = originalURL;
|
||||||
try {
|
|
||||||
referrerURI = Services.io.newURI(url);
|
|
||||||
principal = Services.scriptSecurityManager.createCodebasePrincipal(
|
|
||||||
referrerURI, win.document.nodePrincipal.originAttributes);
|
|
||||||
} catch (e) {
|
|
||||||
Cu.reportError(e);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
let flags = webNav.LOAD_FLAGS_DISALLOW_INHERIT_PRINCIPAL |
|
|
||||||
webNav.LOAD_FLAGS_DISALLOW_INHERIT_OWNER;
|
|
||||||
webNav.loadURI(originalURL, flags, referrerURI, null, null, principal);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue