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

Unified Diff: chrome/common/extensions/docs/templates/articles/match_patterns.html

Issue 226663003: Allow content script insertion on about:-URLs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove permission warning for about:-scheme Created 6 years, 8 months 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/templates/articles/match_patterns.html
diff --git a/chrome/common/extensions/docs/templates/articles/match_patterns.html b/chrome/common/extensions/docs/templates/articles/match_patterns.html
index 1abf3d5ff560d2db041ad4a63ba6bdb547c09134..f75cfa7f8f3b36dff3c93c262bb0697a3a8ea4a7 100644
--- a/chrome/common/extensions/docs/templates/articles/match_patterns.html
+++ b/chrome/common/extensions/docs/templates/articles/match_patterns.html
@@ -45,7 +45,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' | 'chrome-extension' | 'about'
<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>
@@ -182,6 +182,24 @@ The following table shows some valid patterns.
<tr>
<td>
+ <code>about:* </code>
+ </td>
+
+ <td>
+ Matches any URL that uses the <code>about</code> scheme.
+ Content scripts matching this pattern are only inserted if the page was
+ loaded by a page whose URL matches at least one of the other declared
+ patterns.
not at google - send to devlin 2014/04/18 16:04:55 what about top-level about: frames?
+ </td>
+
+ <td>
+ about:blank<br>
+ about:srcdoc
+ </td>
+</tr>
+
+<tr>
+ <td>
<code>chrome-extension://*/* </code>
</td>

Powered by Google App Engine
This is Rietveld 408576698