WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
235475
REGRESSION (iOS 15.2): Loading gets stuck after back-navigation involving COOP header
https://bugs.webkit.org/show_bug.cgi?id=235475
Summary
REGRESSION (iOS 15.2): Loading gets stuck after back-navigation involving COO...
Rémi
Reported
2022-01-22 05:58:06 PST
Overview ======== Back-navigation gets stuck in infinite loading under some circumstances when the Cross-Origin-Opener-Policy header is in use. This bug seems to impact only iOS and iPadOS 15.2, using any browser (e.g. we tried on Safari, Brave and Firefox). It seems like the COOP header was not supported before this version (
https://webkit.org/blog/12140/new-webkit-features-in-safari-15-2/
) Steps to reproduce ================== Here is a page which allows to reproduce the issue:
https://fmarier.org/coop-safari/link.html
(Thank you Francois) The flow is the following: - 'Site 1' sets the COOP header (either with value 'same-origin-allow-popups' or 'same-origin') - User navigates to 'site 2' from 'site 1' (e.g. in this case Instagram, which is how we discovered the issue in the first place) - User navigates backward from 'site 2' to 'site 1', but the loading gets stuck. Expected result =============== It should be possible to navigate backward from 'site 2' to 'site 1' without the browser getting stuck loading. Additional information ====================== Removing the COOP header from 'site 1' results in back-navigation working as expected. Speculation =========== It is not 100% clear what is causing this issue, but it seems to happen in some cases when 'site 1' and 'site 2' both define a COOP header, and user tries to navigation back from 'site 2' to 'site 1'. Build Date & Hardware ===================== The version of iOS where the issue was observed is 15.2.1 (19C63), the same issue appears on iPadOS 15.2 as well. We could not reproduce on the previous iOS version nor on the desktop version of Safari.
Attachments
API Test reproducing the issue
(2.41 KB, patch)
2022-01-24 16:07 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(18.55 KB, patch)
2022-01-25 12:53 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(27.27 KB, patch)
2022-01-25 14:08 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2022-01-23 17:29:17 PST
<
rdar://problem/87948317
>
Chris Dumez
Comment 2
2022-01-24 15:07:33 PST
I am able to reproduce. Thank you for the bug report, I will investigate shortly.
Chris Dumez
Comment 3
2022-01-24 16:07:03 PST
Created
attachment 449878
[details]
API Test reproducing the issue From the output it appears we keep launching new WebProcesses in a loop when we get in the bad state.
Chris Dumez
Comment 4
2022-01-25 12:53:49 PST
Created
attachment 449957
[details]
Patch
Chris Dumez
Comment 5
2022-01-25 14:08:42 PST
Created
attachment 449965
[details]
Patch
Geoffrey Garen
Comment 6
2022-01-25 16:08:44 PST
Comment on
attachment 449965
[details]
Patch r=me
EWS
Comment 7
2022-01-25 23:01:23 PST
Committed
r288605
(
246424@main
): <
https://commits.webkit.org/246424@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 449965
[details]
.
Chris Dumez
Comment 8
2022-05-16 08:55:12 PDT
***
Bug 237137
has been marked as a duplicate of this bug. ***
Brent Fulgham
Comment 9
2022-06-23 15:50:43 PDT
***
Bug 237566
has been marked as a duplicate of this bug. ***
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