| Summary: | Crash under com.apple.WebKit.Networking at WebCore: WebCore::NetworkStorageSession::hasStorageAccess const | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Chris Dumez <cdumez> | ||||||||
| Component: | WebKit2 | Assignee: | Chris Dumez <cdumez> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | ap, bfulgham, commit-queue, ews-watchlist, ggaren, webkit-bug-importer, wilander, youennf | ||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||
| Version: | WebKit Nightly Build | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Chris Dumez
2018-06-08 08:42:34 PDT
Created attachment 342295 [details]
Patch
More details on the radar. Looks good to me. Thanks for fixing this one! BTW, didn't we have a stable repro case? Could we make a layout test out of it? (In reply to John Wilander from comment #6) > BTW, didn't we have a stable repro case? Could we make a layout test out of > it? As noted on the radar, I believe the crash would no longer occurs after http://trac.webkit.org/r232198 but I still think it is worth hardening rather than relying on the call sites to not pass null. I will send you a layout test attempt I wrote. I got close to exercising this code path but I was not able to populate m_pagesGrantedStorageAccess from the layout test despite my efforts. Maybe you can help tweak the test :) Comment on attachment 342295 [details]
Patch
Yes. This seems like a wise hardening step.
Do we need the same protection in "NetworkStorageSession::grantStorageAccess", too?
Created attachment 342302 [details]
Patch
(In reply to Brent Fulgham from comment #8) > Comment on attachment 342295 [details] > Patch > > Yes. This seems like a wise hardening step. > > Do we need the same protection in > "NetworkStorageSession::grantStorageAccess", too? Good idea. Comment on attachment 342302 [details] Patch Attachment 342302 [details] did not pass win-ews (win): Output: http://webkit-queues.webkit.org/results/8091587 New failing tests: http/tests/security/contentSecurityPolicy/userAgentShadowDOM/allow-video.html Created attachment 342348 [details]
Archive of layout-test-results from ews200 for win-future
The attached test failures were seen while running run-webkit-tests on the win-ews.
Bot: ews200 Port: win-future Platform: CYGWIN_NT-6.1-2.9.0-0.318-5-3-x86_64-64bit
Failure is unrelated. ping review? Comment on attachment 342302 [details]
Patch
r=me
Comment on attachment 342302 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=342302&action=review > Source/WebCore/platform/network/cf/NetworkStorageSessionCFNet.cpp:342 > void NetworkStorageSession::grantStorageAccess(const String& resourceDomain, const String& firstPartyDomain, std::optional<uint64_t> frameID, uint64_t pageID) Is there a reason to request storage access if firstPartyDomain is empty? Comment on attachment 342302 [details] Patch Clearing flags on attachment: 342302 Committed r232720: <https://trac.webkit.org/changeset/232720> All reviewed patches have been landed. Closing bug. |