diff options
author | asargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-14 22:11:01 +0000 |
---|---|---|
committer | asargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-14 22:11:01 +0000 |
commit | 39b7db000bae7fa07a79289a6e63724b62796ab0 (patch) | |
tree | 9a1982ed95c8d777c0ec16c0c313e6828fb29a19 /chrome/common/extensions/docs/contextMenus.html | |
parent | f80f94f62d526bf1809f6fca73cab07503b973ee (diff) | |
download | chromium_src-39b7db000bae7fa07a79289a6e63724b62796ab0.zip chromium_src-39b7db000bae7fa07a79289a6e63724b62796ab0.tar.gz chromium_src-39b7db000bae7fa07a79289a6e63724b62796ab0.tar.bz2 |
Remove scheme restriction for extension context menu items.
BUG=51461, 73631
TEST=Install an extension that adds context menu items - you should now see
them on pages with schemes like chrome://, file://, chrome-extension://, etc.
Review URL: http://codereview.chromium.org/7258009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92609 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/docs/contextMenus.html')
-rw-r--r-- | chrome/common/extensions/docs/contextMenus.html | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/chrome/common/extensions/docs/contextMenus.html b/chrome/common/extensions/docs/contextMenus.html index fd4bf04..81bc724 100644 --- a/chrome/common/extensions/docs/contextMenus.html +++ b/chrome/common/extensions/docs/contextMenus.html @@ -347,6 +347,22 @@ Google Chrome automatically collapses them into a single parent menu. </p> +<p> +Context menu items can appear in any document +(or frame within a document), +even those with file:// or chrome:// URLs. +To control which documents your items can appear in, +specify the documentUrlPatterns field +when you call the create() or update() method. +</p> + +<p class="note"> +<strong>Version note:</strong> +Before Chrome 14, <!-- PENDING(asargent): fix version # --> +your items could appear only in documents with http:// +or https:// URLs. +</p> + <h2 id="manifest">Manifest</h2> <p>You must declare the "contextMenus" permission in your extension's manifest to use the API. |