toolkit/content/tests/chrome/window_popup_attribute.xul

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 <?xml version="1.0"?>
     2 <?xml-stylesheet href="chrome://global/skin" type="text/css"?>
     4 <window title="Popup Attribute Tests"
     5         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
     7   <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>      
     8   <script type="application/javascript" src="popup_shared.js"></script>      
     9   <script type="application/javascript" src="popup_trigger.js"></script>      
    11 <script>
    12 window.opener.SimpleTest.waitForFocus(runTests, window);
    13 </script>
    15 <hbox style="margin-left: 200px; margin-top: 270px;">
    16   <label id="trigger" popup="thepopup" value="Popup" height="60"/>
    17 </hbox>
    18 <!-- this frame is used to check that document.popupNode
    19      is inaccessible from different sources -->
    20 <iframe id="childframe" type="content" width="10" height="10"
    21         src="http://sectest2.example.org:80/chrome/toolkit/content/tests/chrome/popup_childframe_node.xul"/>
    23 <menupopup id="thepopup">
    24   <menuitem id="item1" label="First"/>
    25   <menuitem id="item2" label="Main Item"/>
    26   <menuitem id="amenu" label="A Menu" accesskey="M"/>
    27   <menuitem id="item3" label="Third"/>
    28   <menuitem id="one" label="One"/>
    29   <menuitem id="fancier" label="Fancier Menu"/>
    30   <menu id="submenu" label="Only Menu">
    31     <menupopup id="submenupopup">
    32       <menuitem id="submenuitem" label="Test Submenu"/>
    33     </menupopup>
    34   </menu>
    35   <menuitem id="other" disabled="true" label="Other Menu"/>
    36   <menuitem id="secondlast" label="Second Last Menu" accesskey="T"/>
    37   <menuitem id="last" label="One Other Menu"/>
    38 </menupopup>
    40 </window>

mercurial