dom/phonenumberutils/tests/test_phonenumberutils_basics.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=674720
     5 -->
     6 <head>
     7   <title>Test for Bug 883923 PhoneNumberUtils FuzzyMatch</title>
     8   <script type="text/javascript" src="/MochiKit/MochiKit.js"></script>
     9   <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
    10   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
    11 </head>
    12 <body>
    14 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=883923">Mozilla Bug 883923</a>
    15 <p id="display"></p>
    16 <div id="content" style="display: none">
    18 </div>
    19 <pre id="test">
    20 <script class="testbody" type="text/javascript">
    22 "use strict";
    24 var mozPhoneNumberService = window.navigator.mozPhoneNumberService;
    25 if (mozPhoneNumberService) {
    26   is(mozPhoneNumberService.fuzzyMatch, undefined, "Fuzzy Match should not be accesible");
    27   is(mozPhoneNumberService.normalize, undefined, "Normalize should not be accessible");
    28 }
    29 </script>
    30 </pre>
    31 </body>
    32 </html>

mercurial