summaryrefslogtreecommitdiffstats
path: root/caps/tests/mochitest/browser_aboutOrigin.js
blob: fc2e2d8f53666faa67116a4f20ec65354501ea6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
"use strict";

let tests = ["about:robots?foo", "about:robots#foo", "about:robots?foo#bar"];
tests.forEach(async test => {
  add_task(async () => {
    await BrowserTestUtils.withNewTab(test, async browser => {
      await SpecialPowers.spawn(browser, [], () => {
        is(content.document.nodePrincipal.origin, "about:robots");
      });
    });
  });
});