Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(299)

Unified Diff: LayoutTests/http/tests/serviceworker/chromium/clients-openwindow.html

Issue 985043002: Relax same-origin policy for ServiceWorker openWindow() in Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/http/tests/serviceworker/chromium/resources/clients-openwindow.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/serviceworker/chromium/clients-openwindow.html
diff --git a/LayoutTests/http/tests/serviceworker/chromium/clients-openwindow.html b/LayoutTests/http/tests/serviceworker/chromium/clients-openwindow.html
index e81b49aa71b15a414a21adb438343a122f005705..9f21f89075ed4149d7c438d2d9586e9678de2642 100644
--- a/LayoutTests/http/tests/serviceworker/chromium/clients-openwindow.html
+++ b/LayoutTests/http/tests/serviceworker/chromium/clients-openwindow.html
@@ -29,8 +29,8 @@ t.step(function() {
var result = [];
var expected = ['openWindow() can\'t open a window without a user interaction',
'openWindow() error is InvalidAccessError',
- 'openWindow() can\'t open cross origin windows',
- 'openWindow() error is SecurityError',
+ 'openWindow() can open cross origin windows',
+ 'openWindow() result: null',
'openWindow() can open not controlled windows',
'openWindow() result: null',
'openWindow() can open controlled windows',
@@ -38,7 +38,15 @@ t.step(function() {
' url: ' + location.origin + '/serviceworker/chromium/resources/blank.html',
' visibilityState: visible',
' focused: true',
- ' frameType: top-level'];
+ ' frameType: top-level',
+ 'openWindow() can open about:blank',
+ 'openWindow() result: null',
+ 'openWindow() can open about:crash',
+ 'openWindow() result: null',
+ 'openWindow() can not open view-source scheme',
+ 'openWindow() can not open file scheme',
+ 'openWindow() error is: SecurityError',
+ ];
// LayoutTests on Mac do not open focused windows.
var isMac = navigator.platform.indexOf('Mac') == 0;
« no previous file with comments | « no previous file | LayoutTests/http/tests/serviceworker/chromium/resources/clients-openwindow.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698