Bug 1518664 - Make special casting properties available to UA Widget. r=smaug, a=RyanVM
authorTimothy Guan-tin Chien <timdream@gmail.com>
Tue, 15 Jan 2019 09:20:55 +0000
changeset 509521 c4fa46cb691840b0ab6fea2eb8ac5aa00565d7fe
parent 509520 5a50ebe155c4c2b3e76bb01c57e77f452a6c4dca
child 509522 c789ccba525f0ce9b30faba06177d1ff9fb35042
push id1905
push userffxbld-merge
push dateMon, 21 Jan 2019 12:33:13 +0000
treeherdermozilla-release@c2fca1944d8c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug, RyanVM
bugs1518664
milestone65.0
Bug 1518664 - Make special casting properties available to UA Widget. r=smaug, a=RyanVM They are needed so the chrome script (CastingApp.js) can read back the state of the video element. Differential Revision: https://phabricator.services.mozilla.com/D16489
dom/webidl/HTMLMediaElement.webidl
--- a/dom/webidl/HTMLMediaElement.webidl
+++ b/dom/webidl/HTMLMediaElement.webidl
@@ -115,18 +115,18 @@ partial interface HTMLMediaElement {
   [Pref="media.test.dumpDebugInfo"]
   Promise<void> mozDumpDebugInfo();
 
   attribute MediaStream? srcObject;
 
   attribute boolean mozPreservesPitch;
 
   // NB: for internal use with the video controls:
-  [Func="IsChromeOrXBL"] attribute boolean mozAllowCasting;
-  [Func="IsChromeOrXBL"] attribute boolean mozIsCasting;
+  [Func="IsChromeOrXBLOrUAWidget"] attribute boolean mozAllowCasting;
+  [Func="IsChromeOrXBLOrUAWidget"] attribute boolean mozIsCasting;
 
   // Mozilla extension: stream capture
   [Throws]
   MediaStream mozCaptureStream();
   [Throws]
   MediaStream mozCaptureStreamUntilEnded();
   readonly attribute boolean mozAudioCaptured;