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

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

Issue 985633003: Service Worker: Clients.openWindow() should allow opening x-origin URLs (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
Index: LayoutTests/http/tests/serviceworker/chromium/resources/clients-openwindow.js
diff --git a/LayoutTests/http/tests/serviceworker/chromium/resources/clients-openwindow.js b/LayoutTests/http/tests/serviceworker/chromium/resources/clients-openwindow.js
index 7c7c511f579c426fd66512cfa396bddf9abd946a..5c24fec1eb7b1aae59472da8eb8b9f6d30685f1f 100644
--- a/LayoutTests/http/tests/serviceworker/chromium/resources/clients-openwindow.js
+++ b/LayoutTests/http/tests/serviceworker/chromium/resources/clients-openwindow.js
@@ -14,9 +14,9 @@ var TESTS = [
function testOpenCrossOriginWindow() {
synthesizeNotificationClick().then(function(e) {
- clients.openWindow('https://test.com/').catch(function(e) {
- self.postMessage('openWindow() can\'t open cross origin windows');
- self.postMessage('openWindow() error is ' + e.name);
+ clients.openWindow('https://test.com/').then(function(c) {
+ self.postMessage('openWindow() can open cross origin windows');
+ self.postMessage('openWindow() result: ' + c);
}).then(runNextTestOrQuit);
});
},

Powered by Google App Engine
This is Rietveld 408576698