2 * Any copyright is dedicated to the Public Domain.
3 * http://creativecommons.org/publicdomain/zero/1.0/
6 /* exported testGenerator */
7 var testGenerator = testSteps();
9 function* testSteps() {
10 const url = "ftp://ftp.example.com";
11 const name = "test_bad_origin_directory.js";
13 let uri = Services.io.newURI(url);
15 let principal = Services.scriptSecurityManager.createContentPrincipal(
20 info("Opening database");
22 let request = indexedDB.openForPrincipal(principal, name);
23 request.onerror = continueToNextStepSync;
24 request.onsuccess = unexpectedSuccessHandler;