1 <h1>Frequently Asked Questions
</h1>
7 If you don't find an answer to your question here,
9 <a href=
"http://code.google.com/chrome/webstore/faq">Chrome Web Store FAQ
</a>, the
11 <a href=
"http://stackoverflow.com/questions/tagged/google-chrome-app">[google-chrome-app] tag on Stack Overflow
</a>, the
12 <a href=
"http://groups.google.com/a/chromium.org/group/chromium-apps">chromium-apps group
</a>, or the
14 <a href=
"http://stackoverflow.com/questions/tagged/google-chrome-extension">[google-chrome-extension] tag on Stack Overflow
</a>, the
15 <a href=
"http://groups.google.com/a/chromium.org/group/chromium-extensions">chromium-extensions group
</a>, or the
17 <a href=
"https://support.google.com/chrome_webstore/">store help
</a>.
21 <h4 id=
"general">General
</h4>
23 <li><a href=
"#faq-gen-01">What are Google Chrome Extensions?
</a></li>
25 <li><a href=
"#faq-dev-01">How can I set up Chrome for extension development?
</a></li>
27 <li><a href=
"#faq-gen-02">What technologies are used to write extensions for Chrome?
</a></li>
28 <li><a href=
"#faq-gen-03">Are extensions fetched from the web every time the browser is loaded?
</a></li>
29 <li><a href=
"#faq-dev-14">How do I determine which version of Chrome is deployed to which channel?
</a></li>
31 <h4 id=
"capabilities">Capabilities
</h4>
33 <li><a href=
"#faq-dev-02">Can extensions make cross-domain Ajax requests?
</a></li>
34 <li><a href=
"#faq-dev-03">Can extensions use
3rd party web services?
</a></li>
35 <li><a href=
"#faq-dev-07">Can extensions encode/decode JSON data?
</a></li>
36 <li><a href=
"#faq-dev-08">Can extensions store data locally?
</a></li>
37 <li><a href=
"#faq-dev-04">Can extensions use OAuth?
</a></li>
38 <li><a href=
"#faq-dev-06">Can extensions load DLLs?
</a></li>
39 <li><a href=
"#faq-dev-05">Can extensions create UI outside of the rendered web page?
</a></li>
40 <li><a href=
"#faq-interact-chrome">Can extensions listen to clicks on Chrome tabs and navigation buttons?
</a>
41 <li><a href=
"#faq-dev-11">Can two extensions communicate with each other?
</a></li>
43 <li><a href=
"#faq-dev-13">Can extensions use Google Analytics?
</a></li>
44 <li><a href=
"#faq-dev-15">Can extensions modify chrome:// URLs?
</a></li>
46 <li><a href=
"#faq-open-popups">Can extensions open browser/page action popups without user interaction?
</a></li>
47 <li><a href=
"#faq-persist-popups">Can extensions keep popups open after the user clicks away from them?
</a></li>
48 <li><a href=
"#faq-lifecycle-events">Can extensions be notified when they are installed/uninstalled?
</a></li>
50 <h4 id=
"development">Development
</h4>
52 <li><a href=
"#faq-building-ui">How do I build a UI for my extension?
</a>
53 <li><a href=
"#faq-dev-09">How much data can I store in localStorage?
</a></li>
55 <li><a href=
"#faq-dev-10">How do I create an options menu for my application?
</a></li>
57 <li><a href=
"#faq-dev-12">What debugging tools are available to extension developers?
</a></li>
58 <li><a href=
"#faq-dev-16">Why do wildcard matches not work for top level domains (TLDs)?
</a></li>
59 <li><a href=
"#faq-management">Why does the management API not fire events when my extension is installed/uninstalled?
</a></li>
60 <li><a href=
"#faq-firstrun">How can an extension determine whether it is running for the first time?
</a></li>
62 <h4 id=
"features">Features and bugs
</h4>
64 <li><a href=
"#faq-fea-01">I think I've found a bug! How do I make sure it gets fixed?
</a></li>
65 <li><a href=
"#faq-fea-02">I have a feature request! How can I report it?
</a></li>
69 <h2 id=
"general2">General
</h2>
71 <h3 id=
"faq-gen-01">What are Google Chrome Extensions?
</h3>
73 Google Chrome Extensions are applications that run inside the
74 Chrome browser and provide additional functionality, integration with third
75 party websites or services, and customized browsing experiences.
79 <h3 id=
"faq-dev-01">How can I set up Chrome for extension development?
</h3>
81 As long as you are using a version of Chrome that supports
82 extensions, you already have everything you need to start writing an
83 extension of your own.
84 You can start by turning on Developer mode.
88 Click the Chrome menu icon
89 <img src=
"{{static}}/images/hotdogmenu.png" height=
"29" width=
"29" alt=
""
91 and select
<b>Extensions
</b> from the
<b>Tools
</b> menu.
92 Ensure that the
"Developer mode" checkbox in the top right-hand corner
94 Now you can reload extensions,
95 load an unpacked directory of files as if it were a packaged extension,
96 and more. For a complete tutorial, see
97 <a href=
"/extensions/getstarted">Getting Started
</a>.
101 <h3 id=
"faq-gen-02">What technologies are used to write extensions for Chrome?
</h3>
103 Extensions are written using the same standard web
104 technologies that developers use to create websites. HTML is used as a
105 content markup language, CSS is used for styling, and JavaScript for
106 scripting. Because Chrome supports HTML5 and CSS3, developers can
107 use the latest open web technologies such as canvas and CSS animations in
108 their extensions. Extensions also have access to several
109 <a href=
"/extensions/api_other">JavaScript APIs
</a>
110 that help perform functions like JSON encoding and interacting with the
115 <h3 id=
"faq-gen-03">Are extensions fetched from the web every time the browser is loaded?
</h3>
117 Extensions are downloaded by the Chrome browser upon install, and
118 are subsequently run off of the local disk in order to speed up
119 performance. However, if a new version of the extension is pushed online,
120 it will be automatically downloaded in the background to any users who
121 have the extension installed. Extensions may also make requests for remote
122 content at any time, in order to interact with a web service or pull new
123 content from the web.
126 <h3 id=
"faq-dev-14">How do I determine which version of Chrome is deployed to which channel?
</h3>
128 To determine which version of Chrome is currently available on each
129 of the different platforms, visit
130 <a href=
"http://omahaproxy.appspot.com">omahaproxy.appspot.com
</a>. On that
131 site you will see data in a format similar to:
134 <pre>cf,dev,#.#.###.#,#.#.###.#,mm/dd/yy,mm/dd/yy,#####,#####,#####
135 cf,beta,#.#.###.#,#.#.###.#,mm/dd/yy,mm/dd/yy,#####,#####,#####
136 cf,stable,#.#.###.#,#.#.###.#,mm/dd/yy,mm/dd/yy,#####,#####,#####
137 linux,dev,#.#.###.#,#.#.###.#,mm/dd/yy,mm/dd/yy,#####,#####,#####
138 linux,beta,#.#.###.#,#.#.###.#,mm/dd/yy,mm/dd/yy,#####,#####,#####
139 linux,stable,#.#.###.#,#.#.###.#,mm/dd/yy,mm/dd/yy,#####,#####,#####
140 mac,dev,#.#.###.#,#.#.###.#,mm/dd/yy,mm/dd/yy,#####,#####,#####
141 mac,beta,#.#.###.#,#.#.###.#,mm/dd/yy,mm/dd/yy,#####,#####,#####
142 mac,stable,#.#.###.#,#.#.###.#,mm/dd/yy,mm/dd/yy,#####,#####,#####
143 win,canary,#.#.###.#,#.#.###.#,mm/dd/yy,mm/dd/yy,#####,#####,#####
144 win,dev,#.#.###.#,#.#.###.#,mm/dd/yy,mm/dd/yy,#####,#####,#####
145 win,beta,#.#.###.#,#.#.###.#,mm/dd/yy,mm/dd/yy,#####,#####,#####
146 win,stable,#.#.###.#,#.#.###.#,mm/dd/yy,mm/dd/yy,#####,#####,#####
147 cros,dev,#.#.###.#,#.#.###.#,mm/dd/yy,mm/dd/yy,#####,#####,#####
148 cros,beta,#.#.###.#,#.#.###.#,mm/dd/yy,mm/dd/yy,#####,#####,#####
</pre>
151 Each line represents information about a different platform and channel
153 listed platforms are
<code>cf
</code> (Google Chrome Frame),
154 <code>linux
</code>,
<code>mac
</code>,
<code>win
</code>, and
155 <code>cros
</code> (Google Chrome OS). The listed
156 channels are
<code>canary
</code>,
<code>dev
</code>,
<code>beta
</code>,
157 and
<code>stable
</code>.
158 The two four-part numbers after the channel represent the current and previous
159 versions of Chrome deployed to that platform-channel
160 combination. The rest of the information is metadata about when the releases
161 were first pushed, as well as revision numbers associated with each build.
165 <h2 id=
"capabilities2">Capabilities
</h2>
167 <h3 id=
"faq-dev-02">Can extensions make cross-domain Ajax requests?
</h3>
169 Yes. Extensions can make cross-domain requests. See
170 <a href=
"/extensions/xhr">this page
</a>
171 for more information.
174 <h3 id=
"faq-dev-03">Can extensions use
3rd party web services?
</h3>
176 Yes. Extensions are capable of making cross-domain Ajax
177 requests, so they can call remote APIs directly. APIs that provide data
178 in JSON format are particularly easy to use.
181 <h3 id=
"faq-dev-07">Can extensions encode/decode JSON data?
</h3>
183 Yes, because V8 (Chrome's JavaScript engine) supports
184 JSON.stringify and JSON.parse natively, you may use these functions in your
186 <a href=
"http://json.org/js.html">as described here
</a> without including
187 any additional JSON libraries in your code.
190 <h3 id=
"faq-dev-08">Can extensions store data locally?
</h3>
192 Yes, extensions can use
<a href=
"http://dev.w3.org/html5/webstorage/">localStorage
</a>
193 to store string data permanently. Using Chrome's built-in JSON
194 functions, you can store complex data structures in localStorage. For
195 extensions that need to execute SQL queries on their stored data,
197 <a href=
"http://dev.w3.org/html5/webdatabase/">client side SQL databases
</a>,
198 which may be used as well.
201 <h3 id=
"faq-dev-04">Can extensions use OAuth?
</h3>
203 Yes, there are extensions that use OAuth to access remote data
204 APIs. Most developers find it convenient to use a
205 <a href=
"http://unitedheroes.net/OAuthSimple/js/OAuthSimple.js">JavaScript OAuth library
</a>
206 in order to simplify the process of signing OAuth requests.
209 <h3 id=
"faq-dev-06">Can extensions load DLLs?
</h3>
211 Yes, using the
<a href=
"npapi">NPAPI interface
</a>.
212 Because of the possibility for abuse, though, we will review your extension
213 before hosting it in the Chrome Web Store.
216 <h3 id=
"faq-dev-05">Can extensions create UI outside of the rendered web page?
</h3>
218 Yes, your extension may add buttons to the Chrome browser's user interface.
219 See
<a href=
"browserAction">browser actions
</a> and
220 <a href=
"pageAction">page actions
</a> for more information.
223 An extension may also create popup notifications, which exist outside of the
224 browser window. See the
<a href=
"desktop_notifications">desktop
225 notifications
</a> documentation for more details.
228 <h3 id=
"faq-interact-chrome">Can extensions listen to clicks on Chrome tabs and
229 navigation buttons?
</h3>
231 No. Extensions are limited to listening to the events described in the
<a
232 href=
"api_index">API documentation
</a>.
235 <h3 id=
"faq-dev-11">Can two extensions communicate with each other?
</h3>
237 Yes, extensions may pass messages to other extensions. See the
238 <a href=
"messaging#external">message passing documentation
</a>
239 for more information.
243 <h3 id=
"faq-dev-13">Can extensions use Google Analytics?
</h3>
245 Yes, since extensions are built just like websites, they can use
246 <a href=
"http://www.google.com/analytics/">Google Analytics
</a> to track
247 usage. However, you must modify the tracking code to pull
248 an HTTPS version of the Google Analytics library. See
249 <a href=
"tut_analytics">this tutorial
</a> for more information on doing
255 <h3 id=
"faq-dev-15">Can extensions modify chrome:// URLs?
</h3>
257 No. The extensions APIs have been designed to minimize backwards
258 compatibility issues that can arise when new versions of the browser are
259 pushed. Allowing content scripts on
<code>chrome://
</code>
260 URLs would mean that developers would begin to rely on the DOM, CSS, and
261 JavaScript of these pages to stay the same. In the best case, these pages
262 could not be updated as quickly as they are being updated right now.
263 In the worst case, it could mean that an update to one
264 of these pages could cause an extension to break, causing key parts of the
265 browser to stop working for users of that extension.
269 The reason that
<a href=
"override">replacing the content
</a>
270 hosted at these URLs entirely is
271 allowed is because it forces an extension developer to implement all of the
272 functionality they want without depending on the browser's internal implementation
277 <h3 id=
"faq-open-popups">Can extensions open browser/page action popups without
278 user interaction?
</h3>
280 No, popups can only be opened if the user clicks on the corresponding page or
281 browser action. An extension cannot open its popup programatically.
284 <h3 id=
"faq-persist-popups">Can extensions keep popups open after the user
285 clicks away from them?
</h3>
287 No, popups automatically close when the user focuses on some portion of the
288 browser outside of the popup. There is no way to keep the popup open after
289 the user has clicked away.
292 <h3 id=
"faq-lifecycle-events">Can extensions be notified when they are
293 installed/uninstalled?
</h3>
295 You can listen to the
296 $(ref:runtime.onInstalled)
297 event to be notified when your extension is installed or updated, or when
298 Chrome itself is updated. There is no corresponding event for when your
299 extension is uninstalled.
303 <h2 id=
"development2">Development
</h2>
306 <h3 id=
"faq-building-ui">How do I build a UI for my extension?
</h3>
308 Extensions use HTML and CSS to define their user interfaces, so you can use
309 standard form controls to build your UI, or style the interface with CSS,
310 as you would a web page. Additionally, extensions can add
311 <a href=
"#faq-dev-05">some limited UI elements to Chrome itself.
</a>
314 <h3 id=
"faq-dev-09">How much data can I store in localStorage?
</h3>
316 Extensions can store up to
5MB of data in localStorage.
320 <h3 id=
"faq-dev-10">How do I create an options menu for my application?
</h3>
322 You can let users set options for your extension by creating an
323 <a href=
"/extensions/options">options page
</a>,
324 which is a simple HTML page that will be loaded when a user clicks the
325 "options" button for your extension. This page can read and write settings
326 to localStorage, or even send options to a web server so that they can be
327 persisted across browsers.
331 <h3 id=
"faq-dev-12">What debugging tools are available to extension developers?
</h3>
333 Chrome's built-in developer tools can be used to debug extensions
334 as well as web pages. See this
335 <a href=
"/extensions/tut_debugging ">tutorial on debugging extensions
</a>
336 for more information.
339 <h3 id=
"faq-dev-16">Why do wildcard matches not work for top level domains
342 You cannot use wildcard match patterns like
<code>http://google.*/*
</code>
343 to match TLDs (like
<code>http://google.es
</code> and
344 <code>http://google.fr
</code>) due to the
345 complexity of actually restricting such a match to only the desired domains.
348 For the example of
<code>http://google.*/*
</code>, the Google domains would
349 be matched, but so would
<code>http://google.someotherdomain.com
</code>.
350 Additionally, many sites do not own all of the TLDs for their
351 domain. For an example, assume you want to use
352 <code>http://example.*/*
</code> to match
<code>http://example.com
</code> and
353 <code>http://example.es
</code>, but
<code>http://example.net
</code> is a
354 hostile site. If your extension has a bug, the hostile site could potentially
355 attack your extension in order to get access to your extension's increased
359 You should explicitly enumerate the TLDs that you wish to run
363 <h3 id=
"faq-management">Why does the management API not fire events when my
364 extension is installed/uninstalled?
</h3>
366 The
<a href=
"management">management API
</a> was intended to help create
367 new tab page replacement extensions. It was not intended to fire
368 install/uninstall events for the current extension.
371 <h3 id=
"faq-firstrun">How can an extension determine whether it is running for
374 You can listen to the
375 $(ref:runtime.onInstalled)
376 event. See
<a href=
"#faq-lifecycle-events">this FAQ entry
</a>.
379 <h2 id=
"features2">Features and bugs
</h2>
382 <h3 id=
"faq-fea-01">I think I've found a bug! How do I make sure it gets
385 While developing an extension, you may find behavior that does not
386 match the extensions documentation and may be the result of a bug in
387 Chrome. The best thing to do is to make sure an appropriate issue
388 report is filed, and the Chromium team has enough information to reproduce
392 <p>The steps you should follow to ensure this are:
</p>
396 Come up with a
<em>minimal
</em> test extension that demonstrates the issue
397 you wish to report. This extension should have as little code as possible
398 to demonstrate the bug
—generally this should be
100 lines of
399 code or less. Many times, developers find that they cannot reproduce their
400 issues this way, which is a good indicator that the bug is in their own
404 Search the issue tracker at
405 <a href=
"http://crbug.com">http://crbug.com
</a> to see whether
406 someone has reported a similar issue. Most issues related to
407 extensions are filed under
<strong>Cr=Platform-Extensions
</strong>, so to
408 look for an extension bug related to the
409 chrome.tabs.executeScript function (for example), search for
410 "<code>Cr=Platform-Extensions Type=Bug chrome.tabs.executeScript</code>",
412 <a href=
"https://code.google.com/p/chromium/issues/list?can=2&q=Cr%3DPlatform-Extensions+Type%3DBug+chrome.tabs.executeScript&colspec=ID+Pri+M+Iteration+ReleaseBlock+Cr+Status+Owner+Summary+Modified&x=m&y=releaseblock&cells=tiles">
413 this list of results
</a>.
416 If you find a bug that describes your issue, click the star icon to be
417 notified when the bug receives an update.
<em>Do not respond to the
418 bug to say
"me too" or ask
"when will this be fixed?"</em>; such updates
419 can cause hundreds of emails to be sent. Add a comment only if you have
420 information (such as a better test case or a suggested fix) that is likely
424 If you found no appropriate bug to star, file a new issue report at
425 <a href=
"http://crbug.com/new">http://crbug.com/new
</a>. Be as explicit
426 as possible when filling out this form: choose a descriptive title,
427 explain the steps to reproduce the bug, and describe the expected and
428 actual behavior. Attach your test example to the report and add
429 screenshots if appropriate. The easier your report makes it for others
430 to reproduce your issue, the greater chance that your bug will be fixed
434 Wait for the bug to be updated. Most new bugs are triaged within a week,
435 although it can sometimes take longer for an update.
<em>Do not reply
436 to the bug to ask when the issue will be fixed.
</em> If your bug has not
437 been modified after two weeks, please post a message to the
438 <a href=
"http://groups.google.com/a/chromium.org/group/chromium-extensions/topics">
439 discussion group
</a> with a link back to your bug.
442 If you originally reported your bug on the discussion group and were
443 directed to this FAQ entry, reply to your original thread with a link
444 to the bug you starred or reported. This will make it easier for others
445 experiencing the same issue to find the correct bug.
449 <h3 id=
"faq-fea-02">I have a feature request! How can I report it?
</h3>
451 <p>If you identify a feature (especially if it's related to an experimental
452 API) that could be added to improve the extension development experience,
453 make sure an appropriate request is filed in the issue tracker.
</p>
455 <p>The steps you should follow to ensure this are:
</p>
459 Search the issue tracker at
460 <a href=
"http://crbug.com">http://crbug.com
</a> to see whether
461 someone has requested a similar feature. Most requests related to
462 extensions are filed under
<strong>Cr=Platform-Extensions
</strong>, so to
463 look for an extension feature request related to keyboard shortcuts
464 (for example), search
465 for
"<code>Cr=Platform-Extensions Type=Feature shortcuts</code>",
467 <a href=
"https://code.google.com/p/chromium/issues/list?can=2&q=Cr%3DPlatform-Extensions+Type%3DFeature+shortcuts&colspec=ID+Pri+M+Iteration+ReleaseBlock+Cr+Status+Owner+Summary+Modified&x=m&y=releaseblock&cells=tiles">
468 this list of results
</a>.
471 If you find a ticket that matches your request, click the star icon to be
472 notified when the bug receives an update.
<em>Do not respond to the
473 bug to say
"me too" or ask
"when will this be implemented?"</em>; such
474 updates can cause hundreds of emails to be sent.
477 If you found no appropriate ticket to star, file a new request at
478 <a href=
"http://crbug.com/new">http://crbug.com/new
</a>. Be as detailed
479 as possible when filling out this form: choose a descriptive title
480 and explain exactly what feature you would like and how you plan to use it.
483 Wait for the ticket to be updated. Most new requests are triaged within a
484 week, although it can sometimes take longer for an update.
<em>Do not reply
485 to the ticket to ask when the feature will be added.
</em> If your
486 ticket has not been modified after two weeks, please post a message to the
487 <a href=
"http://groups.google.com/a/chromium.org/group/chromium-extensions/topics">
488 discussion group
</a> with a link back to your request.
491 If you originally reported your request on the discussion group and were
492 directed to this FAQ entry, reply to your original thread with a link
493 to the ticket you starred or opened. This will make it easier for others
494 with the same request to find the correct ticket.