Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(355)

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/navigation/beacon-blob-with-non-simple-type.html

Issue 2184973002: Add UMA to count the usage of sendBeacon with non-simple Content-Type (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE HTML>
2 <script src="/js-test-resources/testharness.js"></script>
3 <script src="/js-test-resources/testharnessreport.js"></script>
4 <script>
5 test(() => {
6 assert_throws(
7 'SecurityError',
8 () => {
9 navigator.sendBeacon("/",
10 new Blob(["X"], {type: "image/png"}));
11 });
12 }, "navigator.sendBeacon() to a cross-origin target with a Blob body with " +
13 "non-simple type should throw.");
14 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698