Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(962)

Unified Diff: chrome/common/extensions/docs/templates/intros/permissions.html

Issue 116093007: Document that all-hosts works as an optional permission. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ben's review Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/extensions/api/permissions.json ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/docs/templates/intros/permissions.html
diff --git a/chrome/common/extensions/docs/templates/intros/permissions.html b/chrome/common/extensions/docs/templates/intros/permissions.html
index e0c6bb37a0456a39778ffe0cb99907f8631f3114..a9c1271accff3fc2de19bf8c6487bf2c5a51d283 100644
--- a/chrome/common/extensions/docs/templates/intros/permissions.html
+++ b/chrome/common/extensions/docs/templates/intros/permissions.html
@@ -77,6 +77,12 @@ You can specify any of the following as optional
</ul>
</p>
+<p>If you want to request hosts that you only discover at runtime, include
+<code>"http://*/"</code> and/or <code>"https://*/"</code> as an
+<code>optional_permission</code>. This lets you specify any origin in
+$ref:Permissions.origins as long as it has a matching scheme.
+</p>
+
<h3 id="request"> Step 3: Request optional permissions </h3>
<p>
Request the permissions from within a user gesture using
« no previous file with comments | « chrome/common/extensions/api/permissions.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698