mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-27 17:47:34 +09:00
[PALEMOON] Replace owner with triggeringPrincipal to match the updated UXP docshell
This commit is contained in:
parent
b23e47c51a
commit
ac6379189c
3 changed files with 4 additions and 4 deletions
|
|
@ -83,7 +83,7 @@ function open()
|
||||||
var flags = webNav.LOAD_FLAGS_ALLOW_THIRD_PARTY_FIXUP |
|
var flags = webNav.LOAD_FLAGS_ALLOW_THIRD_PARTY_FIXUP |
|
||||||
webNav.LOAD_FLAGS_FIXUP_SCHEME_TYPOS;
|
webNav.LOAD_FLAGS_FIXUP_SCHEME_TYPOS;
|
||||||
if (!mayInheritPrincipal)
|
if (!mayInheritPrincipal)
|
||||||
flags |= webNav.LOAD_FLAGS_DISALLOW_INHERIT_OWNER;
|
flags |= webNav.LOAD_FLAGS_DISALLOW_INHERIT_PRINCIPAL;
|
||||||
browser.gBrowser.loadURIWithFlags(url, flags, null, null, postData);
|
browser.gBrowser.loadURIWithFlags(url, flags, null, null, postData);
|
||||||
break;
|
break;
|
||||||
case "1":
|
case "1":
|
||||||
|
|
|
||||||
|
|
@ -305,12 +305,12 @@
|
||||||
|
|
||||||
function loadCurrent() {
|
function loadCurrent() {
|
||||||
let flags = Ci.nsIWebNavigation.LOAD_FLAGS_ALLOW_THIRD_PARTY_FIXUP;
|
let flags = Ci.nsIWebNavigation.LOAD_FLAGS_ALLOW_THIRD_PARTY_FIXUP;
|
||||||
// Pass LOAD_FLAGS_DISALLOW_INHERIT_OWNER to prevent any loads from
|
// Pass LOAD_FLAGS_DISALLOW_INHERIT_PRINCIPAL to prevent any loads from
|
||||||
// inheriting the currently loaded document's principal, unless this
|
// inheriting the currently loaded document's principal, unless this
|
||||||
// URL is marked as safe to inherit (e.g. came from a bookmark
|
// URL is marked as safe to inherit (e.g. came from a bookmark
|
||||||
// keyword).
|
// keyword).
|
||||||
if (!mayInheritPrincipal)
|
if (!mayInheritPrincipal)
|
||||||
flags |= Ci.nsIWebNavigation.LOAD_FLAGS_DISALLOW_INHERIT_OWNER;
|
flags |= Ci.nsIWebNavigation.LOAD_FLAGS_DISALLOW_INHERIT_PRINCIPAL;
|
||||||
// If the value wasn't typed, we know that we decoded the value as
|
// If the value wasn't typed, we know that we decoded the value as
|
||||||
// UTF-8 (see losslessDecodeURI)
|
// UTF-8 (see losslessDecodeURI)
|
||||||
if (!this.valueIsTyped)
|
if (!this.valueIsTyped)
|
||||||
|
|
|
||||||
|
|
@ -333,7 +333,7 @@ function openLinkIn(url, where, params) {
|
||||||
flags |= Ci.nsIWebNavigation.LOAD_FLAGS_FIXUP_SCHEME_TYPOS;
|
flags |= Ci.nsIWebNavigation.LOAD_FLAGS_FIXUP_SCHEME_TYPOS;
|
||||||
}
|
}
|
||||||
if (aDisallowInheritPrincipal)
|
if (aDisallowInheritPrincipal)
|
||||||
flags |= Ci.nsIWebNavigation.LOAD_FLAGS_DISALLOW_INHERIT_OWNER;
|
flags |= Ci.nsIWebNavigation.LOAD_FLAGS_DISALLOW_INHERIT_PRINCIPAL;
|
||||||
if (aForceAllowDataURI) {
|
if (aForceAllowDataURI) {
|
||||||
flags |= Ci.nsIWebNavigation.LOAD_FLAGS_FORCE_ALLOW_DATA_URI;
|
flags |= Ci.nsIWebNavigation.LOAD_FLAGS_FORCE_ALLOW_DATA_URI;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue