fune/toolkit/components/windowwatcher
Benjamin VanderSloot 58d36f75d6 Bug 1835907, part 1 - Add has storage access bit and triggering window id to the LoadInfo - r=smaug,necko-reviewers,kershaw,pbz
In the Storage Access API's latest draft, a few items were added to the user-agent state. Relevant here,
the source snapshot params gained two fields that are initialized from the sourceDocument during
snapshotting source params while navigating: "has storage access" and "environment id".

https://privacycg.github.io/storage-access/#ua-state

These are used to identify self-initiated navigations that come from documents that have obtained storage access.
Combined with a same-origin check, this determines if the destination document of the navigation should start
with storage access.

This is stricter than the current behavior, where if the permission is available, all documents start with storage access.
Instead, now a document will only have storage access if it requests it explicitly or if a same-origin document that has
storage access navigates itself to that document. This is seen as a security win.

Security discussion of this change was here: https://github.com/privacycg/storage-access/issues/113
Artur at Google wrote up a great summary here: https://docs.google.com/document/d/1AsrETl-7XvnZNbG81Zy9BcZfKbqACQYBSrjM3VsIpjY/edit#

Differential Revision: https://phabricator.services.mozilla.com/D184821
2023-08-15 13:04:04 +00:00
..
test Bug 1843792 - Part 3: Rewrite toolkit/components/ctypes/ctypes.sys.mjs consumers in html/xhtml to use ChromeUtils.importESModule. r=mossop 2023-07-19 00:43:27 +00:00
moz.build
nsAutoWindowStateHelper.cpp
nsAutoWindowStateHelper.h
nsDialogParamBlock.cpp
nsDialogParamBlock.h
nsIDialogParamBlock.idl
nsIOpenWindowInfo.idl
nsIPromptCollection.idl
nsIPromptFactory.idl
nsIPromptService.idl
nsIWindowWatcher.idl
nsOpenWindowInfo.cpp
nsOpenWindowInfo.h
nsPIPromptService.idl
nsPIWindowWatcher.idl
nsPromptUtils.h
nsWindowWatcher.cpp Bug 1835907, part 1 - Add has storage access bit and triggering window id to the LoadInfo - r=smaug,necko-reviewers,kershaw,pbz 2023-08-15 13:04:04 +00:00
nsWindowWatcher.h