WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
231379
[ BigSur wk2 Release ] http/tests/resourceLoadStatistics/sandboxed-nesting-iframe-with-non-sandboxed-iframe-redirect-ip-to-localhost-to-ip.html is a flaky failure
https://bugs.webkit.org/show_bug.cgi?id=231379
Summary
[ BigSur wk2 Release ] http/tests/resourceLoadStatistics/sandboxed-nesting-if...
Eric Hutchison
Reported
2021-10-07 11:29:45 PDT
http/tests/resourceLoadStatistics/sandboxed-nesting-iframe-with-non-sandboxed-iframe-redirect-ip-to-localhost-to-ip.html is a flaky failure on BigSur wk2 Release. History:
https://results.webkit.org/?suite=layout-tests&test=http%2Ftests%2FresourceLoadStatistics%2Fsandboxed-nesting-iframe-with-non-sandboxed-iframe-redirect-ip-to-localhost-to-ip.html
Build:
https://build.webkit.org/#/builders/70/builds/5699
Results:
https://build.webkit.org/results/Apple-BigSur-Release-WK2-Tests/r283709%20(5699)/results.html
Diff: --- /Volumes/Data/worker/bigsur-release-tests-wk2/build/layout-test-results/http/tests/resourceLoadStatistics/sandboxed-nesting-iframe-with-non-sandboxed-iframe-redirect-ip-to-localhost-to-ip-expected.txt +++ /Volumes/Data/worker/bigsur-release-tests-wk2/build/layout-test-results/http/tests/resourceLoadStatistics/sandboxed-nesting-iframe-with-non-sandboxed-iframe-redirect-ip-to-localhost-to-ip-actual.txt @@ -4,9 +4,10 @@ PASS testRunner.isStatisticsRegisteredAsSubFrameUnder("
http://localhost
", "
http://127.0.0.1
") is true -PASS testRunner.isStatisticsRegisteredAsRedirectingTo("
http://localhost
", "
http://127.0.0.1
") is true +FAIL testRunner.isStatisticsRegisteredAsRedirectingTo("
http://localhost
", "
http://127.0.0.1
") should be true. Was false. PASS testRunner.isStatisticsRegisteredAsRedirectingTo("
http://127.0.0.1
", "
http://localhost
") is true PASS successfullyParsed is true +Some tests failed. TEST COMPLETE Unable to reproduce text failure locally using
r283709
and
r283714
.
Attachments
Patch
(9.92 KB, patch)
2021-10-18 16:36 PDT
,
John Wilander
no flags
Details
Formatted Diff
Diff
Patch
(3.27 KB, patch)
2021-10-19 09:52 PDT
,
John Wilander
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2021-10-07 11:30:22 PDT
<
rdar://problem/83991245
>
Eric Hutchison
Comment 2
2021-10-07 11:35:33 PDT
Updated test expectations at
http://trac.webkit.org/changeset/283727/webkit
John Wilander
Comment 3
2021-10-18 16:36:31 PDT
Created
attachment 441657
[details]
Patch
Chris Dumez
Comment 4
2021-10-18 16:39:17 PDT
Comment on
attachment 441657
[details]
Patch Can't we add `Cache-Control: no-cache, no-store` header to resourceLoadStatistics/resources/redirect.py ? Do we ever want to cache those redirects?
John Wilander
Comment 5
2021-10-18 17:06:31 PDT
(In reply to Chris Dumez from
comment #4
)
> Comment on
attachment 441657
[details]
> Patch > > Can't we add `Cache-Control: no-cache, no-store` header to > resourceLoadStatistics/resources/redirect.py ? Do we ever want to cache > those redirects?
We could. I do recall testing WebKit behavior at some point and redirects were cached regardless. Maybe that was treating temporary redirects as permanent though.
John Wilander
Comment 6
2021-10-19 09:30:09 PDT
(In reply to John Wilander from
comment #5
)
> (In reply to Chris Dumez from
comment #4
) > > Comment on
attachment 441657
[details]
> > Patch > > > > Can't we add `Cache-Control: no-cache, no-store` header to > > resourceLoadStatistics/resources/redirect.py ? Do we ever want to cache > > those redirects? > > We could. I do recall testing WebKit behavior at some point and redirects > were cached regardless. Maybe that was treating temporary redirects as > permanent though.
I thought this through over last night and the only obstacle I came up with is the explicit cache testing in resourceLoadStatistics/cap-cache-max-age-for-prevalent-resource.html. But it uses the dedicated resourceLoadStatistics/resources/cached-permanent-redirect.py so we're good. Would you prefer only the no-cache response header or a combo?
Chris Dumez
Comment 7
2021-10-19 09:31:24 PDT
(In reply to John Wilander from
comment #6
)
> (In reply to John Wilander from
comment #5
) > > (In reply to Chris Dumez from
comment #4
) > > > Comment on
attachment 441657
[details]
> > > Patch > > > > > > Can't we add `Cache-Control: no-cache, no-store` header to > > > resourceLoadStatistics/resources/redirect.py ? Do we ever want to cache > > > those redirects? > > > > We could. I do recall testing WebKit behavior at some point and redirects > > were cached regardless. Maybe that was treating temporary redirects as > > permanent though. > > I thought this through over last night and the only obstacle I came up with > is the explicit cache testing in > resourceLoadStatistics/cap-cache-max-age-for-prevalent-resource.html. But it > uses the dedicated > resourceLoadStatistics/resources/cached-permanent-redirect.py so we're good. > > Would you prefer only the no-cache response header or a combo?
I think I would prefer "Cache-Control: no-cache, no-store" if it works here. Generating unique URLs is a bit annoying and you have to keep doing it in new tests.
John Wilander
Comment 8
2021-10-19 09:37:42 PDT
(In reply to Chris Dumez from
comment #7
)
> (In reply to John Wilander from
comment #6
) > > (In reply to John Wilander from
comment #5
) > > > (In reply to Chris Dumez from
comment #4
) > > > > Comment on
attachment 441657
[details]
> > > > Patch > > > > > > > > Can't we add `Cache-Control: no-cache, no-store` header to > > > > resourceLoadStatistics/resources/redirect.py ? Do we ever want to cache > > > > those redirects? > > > > > > We could. I do recall testing WebKit behavior at some point and redirects > > > were cached regardless. Maybe that was treating temporary redirects as > > > permanent though. > > > > I thought this through over last night and the only obstacle I came up with > > is the explicit cache testing in > > resourceLoadStatistics/cap-cache-max-age-for-prevalent-resource.html. But it > > uses the dedicated > > resourceLoadStatistics/resources/cached-permanent-redirect.py so we're good. > > > > Would you prefer only the no-cache response header or a combo? > > I think I would prefer "Cache-Control: no-cache, no-store" if it works here. > Generating unique URLs is a bit annoying and you have to keep doing it in > new tests.
I have not been able to repro the issue locally and neither have the bot watchers. So this is a speculative fix based on prior experience. In this case, I at least did part of the work in the Python redirecter which will be available without extra work in new tests.
Chris Dumez
Comment 9
2021-10-19 09:40:00 PDT
(In reply to John Wilander from
comment #8
)
> (In reply to Chris Dumez from
comment #7
) > > (In reply to John Wilander from
comment #6
) > > > (In reply to John Wilander from
comment #5
) > > > > (In reply to Chris Dumez from
comment #4
) > > > > > Comment on
attachment 441657
[details]
> > > > > Patch > > > > > > > > > > Can't we add `Cache-Control: no-cache, no-store` header to > > > > > resourceLoadStatistics/resources/redirect.py ? Do we ever want to cache > > > > > those redirects? > > > > > > > > We could. I do recall testing WebKit behavior at some point and redirects > > > > were cached regardless. Maybe that was treating temporary redirects as > > > > permanent though. > > > > > > I thought this through over last night and the only obstacle I came up with > > > is the explicit cache testing in > > > resourceLoadStatistics/cap-cache-max-age-for-prevalent-resource.html. But it > > > uses the dedicated > > > resourceLoadStatistics/resources/cached-permanent-redirect.py so we're good. > > > > > > Would you prefer only the no-cache response header or a combo? > > > > I think I would prefer "Cache-Control: no-cache, no-store" if it works here. > > Generating unique URLs is a bit annoying and you have to keep doing it in > > new tests. > > I have not been able to repro the issue locally and neither have the bot > watchers. So this is a speculative fix based on prior experience. In this > case, I at least did part of the work in the Python redirecter which will be > available without extra work in new tests.
It seems silly to me to generate unique URLs to work around a resource being cached when you could simply mark this resource as non-cacheable.
John Wilander
Comment 10
2021-10-19 09:52:47 PDT
Created
attachment 441744
[details]
Patch
Chris Dumez
Comment 11
2021-10-19 09:55:51 PDT
Comment on
attachment 441744
[details]
Patch r=me as long as the bots are happy.
John Wilander
Comment 12
2021-10-19 10:10:53 PDT
Thanks, Chris! I'll wait for green.
John Wilander
Comment 13
2021-10-19 11:37:37 PDT
Comment on
attachment 441744
[details]
Patch iOS wk2 queue severely backed up. Marking cq+ now that Mac wk2 is green.
EWS
Comment 14
2021-10-19 11:43:27 PDT
Committed
r284473
(
243232@main
): <
https://commits.webkit.org/243232@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 441744
[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