Bug 1343442 - Decode-error/warning webidl notification types and data - r=smaug draft
authorGerald Squelart <gsquelart@mozilla.com>
Wed, 22 Mar 2017 16:13:41 +1100
changeset 560831 1ec54438befc112695e97dfd71bc95609246775f
parent 560830 572166bdf33bc1d1f3ac0b6081ab961d3f4d50c0
child 560832 7522590fa8fad5f630d1c8b3c5c73baad8cf10b6
push id53551
push usergsquelart@mozilla.com
push dateTue, 11 Apr 2017 23:47:44 +0000
reviewerssmaug
bugs1343442
milestone55.0a1
Bug 1343442 - Decode-error/warning webidl notification types and data - r=smaug Decoder Doctor webidl additions: DecoderDoctorNotificationType.decode-error and decode-warning DecoderDoctorNotification.decodeIssue, docURL and resourceURL MozReview-Commit-ID: FK0YOCeuQMX
dom/webidl/DecoderDoctorNotification.webidl
--- a/dom/webidl/DecoderDoctorNotification.webidl
+++ b/dom/webidl/DecoderDoctorNotification.webidl
@@ -5,19 +5,27 @@
  */
 
 enum DecoderDoctorNotificationType {
   "cannot-play",
   "platform-decoder-not-found",
   "can-play-but-some-missing-decoders",
   "cannot-initialize-pulseaudio",
   "unsupported-libavcodec",
+  "decode-error",
+  "decode-warning",
 };
 
 dictionary DecoderDoctorNotification {
   required DecoderDoctorNotificationType type;
   // True when the issue has been solved.
   required boolean isSolved;
   // Key from dom.properties, used for telemetry and prefs.
   required DOMString decoderDoctorReportId;
   // If provided, formats (or key systems) at issue.
   DOMString formats;
+  // If provided, technical details about the decode-error/warning.
+  DOMString decodeIssue;
+  // If provided, URL of the document where the issue happened.
+  DOMString docURL;
+  // If provided, URL of the media resource that caused a decode-error/warning.
+  DOMString resourceURL;
 };