content/html/document/test/test_bug677495.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 <!--
     4 https://bugzilla.mozilla.org/show_bug.cgi?id=677495
     6 As mandated by the spec, the body of a media document must only contain one child.
     7 -->
     8 <head>
     9   <title>Test for Bug 571981</title>
    10   <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
    11   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
    13 <script type="application/javascript">
    14   SimpleTest.waitForExplicitFinish();
    16   function frameLoaded() {
    17     var testframe = document.getElementById('testframe');
    18     var testframeChildren = testframe.contentDocument.body.childNodes;
    19     is(testframeChildren.length, 1, "Body of image document has 1 child");
    20     is(testframeChildren[0].nodeName, "IMG", "Only child of body must be an <img> element");
    22     SimpleTest.finish();
    23   }
    24 </script>
    26 </head>
    27 <body>
    28   <p id="display"></p>
    30   <iframe id="testframe" name="testframe" onload="frameLoaded()"
    31    src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAAXNSR0IArs4c6QAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9oMFgQGMyFwHucAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAADElEQVQI12P4//8/AAX+Av7czFnnAAAAAElFTkSuQmCC"></iframe>
    33 </body>
    34 </html>

mercurial