| 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 489cb875d574ecc388177283837210eb64688bac..48cfd69169701a1652ec9b33dd098c6de3b0102a 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
|
| @@ -316,6 +316,23 @@ function testChromeExtensionURL() {
|
| document.body.appendChild(webview);
|
| }
|
|
|
| +// This test verifies that the loadstop event fires when loading a webview
|
| +// accessible resource from a partition that is privileged if the src URL
|
| +// is not fully qualified.
|
| +function testChromeExtensionRelativePath() {
|
| + var webview = document.createElement('webview');
|
| + // foobar is a privileged partition according to the manifest file.
|
| + webview.partition = 'foobar';
|
| + webview.addEventListener('loadabort', function(e) {
|
| + embedder.test.fail();
|
| + });
|
| + webview.addEventListener('loadstop', function(e) {
|
| + embedder.test.succeed();
|
| + });
|
| + webview.setAttribute('src', 'guest.html');
|
| + document.body.appendChild(webview);
|
| +}
|
| +
|
| // This tests verifies that webview fires a loadabort event instead of crashing
|
| // the browser if we attempt to navigate to a chrome-extension: URL with an
|
| // extension ID that does not exist.
|
| @@ -1129,6 +1146,7 @@ embedder.test.testList = {
|
| 'testAutosizeWithPartialAttributes': testAutosizeWithPartialAttributes,
|
| 'testAPIMethodExistence': testAPIMethodExistence,
|
| 'testChromeExtensionURL': testChromeExtensionURL,
|
| + 'testChromeExtensionRelativePath': testChromeExtensionRelativePath,
|
| 'testInvalidChromeExtensionURL': testInvalidChromeExtensionURL,
|
| 'testWebRequestAPIExistence': testWebRequestAPIExistence,
|
| 'testEventName': testEventName,
|
|
|