toolkit/content/tests/chrome/window_popup_anchor.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.

michael@0 1 <?xml version="1.0"?>
michael@0 2 <?xml-stylesheet href="chrome://global/skin" type="text/css"?>
michael@0 3
michael@0 4 <window title="Popup Anchor Tests"
michael@0 5 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
michael@0 6
michael@0 7 <script>
michael@0 8 function runTests()
michael@0 9 {
michael@0 10 frames[0].openPopup();
michael@0 11 }
michael@0 12
michael@0 13 window.opener.wrappedJSObject.SimpleTest.waitForFocus(runTests, window);
michael@0 14 </script>
michael@0 15
michael@0 16 <spacer height="13"/>
michael@0 17 <button id="outerbutton" label="Button One" style="margin-left: 6px; -moz-appearance: none;"/>
michael@0 18 <hbox>
michael@0 19 <spacer width="20"/>
michael@0 20 <deck>
michael@0 21 <vbox>
michael@0 22 <iframe id="frame" style="margin-left: 60px; margin-top: 10px; border-left: 17px solid red; padding-left: 0 !important; padding-top: 3px;"
michael@0 23 width="250" height="80" src="frame_popup_anchor.xul"/>
michael@0 24 </vbox>
michael@0 25 </deck>
michael@0 26 </hbox>
michael@0 27
michael@0 28 </window>

mercurial