// META: resource=support/test-partitioned-access-in-different-origin-iframes.https.sub.html // META: resource=support/test-partitioned-access-in-same-origin-iframes.https.sub.html // META: resource=support/test-partitioned-iframes-in-different-origin-windows.https.sub.html // META: resource=support/test-partitioned-iframes-in-same-origin-windows.https.sub.html // META: resource=support/test-partitioned-parent-reader-and-different-origin-window-writer-iframe.https.sub.html // META: resource=support/test-partitioned-parent-writer-and-different-origin-window-reader-iframe.https.sub.html // META: resource=support/test-read-and-notify-worker.https.html // META: resource=support/test-read-and-notify-wrapper.https.sub.html // META: resource=support/test-read-and-notify.https.html // META: resource=support/test-read-and-notify.js // META: resource=support/test-write-and-notify-worker.https.html // META: resource=support/test-write-and-notify-wrapper.https.sub.html // META: resource=support/test-write-and-notify.https.html // META: resource=support/test-write-and-notify.js // META: script=/resources/testharness.js // META: script=/resources/testharnessreport.js // META: script=support/testHelpers.js /** * IndexedDB */ // [ write: A, read: A ] promise_test( expectNamesForTestWindow( ["SameOriginIFramesWithIDB", "WorkerSameOriginIFramesWithIDB"], "support/test-partitioned-access-in-same-origin-iframes.https.sub.html?api=IDB" ), "iframes of origin A in a window of origin B can access the same data with IDB" ); // [ write: A, read: B ] promise_test( expectNamesForTestWindow( ["DifferentOriginIFramesWithIDB", "WorkerDifferentOriginIFramesWithIDB"], "support/test-partitioned-access-in-different-origin-iframes.https.sub.html?api=IDB" ), "iframes of origin A and B are isolated with IDB" ); // [ write: B[A], read: B[A] ] promise_test( expectNamesForTestWindow( ["SameOriginWindowsWithIDB", "WorkerSameOriginWindowsWithIDB"], "support/test-partitioned-iframes-in-same-origin-windows.https.sub.html?api=IDB" ), "iframes of origin A in two child windows of origin B can access the same data with IDB" ); // [ write: A[A], read: B[A] ] promise_test( expectNamesForTestWindow( ["DifferentOriginWindowsWithIDB", "WorkerDifferentOriginWindowsWithIDB"], "support/test-partitioned-iframes-in-different-origin-windows.https.sub.html?api=IDB" ), "iframe of origin A in a child window of origin B cannot read data written by iframe of origin A in a child window of origin A with IDB" ); // [ write: A, read: B[A] ] promise_test( expectNamesForTestWindow( [ "ReadIFrameWriteDifferentOriginWindowWithIDB", "WorkerReadIFrameWriteDifferentOriginWindowWithIDB", ], "support/test-partitioned-parent-reader-and-different-origin-window-writer-iframe.https.sub.html?api=IDB" ), "iframe of origin A in a child window of origin B cannot cannot read data written by iframe of origin A in the parent window with IDB" ); // [ write: B[A], read: A ] promise_test( expectNamesForTestWindow( [ "WriteIFrameReadDifferentOriginWindowWithIDB", "WorkerWriteIFrameReadDifferentOriginWindowWithIDB", ], "support/test-partitioned-parent-writer-and-different-origin-window-reader-iframe.https.sub.html?api=IDB" ), "iframe of origin A in the parent window cannot read data written by iframe of origin A in child a window of origin B with IDB" );