| Index: chrome/test/data/extensions/api_test/stubs/content_script.js
|
| diff --git a/chrome/test/data/extensions/api_test/stubs/content_script.js b/chrome/test/data/extensions/api_test/stubs/content_script.js
|
| index 79e491c17524621cf7cde49f8767093dd07779ff..e6bf5a963244a44d73b01e64177efe6086f20259 100644
|
| --- a/chrome/test/data/extensions/api_test/stubs/content_script.js
|
| +++ b/chrome/test/data/extensions/api_test/stubs/content_script.js
|
| @@ -25,7 +25,7 @@ chrome.extension.sendRequest("getApi", function(apis) {
|
| return;
|
| module[section].forEach(function(entry) {
|
| var path = namespace + "." + entry.name;
|
| - if (entry.unprivileged) {
|
| + if (module.unprivileged || entry.unprivileged) {
|
| unprivilegedPaths.push(path);
|
| } else {
|
| privilegedPaths.push(path);
|
| @@ -36,7 +36,7 @@ chrome.extension.sendRequest("getApi", function(apis) {
|
| if (module.properties) {
|
| for (var propName in module.properties) {
|
| var path = namespace + "." + propName;
|
| - if (module.properties[propName].unprivileged) {
|
| + if (module.unprivileged || module.properties[propName].unprivileged) {
|
| unprivilegedPaths.push(path);
|
| } else {
|
| privilegedPaths.push(path);
|
| @@ -69,7 +69,7 @@ function testPath(path, expectError) {
|
| if (typeof(module) == "undefined")
|
| return true;
|
| } else {
|
| - // This is the last component - we expect it to either be defined or
|
| + // This is the last component - we expect it to either be undefined or
|
| // to throw an error on access.
|
| try {
|
| if (typeof(module[parts[i]]) == "undefined" &&
|
|
|