Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / chrome / common / extensions / docs / templates / articles / match_patterns.html
index 145b76a..6dcb1c6 100644 (file)
@@ -2,12 +2,14 @@
 
 <p>
 <a href="declare_permissions#host-permissions">Host
-permissions</a> and <a href="content_scripts">content
-script</a> matching are based on a set of URLs defined by
+permissions</a>
+{{^is_apps}}
+and <a href="content_scripts">content script</a>
+{{/is_apps}}
+matching {{^is_apps}}are{{:}}is{{/is_apps}} based on a set of URLs defined by
 <dfn>match patterns</dfn>.  A match pattern is essentially a
 URL that begins with a permitted scheme (<code>http</code>,
-<code>https</code>, <code>file</code>, <code>ftp</code>, or
-<code>chrome-extension</code>),
+<code>https</code>, <code>file</code>, or <code>ftp</code>,
 and that can contain '<code>*</code>' characters.
 The special pattern
 <code>&lt;all_urls&gt;</code> matches any URL
@@ -45,7 +47,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' | 'chrome-extension'
+<em>&lt;scheme&gt;</em> := '*' | 'http' | 'https' | 'file' | 'ftp'
 <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>
@@ -55,8 +57,7 @@ The meaning of '<code>*</code>' depends on whether
 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>,
-and <strong>not</strong> <code>file</code>, <code>ftp</code>,
-or <code>chrome-extension</code>.
+and <strong>not</strong> <code>file</code>, or <code>ftp</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>,
@@ -182,21 +183,6 @@ 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>