| Index: chrome/test/data/extensions/api_test/content_scripts/extension_iframe/iframe.js
|
| diff --git a/chrome/test/data/extensions/api_test/content_scripts/extension_iframe/iframe.js b/chrome/test/data/extensions/api_test/content_scripts/extension_iframe/iframe.js
|
| index 3e37a3a4944b62b88735faecaa1c815a788260a7..572f28047d6e70af9e6b7d1067db10fe3743bd9d 100644
|
| --- a/chrome/test/data/extensions/api_test/content_scripts/extension_iframe/iframe.js
|
| +++ b/chrome/test/data/extensions/api_test/content_scripts/extension_iframe/iframe.js
|
| @@ -28,11 +28,15 @@ if (chrome.storage) {
|
| success = false;
|
| }
|
|
|
| -// Parts of chrome.extension and chrome.tabs (which get included because it's
|
| -// a dependency of chrome.extension) are unavailable.
|
| -if (!runsWithException(function() { return chrome.extension.getViews; }))
|
| +// Ditto chrome.tabs, though it's special because it's a dependency of the
|
| +// partially unprivileged chrome.extension.
|
| +if (chrome.tabs) {
|
| + console.log('Error: chrome.tabs exists, it shouldn\'t.');
|
| success = false;
|
| -if (!runsWithException(function() { return chrome.tabs.create; }))
|
| +}
|
| +
|
| +// Parts of chrome.extension are unavailable.
|
| +if (!runsWithException(function() { return chrome.extension.getViews; }))
|
| success = false;
|
|
|
| chrome.extension.sendRequest({success: success});
|
|
|