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.
1 <html>
2 <head>
3 <body>
4 <img class="big-horizontal" src="large-image.jpg" style="width:500px;" />
5 <canvas class="big-vertical" style="width:500px;"></canvas>
6 <img class="small" src="small-image.gif"></img>
7 <script>
8 window.onload = () => {
9 var canvas = document.querySelector("canvas"), ctx = canvas.getContext("2d");
10 canvas.width = 1000;
11 canvas.height = 2000;
12 ctx.fillStyle = "red";
13 ctx.fillRect(0, 0, 1000, 2000);
15 window.opener.postMessage('ready', '*')
16 }
17 </script>
18 </body>
19 </html>