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

Unified Diff: chrome/common/extensions/docs/static/match_patterns.html

Issue 8800006: Support chrome-extension:// scheme in URLPattern. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed merge issues in unit tests Created 9 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
Index: chrome/common/extensions/docs/static/match_patterns.html
diff --git a/chrome/common/extensions/docs/static/match_patterns.html b/chrome/common/extensions/docs/static/match_patterns.html
index 871fcfafa05035ffe455545e92f160ff696064e0..5f493a79e0ccec1834182d2383fdef8ba9fcbb11 100644
--- a/chrome/common/extensions/docs/static/match_patterns.html
+++ b/chrome/common/extensions/docs/static/match_patterns.html
@@ -15,7 +15,8 @@ which URLs your content script affects.
<p>
A match pattern is essentially a URL
that begins with a permitted scheme (<code>http</code>,
-<code>https</code>, <code>file</code>, or <code>ftp</code>),
+<code>https</code>, <code>file</code>, <code>ftp</code>, or
+<code>chrome-extension</code>),
and that can contain '<code>*</code>' characters.
The special pattern
<code>&lt;all_urls&gt;</code> matches any URL
@@ -51,7 +52,7 @@ Each match pattern has 3 parts:</p>
<pre>
<em>&lt;url-pattern&gt;</em> := <em>&lt;scheme&gt;</em>://<em>&lt;host&gt;</em><em>&lt;path&gt;</em>
-<em>&lt;scheme&gt;</em> := '*' | 'http' | 'https' | 'file' | 'ftp'
+<em>&lt;scheme&gt;</em> := '*' | 'http' | 'https' | 'file' | 'ftp' | 'chrome-extension'
<em>&lt;host&gt;</em> := '*' | '*.' <em>&lt;any char except '/' and '*'&gt;</em>+
<em>&lt;path&gt;</em> := '/' <em>&lt;any chars&gt;</em>
</pre>
@@ -186,6 +187,21 @@ The following table shows some valid patterns.
<tr>
<td>
+ <code>chrome-extension://*/* </code>
+ </td>
+
+ <td>
+ Matches any URL pointing to an extension (the first <code>*</code>
+ represents a filter for extension IDs, the second for paths).
+ </td>
+
+ <td>
+ chrome-extension://askla...asdf/options.html
+ </td>
+</tr>
+
+<tr>
+ <td>
<code>&lt;all_urls&gt;</code>
</td>
@@ -239,3 +255,7 @@ Here are some examples of <em>invalid</em> pattern matches:
</tr>
</tbody>
</table>
+
+<p>
+Some schemes are not supported in all contexts.
+</p>
« no previous file with comments | « chrome/common/extensions/docs/match_patterns.html ('k') | chrome/common/extensions/docs/static/webRequest.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698