| Index: chrome/test/data/extensions/platform_apps/web_view/shim/main.js
|
| diff --git a/chrome/test/data/extensions/platform_apps/web_view/shim/main.js b/chrome/test/data/extensions/platform_apps/web_view/shim/main.js
|
| index 3c788dc12902b46248267f4a4c5d952ec1f5fc88..a172e4d9a641536be76172dffbfc4443f6471342 100644
|
| --- a/chrome/test/data/extensions/platform_apps/web_view/shim/main.js
|
| +++ b/chrome/test/data/extensions/platform_apps/web_view/shim/main.js
|
| @@ -409,6 +409,20 @@ chrome.test.getConfig(function(config) {
|
| });
|
| webview.setAttribute('src', 'data:text/html,trigger navigation');
|
| document.body.appendChild(webview);
|
| + },
|
| +
|
| + function webViewWebRequestAPI() {
|
| + var webview = document.createElement('webview');
|
| + webview.setAttribute('src', 'data:text/html,trigger navigation');
|
| + var firstLoad = function() {
|
| + webview.removeEventListener('loadstop', firstLoad);
|
| + webview.onBeforeRequest.addListener(function(e) {
|
| + chrome.test.succeed();
|
| + }, { urls: ['<all_urls>']}, ['blocking']) ;
|
| + webview.src = windowOpenGuestURL;
|
| + };
|
| + webview.addEventListener('loadstop', firstLoad);
|
| + document.body.appendChild(webview);
|
| }
|
| ]);
|
| });
|
|
|