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

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/browser/base/content/test/plugins/plugin_crashCommentAndURL.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,27 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html>
     1.6 +  <head>
     1.7 +    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
     1.8 +    <script type="text/javascript">
     1.9 +      function crash() {
    1.10 +        var plugin = document.getElementById("plugin");
    1.11 +        var argStr = decodeURIComponent(window.location.search.substr(1));
    1.12 +        if (argStr) {
    1.13 +          var args = JSON.parse(argStr);
    1.14 +          for (var key in args)
    1.15 +            plugin.setAttribute(key, args[key]);
    1.16 +        }
    1.17 +        try {
    1.18 +          plugin.crash();
    1.19 +        }
    1.20 +        catch (err) {}
    1.21 +      }
    1.22 +    </script>
    1.23 +  </head>
    1.24 +  <body onload="crash();">
    1.25 +    <embed id="plugin" type="application/x-test"
    1.26 +           width="400" height="400"
    1.27 +           drawmode="solid" color="FF00FFFF">
    1.28 +    </embed>
    1.29 +  </body>
    1.30 +</html>

mercurial