browser/base/content/test/plugins/plugin_crashCommentAndURL.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 <!DOCTYPE html>
     2 <html>
     3   <head>
     4     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
     5     <script type="text/javascript">
     6       function crash() {
     7         var plugin = document.getElementById("plugin");
     8         var argStr = decodeURIComponent(window.location.search.substr(1));
     9         if (argStr) {
    10           var args = JSON.parse(argStr);
    11           for (var key in args)
    12             plugin.setAttribute(key, args[key]);
    13         }
    14         try {
    15           plugin.crash();
    16         }
    17         catch (err) {}
    18       }
    19     </script>
    20   </head>
    21   <body onload="crash();">
    22     <embed id="plugin" type="application/x-test"
    23            width="400" height="400"
    24            drawmode="solid" color="FF00FFFF">
    25     </embed>
    26   </body>
    27 </html>

mercurial