WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 221641
Expand stubs to thread actual NSURLRequest/NSURLResponse for the new simulated-request API
https://bugs.webkit.org/show_bug.cgi?id=221641
Summary
Expand stubs to thread actual NSURLRequest/NSURLResponse for the new simulate...
Brent Fulgham
Reported
2021-02-09 16:56:33 PST
We established a set of stubs in
Bug 221430
that need to be fleshed out. 1. They should thread the NSURLRequest/NSURLResponse objects to the loading layer (I think this is already true for NSURLRequest). 2. Loads via these API should cause entries to be added to the back/forward list. 3. We need API Tests to confirm the back/forward list works as expected.
Attachments
Patch
(27.31 KB, patch)
2021-02-16 17:03 PST
,
Brent Fulgham
ews-feeder
: commit-queue-
Details
Formatted Diff
Diff
Patch
(27.34 KB, patch)
2021-02-16 17:34 PST
,
Brent Fulgham
ews-feeder
: commit-queue-
Details
Formatted Diff
Diff
Patch
(27.36 KB, patch)
2021-02-16 18:00 PST
,
Brent Fulgham
no flags
Details
Formatted Diff
Diff
Patch for landing
(25.23 KB, patch)
2021-02-17 12:13 PST
,
Brent Fulgham
no flags
Details
Formatted Diff
Diff
Patch
(3.16 KB, patch)
2021-02-17 16:03 PST
,
Brent Fulgham
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2021-02-09 16:57:02 PST
<
rdar://problem/74166568
>
Brent Fulgham
Comment 2
2021-02-16 17:03:04 PST
Created
attachment 420561
[details]
Patch
Brent Fulgham
Comment 3
2021-02-16 17:34:54 PST
Created
attachment 420565
[details]
Patch
Brent Fulgham
Comment 4
2021-02-16 18:00:06 PST
Created
attachment 420573
[details]
Patch
Brent Fulgham
Comment 5
2021-02-16 18:15:02 PST
Comment on
attachment 420573
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=420573&action=review
> Source/WebKit/UIProcess/WebPageProxy.cpp:1501 > +void WebPageProxy::loadSimulatedRequestDataWithNavigationShared(Ref<WebProcessProxy>&& process, WebCore::PageIdentifier webPageID, API::Navigation& navigation, WebCore::ResourceRequest&& simulatedRequest, WebCore::ResourceResponse&& simulatedResponse, const IPC::DataReference& data, API::Object* userData, ShouldTreatAsContinuingLoad shouldTreatAsContinuingLoad, Optional<NavigatingToAppBoundDomain> isNavigatingToAppBoundDomain, Optional<WebsitePoliciesData>&& websitePolicies, ShouldOpenExternalURLsPolicy shouldOpenExternalURLsPolicy)
@Chris: I can merge this with the above if I don’t need to do a ProvisionalPageProxy.
Chris Dumez
Comment 6
2021-02-17 10:15:17 PST
Comment on
attachment 420573
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=420573&action=review
>> Source/WebKit/UIProcess/WebPageProxy.cpp:1501 >> +void WebPageProxy::loadSimulatedRequestDataWithNavigationShared(Ref<WebProcessProxy>&& process, WebCore::PageIdentifier webPageID, API::Navigation& navigation, WebCore::ResourceRequest&& simulatedRequest, WebCore::ResourceResponse&& simulatedResponse, const IPC::DataReference& data, API::Object* userData, ShouldTreatAsContinuingLoad shouldTreatAsContinuingLoad, Optional<NavigatingToAppBoundDomain> isNavigatingToAppBoundDomain, Optional<WebsitePoliciesData>&& websitePolicies, ShouldOpenExternalURLsPolicy shouldOpenExternalURLsPolicy) > > @Chris: I can merge this with the above if I don’t need to do a ProvisionalPageProxy.
Right. I think we should merge.
> Tools/TestWebKitAPI/Tests/WebKitCocoa/WKWebViewLoadAPIs.mm:100 > + EXPECT_EQ((NSUInteger)1, list.backList.count);
Would be good to check WKBackForwardListItem.URL too for both the current item and the backList item.
> Tools/TestWebKitAPI/Tests/WebKitCocoa/WKWebViewLoadAPIs.mm:111 > + EXPECT_EQ((NSUInteger)1, list.forwardList.count);
ditto.
Kate Cheney
Comment 7
2021-02-17 10:16:52 PST
Comment on
attachment 420573
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=420573&action=review
> Source/WebKit/UIProcess/WebPageProxy.cpp:1476 > + UNUSED_PARAM(data);
Is this meant to be here? It seems like data is used below.
Brent Fulgham
Comment 8
2021-02-17 12:13:38 PST
Created
attachment 420691
[details]
Patch for landing
EWS
Comment 9
2021-02-17 13:26:13 PST
Committed
r273023
: <
https://commits.webkit.org/r273023
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 420691
[details]
.
Brent Fulgham
Comment 10
2021-02-17 14:59:53 PST
Reopening to add a test fix.
Brent Fulgham
Comment 11
2021-02-17 16:03:49 PST
Created
attachment 420746
[details]
Patch
Chris Dumez
Comment 12
2021-02-17 16:05:28 PST
Comment on
attachment 420746
[details]
Patch r=me
EWS
Comment 13
2021-02-17 16:40:09 PST
Committed
r273048
: <
https://commits.webkit.org/r273048
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 420746
[details]
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug