forked from WebKit/WebKit-http
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Storage Access API: Enable per-page storage access scope and align te…
…st cases https://bugs.webkit.org/show_bug.cgi?id=217077 <rdar://problem/69017878> Reviewed by Brent Fulgham. It was decided in privacycg/storage-access#3 that browsers should grant storage access for all same-site resources on the whole page, not just the requesting iframe. Source/WebCore: No new tests. Existing tests aligned, including LayoutTests/http/tests/storageAccess/request-and-grant-access-with-per-page-scope-access-from-another-frame.html which no longer calls internals.settings.setStorageAccessAPIPerPageScopeEnabled(true) to opt in to the setting that is now the default. * dom/DocumentStorageAccess.cpp: (WebCore::DocumentStorageAccess::requestStorageAccess): Changed the settings check to do the reverse, i.e. assume per-page access by default and per-frame access as the exception. * dom/DocumentStorageAccess.h: Changed the default setting for m_storageAccessScope to per-page. * page/Settings.yaml: Changed the default to true for storageAccessAPIPerPageScopeEnabled. Source/WebKit: * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::hasStorageAccess): Added a call to WebPage::hasPageLevelStorageAccess() and an early return if it returns true. (WebKit::WebPage::clearPageLevelStorageAccess): New function to clear the webpage's m_domainsWithPageLevelStorageAccess map. * WebProcess/WebPage/WebPage.h: * WebProcess/WebProcess.cpp: (WebKit::WebProcess::clearResourceLoadStatistics): Now clears all webpages' page level storage access maps. LayoutTests: * http/tests/storageAccess/request-and-grant-access-cross-origin-sandboxed-iframe-from-prevalent-domain-with-user-interaction-and-access-from-right-frame.html: * http/tests/storageAccess/request-and-grant-access-cross-origin-sandboxed-iframe-from-prevalent-domain-with-user-interaction-but-access-from-wrong-frame.html: * http/tests/storageAccess/request-and-grant-access-then-detach-should-not-have-access.html: * http/tests/storageAccess/request-and-grant-access-then-navigate-cross-site-should-not-have-access.html: All of the above now explicitly call internals.settings.setStorageAccessAPIPerPageScopeEnabled(false) to opt out of the new default setting. * http/tests/storageAccess/request-and-grant-access-with-per-page-scope-access-from-another-frame.html: Changed to assume per-page is the default. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@267973 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
20becca
commit 28ffd8a
Showing
14 changed files
with
109 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,25 @@ | ||
2020-10-05 John Wilander <[email protected]> | ||
|
||
Storage Access API: Enable per-page storage access scope and align test cases | ||
https://bugs.webkit.org/show_bug.cgi?id=217077 | ||
<rdar://problem/69017878> | ||
|
||
Reviewed by Brent Fulgham. | ||
|
||
It was decided in https://github.com/privacycg/storage-access/issues/3 that | ||
browsers should grant storage access for all same-site resources on the whole | ||
page, not just the requesting iframe. | ||
|
||
* http/tests/storageAccess/request-and-grant-access-cross-origin-sandboxed-iframe-from-prevalent-domain-with-user-interaction-and-access-from-right-frame.html: | ||
* http/tests/storageAccess/request-and-grant-access-cross-origin-sandboxed-iframe-from-prevalent-domain-with-user-interaction-but-access-from-wrong-frame.html: | ||
* http/tests/storageAccess/request-and-grant-access-then-detach-should-not-have-access.html: | ||
* http/tests/storageAccess/request-and-grant-access-then-navigate-cross-site-should-not-have-access.html: | ||
All of the above now explicitly call | ||
internals.settings.setStorageAccessAPIPerPageScopeEnabled(false) | ||
to opt out of the new default setting. | ||
* http/tests/storageAccess/request-and-grant-access-with-per-page-scope-access-from-another-frame.html: | ||
Changed to assume per-page is the default. | ||
|
||
2020-10-05 Diego Pino Garcia <[email protected]> | ||
|
||
[GLIB] Unreviewed test gardening. Merge common GTK and WPE baselines and emit new baselines for WPE tests after r267960. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,32 @@ | ||
2020-10-05 John Wilander <[email protected]> | ||
|
||
Storage Access API: Enable per-page storage access scope and align test cases | ||
https://bugs.webkit.org/show_bug.cgi?id=217077 | ||
<rdar://problem/69017878> | ||
|
||
Reviewed by Brent Fulgham. | ||
|
||
It was decided in https://github.com/privacycg/storage-access/issues/3 that | ||
browsers should grant storage access for all same-site resources on the whole | ||
page, not just the requesting iframe. | ||
|
||
No new tests. Existing tests aligned, including | ||
LayoutTests/http/tests/storageAccess/request-and-grant-access-with-per-page-scope-access-from-another-frame.html | ||
which no longer calls | ||
internals.settings.setStorageAccessAPIPerPageScopeEnabled(true) | ||
to opt in to the setting that is now the default. | ||
|
||
* dom/DocumentStorageAccess.cpp: | ||
(WebCore::DocumentStorageAccess::requestStorageAccess): | ||
Changed the settings check to do the reverse, i.e. assume | ||
per-page access by default and per-frame access as the | ||
exception. | ||
* dom/DocumentStorageAccess.h: | ||
Changed the default setting for m_storageAccessScope to per-page. | ||
* page/Settings.yaml: | ||
Changed the default to true for | ||
storageAccessAPIPerPageScopeEnabled. | ||
|
||
2020-10-05 Sam Weinig <[email protected]> | ||
|
||
Remove support for enabling subpixel CSSOM values, it's off by default everywhere and known to be not-compatible with the web | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,27 @@ | ||
2020-10-05 John Wilander <[email protected]> | ||
|
||
Storage Access API: Enable per-page storage access scope and align test cases | ||
https://bugs.webkit.org/show_bug.cgi?id=217077 | ||
<rdar://problem/69017878> | ||
|
||
Reviewed by Brent Fulgham. | ||
|
||
It was decided in https://github.com/privacycg/storage-access/issues/3 that | ||
browsers should grant storage access for all same-site resources on the whole | ||
page, not just the requesting iframe. | ||
|
||
* WebProcess/WebPage/WebPage.cpp: | ||
(WebKit::WebPage::hasStorageAccess): | ||
Added a call to WebPage::hasPageLevelStorageAccess() | ||
and an early return if it returns true. | ||
(WebKit::WebPage::clearPageLevelStorageAccess): | ||
New function to clear the webpage's m_domainsWithPageLevelStorageAccess | ||
map. | ||
* WebProcess/WebPage/WebPage.h: | ||
* WebProcess/WebProcess.cpp: | ||
(WebKit::WebProcess::clearResourceLoadStatistics): | ||
Now clears all webpages' page level storage access maps. | ||
|
||
2020-10-05 Sam Weinig <[email protected]> | ||
|
||
Remove support for enabling subpixel CSSOM values, it's off by default everywhere and known to be not-compatible with the web | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters