Index: extensions/test/data/web_view/apitest/guest_data_url.html |
diff --git a/extensions/test/data/web_view/apitest/guest.html b/extensions/test/data/web_view/apitest/guest_data_url.html |
similarity index 60% |
copy from extensions/test/data/web_view/apitest/guest.html |
copy to extensions/test/data/web_view/apitest/guest_data_url.html |
index f893348671a20cf7e6938b5a281fc7ffa881892d..b7a228274f989beb40cfd5de33ec0cd6708e6bef 100644 |
--- a/extensions/test/data/web_view/apitest/guest.html |
+++ b/extensions/test/data/web_view/apitest/guest_data_url.html |
@@ -1,6 +1,6 @@ |
<!doctype html> |
<!-- |
- * Copyright (c) 2013 The Chromium Authors. All rights reserved. Use of this |
+ * Copyright (c) 2017 The Chromium Authors. All rights reserved. Use of this |
* source code is governed by a BSD-style license that can be found in the |
* LICENSE file. |
--> |
@@ -8,10 +8,8 @@ |
<head> |
<title>A guest that opens a new window.</title> |
<script type="text/javascript"> |
- window.onload = function() { |
- window.open( |
- 'data:text/html,<html><body>Initial dummy guest</body></html>'); |
- }; |
+ window.location.href = |
+ "data:text/html,<html><body>Initial dummy guest</body></html>"; |
</script> |
</head> |
<body style="padding: 0; margin: 0;"> |