summaryrefslogtreecommitdiffstats
path: root/dom/url/tests/test_unknown_url_origin.html
blob: 052bb6ca491d518b6bbddadbdf3d6f125a38962d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!DOCTYPE HTML>
<html>
<head>
  <meta charset="utf-8">
  <title>Test for unknwon URL.origin</title>
  <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
</head>
<body>
  <script type="application/javascript">

  is ((new URL("blob:http://foo.com/bar")).origin, "http://foo.com");
  is ((new URL("blob:blob:http://foo.com/bar")).origin, "http://foo.com");

  </script>
</body>
</html>