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

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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