| Index: chrome/common/extensions/docs/match_patterns.html
|
| diff --git a/chrome/common/extensions/docs/match_patterns.html b/chrome/common/extensions/docs/match_patterns.html
|
| index 167c5893d5289624a2945868c7a0d96aff065165..fa0c6d34395f92a09087db8ad29fd1d993882fa9 100644
|
| --- a/chrome/common/extensions/docs/match_patterns.html
|
| +++ b/chrome/common/extensions/docs/match_patterns.html
|
| @@ -278,15 +278,19 @@ which URLs your content script affects.
|
|
|
| <p>
|
| A match pattern is essentially a URL
|
| -that begins with <code>http</code>, <code>https</code>,
|
| -<code>file</code>, or <code>ftp</code>,
|
| +that begins with a permitted scheme (<code>http</code>,
|
| +<code>https</code>, <code>file</code>, or <code>ftp</code>),
|
| and that can contain '<code>*</code>' characters.
|
| +The special pattern
|
| +<code><all_urls></code> matches any URL
|
| +that starts with a permitted scheme.
|
| Each match pattern has 3 parts:</p>
|
| <p></p>
|
|
|
| <ul>
|
| <li> <em>scheme</em> —
|
| for example, <code>http</code> or <code>file</code>
|
| + or <code>*</code>
|
| </li>
|
| <li> <em>host</em> —
|
| for example, <code>www.google.com</code>
|
| @@ -303,11 +307,17 @@ Each match pattern has 3 parts:</p>
|
|
|
| <p>Here's the basic syntax:</p>
|
|
|
| -<pre><em><url-pattern></em> := <em><scheme></em>://<em><host></em><em><path></em><br><em><scheme></em> := 'http' | 'https' | 'file' | 'ftp'<br><em><host></em> := '*' | '*.' <em><any char except '/' and '*'></em>+<br><em><path></em> := '/' <em><any chars></em></pre>
|
| +<pre><em><url-pattern></em> := <em><scheme></em>://<em><host></em><em><path></em>
|
| +<em><scheme></em> := '*' | 'http' | 'https' | 'file' | 'ftp'
|
| +<em><host></em> := '*' | '*.' <em><any char except '/' and '*'></em>+
|
| +<em><path></em> := '/' <em><any chars></em>
|
| +</pre>
|
|
|
| <p>
|
| The meaning of '<code>*</code>' depends on whether
|
| -it's in the <em>host</em> or the <em>path</em> part.
|
| +it's in the <em>scheme</em>, <em>host</em>, or <em>path</em> part.
|
| +If the <em>scheme</em> is <code>*</code>,
|
| +then it matches either <code>http</code> or <code>https</code>.
|
| If the <em>host</em> is just <code>*</code>,
|
| then it matches any host.
|
| If the <em>host</em> is <code>*.<em>hostname</em></code>,
|
| @@ -412,6 +422,39 @@ The following table shows some valid patterns.
|
| http://127.0.0.1/foo/bar.html
|
| </td>
|
| </tr>
|
| +
|
| +<tr>
|
| + <td>
|
| + <code>*://mail.google.com/* </code>
|
| + </td>
|
| +
|
| + <td>
|
| + Matches any URL that starts with
|
| + <code>http://mail.google.com</code> or
|
| + <code>https://mail.google.com</code>.
|
| + </td>
|
| +
|
| + <td>
|
| + http://mail.google.com/foo/baz/bar<br>
|
| + https://mail.google.com/foobar
|
| + </td>
|
| +</tr>
|
| +
|
| +<tr>
|
| + <td>
|
| + <code><all_urls></code>
|
| + </td>
|
| +
|
| + <td>
|
| + Matches any URL that uses a permitted scheme.
|
| + (See the beginning of this section for the list of permitted
|
| + schemes.)
|
| + </td>
|
| + <td>
|
| + http://example.org/foo/bar.html<br>
|
| + file:///bar/baz.html
|
| + </td>
|
| +</tr>
|
| </tbody>
|
| </table>
|
|
|
|
|