summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvabr@chromium.org <vabr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-22 09:30:05 +0000
committervabr@chromium.org <vabr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-22 09:30:05 +0000
commit23d679081855a690891e6094277040a1e93bc8e3 (patch)
treed1ad147cf28f3cc6f543dc4a3b0e3b7889f879d7
parent1a0824c39791d75d9ceb26832e380c4a74ffa199 (diff)
downloadchromium_src-23d679081855a690891e6094277040a1e93bc8e3.zip
chromium_src-23d679081855a690891e6094277040a1e93bc8e3.tar.gz
chromium_src-23d679081855a690891e6094277040a1e93bc8e3.tar.bz2
Fix a host permissions typo in docs
In http://developer.chrome.com/extensions/declarativeWebRequest.html we list an incorrectly formatted host permission, missing the "/*" for path. This CL fixes it, and also changes the example host permission for the declarativeWebRequest API from *.google.com to all hosts, because that's what is needed for most actions. NOTRY=true BUG=267639 Review URL: https://chromiumcodereview.appspot.com/22969004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@218972 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/common/extensions/docs/templates/intros/declarativeWebRequest.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/common/extensions/docs/templates/intros/declarativeWebRequest.html b/chrome/common/extensions/docs/templates/intros/declarativeWebRequest.html
index 3a716c2..0ee6b93 100644
--- a/chrome/common/extensions/docs/templates/intros/declarativeWebRequest.html
+++ b/chrome/common/extensions/docs/templates/intros/declarativeWebRequest.html
@@ -11,7 +11,7 @@ along with <a href="declare_permissions.html">host permissions</a>.
...
<b> "permissions": [
"declarativeWebRequest",
- "*://*.google.com"
+ "*://*/*"
]</b>,
...
}</pre>
@@ -34,8 +34,8 @@ for any hosts whose network requests you want to trigger a message.
All other actions require host permissions to all URLs.
</p>
<p>
-As an example, if <code>"*://*.google.com"</code> is the only host permission an
-extension has, than such an extension may set up a rule to
+As an example, if <code>"*://*.google.com/*"</code> is the only host permission
+an extension has, than such an extension may set up a rule to
<ul>
<li> cancel a request to "http://www.google.com" or "http://anything.else.com"
<li> send a message when navigating to "http://www.google.com" but not to