зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1641270 - Part 4: Expose the cookieJarSettings to the browser object. r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D95614
This commit is contained in:
Родитель
13ec804734
Коммит
ed61dc5da5
|
@ -76,6 +76,7 @@ interface WindowGlobalParent : WindowContext {
|
|||
readonly attribute Principal? contentBlockingAllowListPrincipal;
|
||||
readonly attribute URI? documentURI;
|
||||
readonly attribute DOMString documentTitle;
|
||||
readonly attribute nsICookieJarSettings? cookieJarSettings;
|
||||
|
||||
// Bit mask containing content blocking events that are recorded in
|
||||
// the document's content blocking log.
|
||||
|
|
|
@ -179,6 +179,10 @@ class WindowGlobalParent final : public WindowContext,
|
|||
|
||||
nsICookieJarSettings* CookieJarSettings() { return mCookieJarSettings; }
|
||||
|
||||
nsICookieJarSettings* GetCookieJarSettings() const {
|
||||
return mCookieJarSettings;
|
||||
}
|
||||
|
||||
bool DocumentHasLoaded() { return mDocumentHasLoaded; }
|
||||
|
||||
bool DocumentHasUserInteracted() { return mDocumentHasUserInteracted; }
|
||||
|
|
|
@ -630,6 +630,12 @@
|
|||
.contentBlockingAllowListPrincipal;
|
||||
}
|
||||
|
||||
get cookieJarSettings() {
|
||||
return this.isRemoteBrowser
|
||||
? this.contentDocument.cookieJarSettings
|
||||
: this.browsingContext?.currentWindowGlobal?.cookieJarSettings;
|
||||
}
|
||||
|
||||
get csp() {
|
||||
return this.isRemoteBrowser ? this._csp : this.contentDocument.csp;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче