ORB validates opaque responses asynchronously, after they're committed to the cache, so a blocked response was left cached and could be reused by a later same-partition request (e.g. a navigation reusing a prefetch). Doom the committed entry when ORB blocks. Fixes the "same-site different-origin document prefetch without 'as' should not be consumed" subtest in preload/prefetch-document.html. Differential Revision: https://phabricator.services.mozilla.com/D305637
16 lines
645 B
INI
16 lines
645 B
INI
[prefetch-document.html]
|
|
# ORB is disabled on Android, so the prefetch isn't blocked/doomed (bug 2045809).
|
|
[same-site different-origin document prefetch without 'as' should not be consumed]
|
|
expected:
|
|
if os == "android": FAIL
|
|
|
|
[same origin document prefetch without 'as' should be consumed]
|
|
expected:
|
|
if (os == "linux") and not debug and not asan and not tsan: [PASS, FAIL]
|
|
if (os == "linux") and debug: [PASS, FAIL]
|
|
if (os == "android") and not debug: [PASS, FAIL]
|
|
|
|
[Document prefetch should send the exact Accept header as navigation]
|
|
expected:
|
|
if (os == "android") and not debug: [PASS, FAIL]
|