gecko-dev/toolkit
Dimi Lee 8d06cbe7df Bug 1612376 - P4. ShouldAllowAccessFor use ContentBlocking::HasStorageAccessGranted r=timhuang,baku
There are two places where we save storage permission:
1. LoadInfo hasStoragePermission attribute
2. mStorageAccessGranted in nsPIDOMWindowInner

For LoadInfo.hasStoragePermission, it is set during channel creation and
its value remains the same even when the storage permission is granted
afterward.

The updated storage permission for a window is saved in
mStorageAccessGranted, which has a different meaning for fission and
non-fission mode.
In non-fission mode, mStorageAccessGranted is saved in the top-level
window and it is an array containing all tracking subframes that
are allowed to access storage.

In fission mode, mStorageAccessGranted is set in individual tracking
windows that we have granted its storage permission. Although it works
like a boolean flag in fission, we still keep using an array to compatible
with the use case in non-fission mode.

Depends on D71984

Differential Revision: https://phabricator.services.mozilla.com/D71985
2020-04-29 14:48:35 +00:00
..
actors Bug 1618311 - Contextually suggest importing passwords as an autocomplete entry r=MattN,fluent-reviewers,flod 2020-04-28 21:59:34 +00:00
components Bug 1612376 - P4. ShouldAllowAccessFor use ContentBlocking::HasStorageAccessGranted r=timhuang,baku 2020-04-29 14:48:35 +00:00
content Bug 1598464 - Stop pre-filtering logins from autocomplete to about:logins. r=MattN 2020-04-29 00:10:05 +00:00
crashreporter Bug 1632264 - DONTBUILD really fix comment in browser_aboutCrashesResubmit.js 2020-04-28 10:42:50 +00:00
docs Bug 1622836 - Added documentation for nsIPromptService. r=johannh DONTBUILD 2020-04-22 10:28:04 +00:00
library Bug 1633943 - Support tearing down a Rust `StorageSyncArea`. r=markh 2020-04-29 04:35:45 +00:00
locales Bug 1618311 - Contextually suggest importing passwords as an autocomplete entry r=MattN,fluent-reviewers,flod 2020-04-28 21:59:34 +00:00
modules Bug 1633750 - Only build the extension storage Rust-C++ glue if `MOZ_NEW_WEBEXT_STORAGE` is enabled. r=markh 2020-04-29 04:41:31 +00:00
mozapps Bug 1496062 - Remove add-on type specific search labels. r=mstriemer,fluent-reviewers 2020-04-28 21:00:44 +00:00
pluginproblem
profile Bug 1608191 - Port profileDowngrade.dtd to Fluent, r=fluent-reviewers,flod,Gijs 2020-04-08 18:56:45 +00:00
system Bug 1628715 - Part 7: Add MOZ_NONNULL_RETURN to infallible nsTArray::AppendElements. r=xpcom-reviewers,necko-reviewers,nika,valentin 2020-04-24 13:31:14 +00:00
themes Bug 1625720 - Scope popup.css to menupopup and panel custom elements. r=dao 2020-04-26 15:31:40 +00:00
xre Bug 1632544 - reinstate startup and script cache invalidation for build ID and minor version changes, r=mossop 2020-04-24 15:47:19 +00:00
.eslintrc.js Bug 1622328 - add license info to all eslintrc files r=Standard8,webcompat-reviewers,miketaylr 2020-03-19 13:47:51 +00:00
l10n-registry.manifest
moz.build Bug 1580870 - Move toolkit/forgetaboutsite to toolkit/components/forgetaboutsite r=johannh 2020-04-21 11:27:30 +00:00
moz.configure Bug 1626506 - Vendor the `webext_storage` component. r=markh 2020-04-27 05:40:52 +00:00
toolkit.mozbuild