dom/base/test/test_Image_constructor.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=862702
     5 -->
     6 <head>
     7   <meta charset="utf-8">
     8   <!-- Make sure our script runs before anything else -->
     9   <script>
    10    var img = new Image;
    11   </script>
    12   <title>Test for Bug 862702</title>
    13   <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
    14   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
    15   <script type="application/javascript">
    17   /** Test for Bug 862702 **/
    18   is(Object.getPrototypeOf(img), HTMLImageElement.prototype,
    19      "Wrong prototype object");
    21   </script>
    22 </head>
    23 <body>
    24 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=862702">Mozilla Bug 862702</a>
    25 <p id="display"></p>
    26 <div id="content" style="display: none">
    28 </div>
    29 <pre id="test">
    30 </pre>
    31 </body>
    32 </html>

mercurial