Skip to content

Commit

Permalink
Treat policy-disallowed sync xhr as a network error
Browse files Browse the repository at this point in the history
Bug: 661283

Change-Id: I311cef40e03a264ca9db601842477d502e7cf12d
Reviewed-on: https://chromium-review.googlesource.com/804057
Reviewed-by: Takeshi Yoshino <tyoshino@chromium.org>
Reviewed-by: Rick Byers <rbyers@chromium.org>
Commit-Queue: Ian Clelland <iclelland@chromium.org>
Cr-Commit-Position: refs/heads/master@{#529775}
  • Loading branch information
clelland authored and chromium-wpt-export-bot committed Jan 17, 2018
1 parent 39c94cc commit 9e00941
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions xhr/xmlhttprequest-sync-default-feature-policy.sub.html
Expand Up @@ -11,8 +11,7 @@
run_all_fp_tests_allow_all(
'http://{{domains[www]}}:{{ports[http][0]}}',
'sync-xhr',
'InvalidAccessError: Failed to execute \'open\' on \'XMLHttpRequest\': ' +
'Synchronous requests are disabled by Feature Policy.',
'NetworkError',
() => {
return new Promise((resolve, reject) => {
try {
Expand Down

0 comments on commit 9e00941

Please sign in to comment.