Index: modules/beacon/NavigatorBeacon.idl |
diff --git a/modules/beacon/NavigatorBeacon.idl b/modules/beacon/NavigatorBeacon.idl |
index 7b31421a6a0dfff77bded9ae6066468a1603ad38..34f73236a45f98b3534ffd54e9a02ccbb0fae617 100644 |
--- a/modules/beacon/NavigatorBeacon.idl |
+++ b/modules/beacon/NavigatorBeacon.idl |
@@ -4,12 +4,6 @@ |
// https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/Beacon/Overview.html#Navigator |
-[ |
- RuntimeEnabled=Beacon, |
-] partial interface Navigator { |
- // FIXME: should be union type http://crbug.com/240176 |
- [CallWith=ExecutionContext, MeasureAs=SendBeacon, RaisesException] boolean sendBeacon(DOMString url, ArrayBufferView data); |
- [CallWith=ExecutionContext, MeasureAs=SendBeacon, RaisesException] boolean sendBeacon(DOMString url, Blob data); |
- [CallWith=ExecutionContext, MeasureAs=SendBeacon, RaisesException] boolean sendBeacon(DOMString url, FormData data); |
- [CallWith=ExecutionContext, MeasureAs=SendBeacon, RaisesException] boolean sendBeacon(DOMString url, [Default=Undefined] optional DOMString data); |
+partial interface Navigator { |
+ [CallWith=ExecutionContext, MeasureAs=SendBeacon, RaisesException] boolean sendBeacon(DOMString url, optional (ArrayBufferView or Blob or DOMString or FormData)? data = null); |
}; |