Title: [225586] trunk/Source/WebCore/ChangeLog
Revision
225586
Author
s...@apple.com
Date
2017-12-06 11:56:13 -0800 (Wed, 06 Dec 2017)

Log Message

Storage Access API: Make document.hasStorageAccess a function and always allow access for same-origin iframes
https://bugs.webkit.org/show_bug.cgi?id=176944
<rdar://problem/34440658>

Patch by John Wilander <wilan...@apple.com> on 2017-12-06
Reviewed by Brent Fulgham.

Test: http/tests/storageAccess/request-storage-access-cross-origin-sandboxed-iframe-without-user-gesture.html

This change introduces document.hasStorageAccess() as a function which
returns a promise instead of being a property. Since cookie access can
be due to both a granted request and recent user interaction as first
party, the WebKit::WebResourceLoadStatisticsStore needs to be consulted.

* dom/Document.cpp:
(WebCore::Document::hasStorageAccess):
(WebCore::Document::requestStorageAccess):
    Removed check of the previous m_hasStorageAccess member.
    Same-origin check done earlier. This was a request/suggestion
    from Mozilla.
* dom/Document.h:
(WebCore::Document::hasStorageAccess const): Deleted.
    Now uses a promise.
* dom/Document.idl:
* page/ChromeClient.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (225585 => 225586)


--- trunk/Source/WebCore/ChangeLog	2017-12-06 19:45:55 UTC (rev 225585)
+++ trunk/Source/WebCore/ChangeLog	2017-12-06 19:56:13 UTC (rev 225586)
@@ -86,7 +86,9 @@
 
         Disable using CGContextDrawPathDirect() for macOS High Sierra or earlier.
         This API has a bug when drawing a path with a shadow on Retina display.
+        This bug is tracked internally by <rdar://problem/35620690>.
 
+
         * platform/graphics/cg/GraphicsContextCG.cpp:
 
 2017-12-06  Youenn Fablet  <you...@apple.com>
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to