summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/browsers/history/the-history-interface/history_pushstate_err.html
blob: 82afc04f2dd0d46d450f4eaec42af51dcb1e8341 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE HTML>
<html>
  <head>
    <title>history_pushState SECURITY_ERR</title>
    <script src="/resources/testharness.js"></script>
    <script src="/resources/testharnessreport.js"></script>
  </head>
  <body>
    <div id="log"></div>
    <script>
    test(function () {
      assert_throws("SecurityError", function () {
        window.history.pushState(1, document.title, 'http://www.microsoft.com/test.html');
      });
    }, "history pushState SECURITY_ERR");
    </script>
 </body>
</html>