[Webkit-unassigned] [Bug 183292] New: Restrict usage of synchronous XMLHttpRequest by feature policy
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Mar 2 09:35:00 PST 2018
https://bugs.webkit.org/show_bug.cgi?id=183292
Bug ID: 183292
Summary: Restrict usage of synchronous XMLHttpRequest by
feature policy
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: All
Status: NEW
Severity: Normal
Priority: P2
Component: HTML DOM
Assignee: webkit-unassigned at lists.webkit.org
Reporter: iclelland at chromium.org
CC: cdumez at apple.com
XMLHttpRequest objects can have their behavior controlled by feature policy
(https://github.com/whatwg/xhr/pull/177, not merged yet)
If the policy in the active document disallows the 'sync-xhr' feature, then calling .send() on the XMLHttpRequest object should throw a NetworkError (and ideally log a message to the developer console)
Demo: https://xhr.featurepolicy.rocks/
GitHub issue: https://github.com/whatwg/xhr/issues/178
Web Platform Tests: https://wpt.fyi/xhr/xmlhttprequest-sync-default-feature-policy.sub.html
Feature policy itself has been partially implemented as part of https://bugs.webkit.org/show_bug.cgi?id=167430, but I haven't found another bug for the rest of the implementation. Let me know if I should file that as well.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180302/ca87fe9e/attachment.html>
More information about the webkit-unassigned
mailing list