browser/base/content/test/plugins/plugin_crashCommentAndURL.html

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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