summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorasargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-07 20:12:07 +0000
committerasargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-07 20:12:07 +0000
commita2a5727cc4bfec1bb10db45378894034c9bbfe7d (patch)
treef308de1e5753977d5907304dae01d6d956e7bab5
parent17bdb0ef0980829bea0a3c06e8a6a64a141a1eb9 (diff)
downloadchromium_src-a2a5727cc4bfec1bb10db45378894034c9bbfe7d.zip
chromium_src-a2a5727cc4bfec1bb10db45378894034c9bbfe7d.tar.gz
chromium_src-a2a5727cc4bfec1bb10db45378894034c9bbfe7d.tar.bz2
Add a note to tabs.onCreated documentation that the url might not be defined.
Glen got bit by this during development of an extension, where he was expecting that the tab's url would always be defined right away. (Someone filed crbug.com/52195 about this a while back, but I had marked it as WontFix because there are legitimate reasons why the url isn't always set) BUG=none TEST=none Review URL: http://codereview.chromium.org/6193001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70767 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/common/extensions/api/extension_api.json2
-rw-r--r--chrome/common/extensions/docs/tabs.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/chrome/common/extensions/api/extension_api.json b/chrome/common/extensions/api/extension_api.json
index 8dac7c4..7709ec2 100644
--- a/chrome/common/extensions/api/extension_api.json
+++ b/chrome/common/extensions/api/extension_api.json
@@ -1318,7 +1318,7 @@
{
"name": "onCreated",
"type": "function",
- "description": "Fires when a tab is created.",
+ "description": "Fires when a tab is created. Note that the tab's URL may not be set at the time this event fires, but you can listen to onUpdated events to be notified when a URL is set.",
"parameters": [
{
"$ref": "Tab",
diff --git a/chrome/common/extensions/docs/tabs.html b/chrome/common/extensions/docs/tabs.html
index 27b26be..91e75e6 100644
--- a/chrome/common/extensions/docs/tabs.html
+++ b/chrome/common/extensions/docs/tabs.html
@@ -5303,7 +5303,7 @@ For other examples and for help in viewing the source code, see
<div class="description">
<p class="todo" style="display: none; ">Undocumented.</p>
- <p>Fires when a tab is created.</p>
+ <p>Fires when a tab is created. Note that the tab's URL may not be set at the time this event fires, but you can listen to onUpdated events to be notified when a URL is set.</p>
<!-- PARAMETERS -->
<h4>Parameters</h4>