WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
184293
REGRESSION(
r229831
): Test WebKit2.ProvisionalURLAfterWillSendRequestCallback times out since
r229831
https://bugs.webkit.org/show_bug.cgi?id=184293
Summary
REGRESSION(r229831): Test WebKit2.ProvisionalURLAfterWillSendRequestCallback ...
Carlos Garcia Campos
Reported
2018-04-04 02:17:22 PDT
The problem is that after willSendRequest callback changes the request, the load is cancelled while transitioning to committed state. This happens because the load is not waiting for the response policy check, so it continues and when transitioning to committed, FrameLoader::closeURL() invalidates the current policy check that causes a load failure. The new request returned by the API doesn't have any requester, so it's no longer considered a main resource load. In the network process the resource load task doesn't wait for the response policy and continues the load, sending the data to the web process. Once the first data is received the load transitions to commit, but the response policy check is still ongoing. This can only happen when using the C API (I don't know about the Cocoa API), but not with the GLib API because it doesn't allow to create a new request, only to modify the passed in one. With the C API we loss other internal things of the request like the priority, but I guess the most important one is the requester.
Attachments
Patch
(2.85 KB, patch)
2018-04-04 02:24 PDT
,
Carlos Garcia Campos
achristensen
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Carlos Garcia Campos
Comment 1
2018-04-04 02:24:58 PDT
Created
attachment 337153
[details]
Patch
Alex Christensen
Comment 2
2018-04-04 10:09:00 PDT
Comment on
attachment 337153
[details]
Patch We should probably run that API test on Mac, too.
Michael Catanzaro
Comment 3
2018-04-04 10:19:29 PDT
(In reply to Alex Christensen from
comment #2
)
> Comment on
attachment 337153
[details]
> Patch > > We should probably run that API test on Mac, too.
Right now, I believe we have a bunch of cross-platform API tests that are run only with XCode, when most of them should really be run on all ports. I did not realize that the reverse was true as well. It would be good to comprehensively improve this situation.
Carlos Garcia Campos
Comment 4
2018-04-05 01:44:30 PDT
(In reply to Alex Christensen from
comment #2
)
> Comment on
attachment 337153
[details]
> Patch > > We should probably run that API test on Mac, too.
Indeed, I was surprised it was still prefixed WebKit2, then I realized it was because it's not run in Mac. We should rename it and add it to xcode in a follow up, but I prefer if someone with a mac can do it, it's painful process for me.
Carlos Garcia Campos
Comment 5
2018-04-05 02:01:37 PDT
Committed
r230298
: <
https://trac.webkit.org/changeset/230298
>
Radar WebKit Bug Importer
Comment 6
2018-04-05 02:02:54 PDT
<
rdar://problem/39202609
>
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