gfx/tests/crashtests/358732-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 <object>&#5787;&#5787;&#5787;&#5787;&#5787;&#5787;&#5787;&#5787;&#5787;&#5787;
     2 &#5787;&#5787;&#5787;&#5787;&#5787;
     3 &#5787;&#5787;&#5787;&#5787;&#5787;&#5787;&#5787;&#5787;&#5787;&#5787;
     4 &#5787;&#5787;&#5787;&#5787;
     5 <i>&#5787;&#5787;&#5787;&#5787;&#5787;&#5787;&#5787;&#5787;&#5787;&#5787;
     7 <script>
     8 var doc = document;
     9 if (document.getElementById('content')) {
    10   doc = document.getElementById('content').contentDocument;
    11 }
    13 var docviewer;
    14 function do_onload() {
    15 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
    16 var navigator = parent.QueryInterface(Components.interfaces.nsIInterfaceRequestor).getInterface(Components.interfaces.nsIWebNavigation);
    17 var docShell = navigator.QueryInterface(Components.interfaces.nsIDocShell);
    18 docviewer = docShell.contentViewer.QueryInterface(Components.interfaces.nsIMarkupDocumentViewer);
    20 setTimeout(doe,500, 0.2);
    21 }
    22 do_onload();
    26 function doe(i) {
    27 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
    28  docviewer.textZoom += i;
    30 if (docviewer.textZoom >=4)
    31   i = -0.2;
    33 if (docviewer.textZoom <=0)
    34   i = 0.2;
    35 window.status = docviewer.textZoom;
    36 setTimeout(doe, 100, i);
    37 }
    38 </script>

mercurial