b2g/chrome/content/test/mochitest/file_getusermedia_iframe.html

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

     1 <!DOCTYPE HTML>
     2 <html>
     3 <head>
     4   <title>Iframe for Recording Status</title>
     5   <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
     6   <script type="text/javascript;version=1.7" src="RecordingStatusHelper.js"></script>
     7   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
     8 </head>
     9 <body>
    11 <pre id="test">
    12 <script class="testbody" type="text/javascript;version=1.7">
    14 var localStream;
    16 window.addEventListener('message', function(event) {
    17   switch (event.data) {
    18     case 'start':
    19       let gumDeferred = expectStream({ audio: true,
    20                                        fake: true
    21                                      }, function(stream) {
    22                                        localStream = stream;
    23                                        event.source.postMessage('start-finished', window.location.origin);
    24                                      });
    25       break;
    26     case 'stop':
    27       localStream.stop();
    28       localStream = null;
    29       break;
    30   }
    31 }, false);
    33 </script>
    34 </pre>
    35 </body>
    36 </html>

mercurial