RESOLVED FIXED227599
loadSimulatedRequest: should do same delegate callbacks as loadHTMLString and loadData
https://bugs.webkit.org/show_bug.cgi?id=227599
Summary loadSimulatedRequest: should do same delegate callbacks as loadHTMLString and...
Alex Christensen
Reported 2021-07-01 15:22:55 PDT
loadSimulatedRequest: should do same delegate callbacks as loadHTMLString and loadData
Attachments
Patch (5.61 KB, patch)
2021-07-01 15:23 PDT, Alex Christensen
no flags
Patch (5.60 KB, patch)
2021-07-01 15:45 PDT, Alex Christensen
no flags
Patch (33.43 KB, patch)
2021-07-02 21:45 PDT, Alex Christensen
no flags
Alex Christensen
Comment 1 2021-07-01 15:23:27 PDT
Chris Dumez
Comment 2 2021-07-01 15:26:48 PDT
Comment on attachment 432731 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=432731&action=review > Tools/TestWebKitAPI/Tests/WebKitCocoa/WKWebViewLoadAPIs.mm:97 > + EXPECT_EQ(vector.size(), 4u); ASSERT_EQ() as we'll crash otherwise.
Alex Christensen
Comment 3 2021-07-01 15:45:44 PDT
Wenson Hsieh
Comment 4 2021-07-01 16:16:30 PDT
EWS
Comment 5 2021-07-01 18:45:38 PDT
Committed r279494 (239346@main): <https://commits.webkit.org/239346@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 432737 [details].
WebKit Commit Bot
Comment 7 2021-07-02 08:03:07 PDT
Re-opened since this is blocked by bug 227628
Alex Christensen
Comment 8 2021-07-02 21:45:05 PDT
Alex Christensen
Comment 9 2021-07-02 22:26:30 PDT
Comment on attachment 432841 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=432841&action=review > Source/WebKit/ChangeLog:9 > + I also wanted to add this: Before this change we set SubstituteData.failingURL, which in FrameLoader::PolicyChecker::checkNavigationPolicy makes it behave more like _loadAlternateHTMLString which doesn't call decidePolicyForNavigationAction and does add a back/forward entry. We want it to behave more like loadHTMLString, which does call decidePolicyForNavigationAction and doesn't add a back/forward entry. Except we do want it to add a back/forward entry. This patch is to accomplish that.
Alex Christensen
Comment 10 2021-07-06 10:34:15 PDT
Note You need to log in before you can comment on or make changes to this bug.