RESOLVED FIXED198469
Memory-cached main resources continue to load after the client decides a content policy of PolicyAction::Download
https://bugs.webkit.org/show_bug.cgi?id=198469
Summary Memory-cached main resources continue to load after the client decides a cont...
Andy Estes
Reported 2019-06-02 15:47:38 PDT
Memory-cached main resources continue to load after the client decides a content policy of PollicyAction::Download
Attachments
Patch (12.23 KB, patch)
2019-06-02 15:59 PDT, Andy Estes
no flags
Archive of layout-test-results from ews107 for mac-highsierra-wk2 (2.86 MB, application/zip)
2019-06-02 17:15 PDT, EWS Watchlist
no flags
Archive of layout-test-results from ews211 for win-future (13.96 MB, application/zip)
2019-06-02 19:49 PDT, EWS Watchlist
no flags
Patch (13.04 KB, patch)
2019-06-03 11:09 PDT, Andy Estes
ews-watchlist: commit-queue-
Archive of layout-test-results from ews107 for mac-highsierra-wk2 (3.05 MB, application/zip)
2019-06-03 11:58 PDT, EWS Watchlist
no flags
Andy Estes
Comment 1 2019-06-02 15:47:59 PDT
Andy Estes
Comment 2 2019-06-02 15:59:29 PDT
EWS Watchlist
Comment 3 2019-06-02 17:15:48 PDT Comment hidden (obsolete)
EWS Watchlist
Comment 4 2019-06-02 17:15:49 PDT Comment hidden (obsolete)
EWS Watchlist
Comment 5 2019-06-02 19:49:52 PDT Comment hidden (obsolete)
EWS Watchlist
Comment 6 2019-06-02 19:49:54 PDT Comment hidden (obsolete)
youenn fablet
Comment 7 2019-06-03 08:57:42 PDT
Comment on attachment 371167 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=371167&action=review > Source/WebCore/loader/DocumentLoader.cpp:953 > + ASSERT(m_mainResource); Is this assert needed given we check for m_mainResource at the beginning of the Download case block?
youenn fablet
Comment 8 2019-06-03 09:01:20 PDT
As a side note, there is the case of substitute resource loads where we call mainReceivedError() in case of PolicyAction::Download. I wonder whether we should have consistent calls there.
Andy Estes
Comment 9 2019-06-03 09:38:19 PDT
(In reply to youenn fablet from comment #8) > As a side note, there is the case of substitute resource loads where we call > mainReceivedError() in case of PolicyAction::Download. I wonder whether we > should have consistent calls there. stopLoadingForPolicyChange() calls mainReceivedError(), so I think we're consistent in that sense. It uses a different error code than in the call you cited ("interrupted for policy change" vs. "cannot show URL"), but I wanted to match the error code used in the call to ResourceLoader::didFail.
Andy Estes
Comment 10 2019-06-03 10:52:38 PDT
(In reply to youenn fablet from comment #7) > Comment on attachment 371167 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=371167&action=review > > > Source/WebCore/loader/DocumentLoader.cpp:953 > > + ASSERT(m_mainResource); > > Is this assert needed given we check for m_mainResource at the beginning of > the Download case block? I was curious to see if it could ever go missing after that check at the beginning, but I don't think it's needed. Will remove.
Andy Estes
Comment 11 2019-06-03 11:09:17 PDT Comment hidden (obsolete)
EWS Watchlist
Comment 12 2019-06-03 11:58:57 PDT Comment hidden (obsolete)
EWS Watchlist
Comment 13 2019-06-03 11:58:59 PDT Comment hidden (obsolete)
Andy Estes
Comment 14 2019-06-03 12:39:08 PDT
Note You need to log in before you can comment on or make changes to this bug.