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

Unified Diff: content/test/data/web_ui_mojo_shell_test.js

Issue 1467133004: Revert of Serve mojo WebUI resources from the same origin as the WebUI itself. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 | « content/renderer/web_ui_mojo_context_state.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/web_ui_mojo_shell_test.js
diff --git a/content/test/data/web_ui_mojo_shell_test.js b/content/test/data/web_ui_mojo_shell_test.js
index d1b35dc1ad11ab1b6dcbe6fdc3175d11c8421d47..1ed359933313cbaf90c48d6188b4ca0f79c031b7 100644
--- a/content/test/data/web_ui_mojo_shell_test.js
+++ b/content/test/data/web_ui_mojo_shell_test.js
@@ -35,8 +35,9 @@
function (services) {
var test = connectToService(services, testMojom.TestMojoService);
test.getRequestorURL().then(function(response) {
- domAutomationController.send(
- response.url == 'chrome://mojo-web-ui/');
+ // The requestor URL seen by the app should be localhost because the
+ // connection comes from this script hosted on the test server.
+ domAutomationController.send(response.url == 'http://127.0.0.1/');
});
},
function (exposedServices) {});
« no previous file with comments | « content/renderer/web_ui_mojo_context_state.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698