Closed Bug 1664426 Opened 4 years ago Closed 3 years ago

Intermittent /fetch/corb/script-resource-with-json-parser-breaker.tentative.sub.html | CORB-blocks <random> that starts with the following JSON parser breaker - assert_unreached: Empty body of a CORS-blocked response shouldn't trigger syntax errors

Categories

(Core :: DOM: Networking, defect, P5)

defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: intermittent-bug-filer, Unassigned)

References

Details

(Keywords: intermittent-failure)

This kind of failure will start to happen once my patch on bug 1612831 lands and gets rid of an error in the wptrunner. It happens for nearly all the combinations of MIME type and syntax error.

Also there is at least one timeout that happens for image/png and maybe also other image and application types. The reason for those is that such MIME types aren't allowed for scripts, and the script is not getting loaded. That's clearly visible in the webconsole.

Here an excerpt:

Uncaught SyntaxError: expected expression, got '&&'
sniffable-resource.py:1:3
The script from “http://www1.web-platform.test:8000/fetch/corb/resources/sniffable-resource.py?type=text/json&body=)%5D%7D%27” was loaded even though its MIME type (“text/json”) is not a valid JavaScript MIME type.
script-resource-with-json-parser-breaker.tentative.sub.html
Uncaught SyntaxError: expected expression, got ')'
sniffable-resource.py:1
The script from “http://www1.web-platform.test:8000/fetch/corb/resources/sniffable-resource.py?type=text/json&body=%7B%7D%26%26” was loaded even though its MIME type (“text/json”) is not a valid JavaScript MIME type.
script-resource-with-json-parser-breaker.tentative.sub.html
Uncaught SyntaxError: expected expression, got '&&'
sniffable-resource.py:1:2
The script from “http://www1.web-platform.test:8000/fetch/corb/resources/sniffable-resource.py?type=text/json&body=%7B%7D%20%26%26” was loaded even though its MIME type (“text/json”) is not a valid JavaScript MIME type.
script-resource-with-json-parser-breaker.tentative.sub.html
Uncaught SyntaxError: expected expression, got '&&'
sniffable-resource.py:1:3
The script from “http://www1.web-platform.test:8000/fetch/corb/resources/sniffable-resource.py?type=text/plain&body=)%5D%7D%27” was loaded even though its MIME type (“text/plain”) is not a valid JavaScript MIME type.
script-resource-with-json-parser-breaker.tentative.sub.html
Uncaught SyntaxError: expected expression, got ')'
sniffable-resource.py:1
The script from “http://www1.web-platform.test:8000/fetch/corb/resources/sniffable-resource.py?type=text/plain&body=%7B%7D%26%26” was loaded even though its MIME type (“text/plain”) is not a valid JavaScript MIME type.
script-resource-with-json-parser-breaker.tentative.sub.html
Uncaught SyntaxError: expected expression, got '&&'
sniffable-resource.py:1:2
The script from “http://www1.web-platform.test:8000/fetch/corb/resources/sniffable-resource.py?type=text/plain&body=%7B%7D%20%26%26” was loaded even though its MIME type (“text/plain”) is not a valid JavaScript MIME type.
script-resource-with-json-parser-breaker.tentative.sub.html
Uncaught SyntaxError: expected expression, got '&&'
sniffable-resource.py:1:3
Uncaught SyntaxError: expected expression, got ')'
sniffable-resource.py:1
Uncaught SyntaxError: expected expression, got '&&'
sniffable-resource.py:1:2
Uncaught SyntaxError: expected expression, got '&&'
sniffable-resource.py:1:3
Script from “http://www1.web-platform.test:8000/fetch/corb/resources/sniffable-resource.py?type=image/png&body=)%5D%7D%27” was blocked because of a disallowed MIME type (“image/png”).
script-resource-with-json-parser-breaker.tentative.sub.html
Loading failed for the <script> with source “http://www1.web-platform.test:8000/fetch/corb/resources/sniffable-resource.py?type=image/png&body=)%5D%7D%27”. script-resource-with-json-parser-breaker.tentative.sub.html:1:1

Anne, do you know what's going on here? I assume there is missing feature parity in Firefox and for now we should just add the expected failures and timeouts? After landing my patch it might be easier to investigate and fix the problem. Thanks.

Blocks: 1612831
Flags: needinfo?(annevk)

We already fail fetch/corb/script-resource-with-json-parser-breaker.tentative.sub.html as far as I can tell and do not implement CORB (nor plan to, see bug 1532642). Given that, it's a bit hard to evaluate what changed as a result of your patch and whether that is problematic or not. In principle though we should not have a difference before/after Fission.

Flags: needinfo?(annevk)

Yes, we fail in terms of ERROR but which is a harness error. With my patch it will start failing with FAIL, TIMEOUT, and NOTRUN. The latter only happens because the image/png case never finishes due to the failure as mentioned above.

Bulk closing some old intermittents.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.