1 /* Any copyright is dedicated to the Public Domain.
2 http://creativecommons.org/publicdomain/zero/1.0/ */
7 await SpecialPowers.pushPrefEnv({
8 set: [["privacy.file_unique_origin", false]],
11 const FILE_PAGE = Services.io.newFileURI(
12 new FileUtils.File(getTestFilePath("dummy.html"))
14 await BrowserTestUtils.withNewTab(FILE_PAGE, async browser => {
16 await SpecialPowers.spawn(browser, [], () =>
17 content.fetch("./file_lnk.lnk")
21 "Loading lnk must fail if it links to a file from other directory"
24 is(err.constructor.name, "TypeError", "Should fail on Windows");