Sat, 03 Jan 2015 20:18:00 +0100
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 | <!DOCTYPE html> |
michael@0 | 2 | <html> |
michael@0 | 3 | <head> |
michael@0 | 4 | <title>Helper for test_bug738396.html</title> |
michael@0 | 5 | <meta charset="utf-8"> |
michael@0 | 6 | </head> |
michael@0 | 7 | <body> |
michael@0 | 8 | <!-- Test that the plugin sees "good" in each of these cases --> |
michael@0 | 9 | <div id="codebasevis"> |
michael@0 | 10 | <applet codebase="good" codebase="bad" ></applet> |
michael@0 | 11 | |
michael@0 | 12 | <applet codebase="bad"> |
michael@0 | 13 | <param name="codebase" value="good"> |
michael@0 | 14 | </applet> |
michael@0 | 15 | |
michael@0 | 16 | <applet codebase="bad"> |
michael@0 | 17 | <param name="codebase" value="stillbad"> |
michael@0 | 18 | <param name="codebase" value="good"> |
michael@0 | 19 | </applet> |
michael@0 | 20 | |
michael@0 | 21 | <applet> |
michael@0 | 22 | <param name="codebase" value="good"> |
michael@0 | 23 | </applet> |
michael@0 | 24 | |
michael@0 | 25 | <object type="application/x-java-test" codebase="good" codebase="bad"></object> |
michael@0 | 26 | |
michael@0 | 27 | <object type="application/x-java-test" codebase="bad"> |
michael@0 | 28 | <param name="codebase" value="good"> |
michael@0 | 29 | </object> |
michael@0 | 30 | |
michael@0 | 31 | <object type="application/x-java-test" codebase="bad"> |
michael@0 | 32 | <param name="codebase" value="stillbad"> |
michael@0 | 33 | <param name="codebase" value="good"> |
michael@0 | 34 | </object> |
michael@0 | 35 | |
michael@0 | 36 | <object type="application/x-java-test"> |
michael@0 | 37 | <param name="codebase" value="good"> |
michael@0 | 38 | </object> |
michael@0 | 39 | |
michael@0 | 40 | <embed type="application/x-java-test" codebase="good" codebase="bad"> |
michael@0 | 41 | </div> |
michael@0 | 42 | <div id="blockedcodebase"> |
michael@0 | 43 | <!-- Test that none of these are allowed to load --> |
michael@0 | 44 | <applet codebase="file:///" codebase="notused"></applet> |
michael@0 | 45 | |
michael@0 | 46 | <applet codebase="notused"> |
michael@0 | 47 | <param name="codebase" value="file:///"> |
michael@0 | 48 | </applet> |
michael@0 | 49 | |
michael@0 | 50 | <applet codebase="notused"> |
michael@0 | 51 | <param name="codebase" value="notused"> |
michael@0 | 52 | <param name="codebase" value="file:///"> |
michael@0 | 53 | </applet> |
michael@0 | 54 | |
michael@0 | 55 | <applet> |
michael@0 | 56 | <param name="codebase" value="file:///"> |
michael@0 | 57 | </applet> |
michael@0 | 58 | |
michael@0 | 59 | <object type="application/x-java-test" codebase="file:///" codebase="notused"></object> |
michael@0 | 60 | |
michael@0 | 61 | <object type="application/x-java-test" codebase="notused"> |
michael@0 | 62 | <param name="codebase" value="file:///"> |
michael@0 | 63 | </object> |
michael@0 | 64 | |
michael@0 | 65 | <object type="application/x-java-test" codebase="notused"> |
michael@0 | 66 | <param name="codebase" value="notused"> |
michael@0 | 67 | <param name="codebase" value="file:///"> |
michael@0 | 68 | </object> |
michael@0 | 69 | |
michael@0 | 70 | <object type="application/x-java-test"> |
michael@0 | 71 | <param name="codebase" value="file:///"> |
michael@0 | 72 | </object> |
michael@0 | 73 | |
michael@0 | 74 | <embed type="application/x-java-test" codebase="file:///" codebase="notused"> |
michael@0 | 75 | </div> |
michael@0 | 76 | <div id="nocodebase"> |
michael@0 | 77 | <applet></applet> |
michael@0 | 78 | <object type="application/x-java-test"></object> |
michael@0 | 79 | <embed type="application/x-java-test"> |
michael@0 | 80 | </div> |
michael@0 | 81 | <div id="emptycodebase"> |
michael@0 | 82 | <applet codebase=""></applet> |
michael@0 | 83 | <object type="application/x-java-test" codebase=""></object> |
michael@0 | 84 | <embed type="application/x-java-test" codebase=""> |
michael@0 | 85 | </div> |
michael@0 | 86 | </body> |
michael@0 | 87 | </html> |