summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authorskerner@chromium.org <skerner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-01 17:15:48 +0000
committerskerner@chromium.org <skerner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-01 17:15:48 +0000
commitc8c34a1ec4df1022d6a23ce190f2504f7da3a159 (patch)
tree0fbe1c602193e2bb7dcd830428a8da7cef53dbab /chrome/common
parent416ac2eabe3da68cea4f9cd17ed36f3e8031ed76 (diff)
downloadchromium_src-c8c34a1ec4df1022d6a23ce190f2504f7da3a159.zip
chromium_src-c8c34a1ec4df1022d6a23ce190f2504f7da3a159.tar.gz
chromium_src-c8c34a1ec4df1022d6a23ce190f2504f7da3a159.tar.bz2
Ensure that location.reload() reloads by passing true as an argument.
Changes can be seen here: http://www.corp.google.com/~skerner/cr3312005/tut_debugging.html BUG=45951 TEST=Tried the example in the docs. Review URL: http://codereview.chromium.org/3312005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58195 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/extensions/docs/examples/extensions/benchmark/background.html4
-rw-r--r--chrome/common/extensions/docs/static/tut_debugging.html6
-rw-r--r--chrome/common/extensions/docs/tut_debugging.html9
3 files changed, 10 insertions, 9 deletions
diff --git a/chrome/common/extensions/docs/examples/extensions/benchmark/background.html b/chrome/common/extensions/docs/examples/extensions/benchmark/background.html
index f50e64d..6a51042 100644
--- a/chrome/common/extensions/docs/examples/extensions/benchmark/background.html
+++ b/chrome/common/extensions/docs/examples/extensions/benchmark/background.html
@@ -198,7 +198,7 @@ function Benchmark() {
chrome.browserAction.setBadgeBackgroundColor({"color": [0, 255, 0, 255]});
var tabs = chrome.extension.getExtensionTabs();
if (tabs && tabs.length) {
- tabs[0].location.reload();
+ tabs[0].location.reload(true);
}
}
}
@@ -367,7 +367,7 @@ function run() {
if (chrome.benchmarking.isSingleProcess()) {
alert("Warning: the WebKit cache may not be cleared correctly " +
"between runs because Chrome is running in single-process mode.");
- }
+ }
}
var urls = testUrl.split(",");
diff --git a/chrome/common/extensions/docs/static/tut_debugging.html b/chrome/common/extensions/docs/static/tut_debugging.html
index 1c5db982..20d46c5 100644
--- a/chrome/common/extensions/docs/static/tut_debugging.html
+++ b/chrome/common/extensions/docs/static/tut_debugging.html
@@ -129,10 +129,10 @@ as it adds images to itself.
<li>
At the console prompt, reload the popup page
- by entering <b>location.reload()</b>:
+ by entering <b>location.reload(true)</b>:
<pre>
-> <b>location.reload()</b>
+> <b>location.reload(true)</b>
</pre>
<p>
@@ -217,7 +217,7 @@ to debug your extensions:
</li>
<li>
Reload the currently inspected page from the console
- using <b>location.reload()</b>.
+ using <b>location.reload(true)</b>.
</li>
</ul>
diff --git a/chrome/common/extensions/docs/tut_debugging.html b/chrome/common/extensions/docs/tut_debugging.html
index 9349848..7336438 100644
--- a/chrome/common/extensions/docs/tut_debugging.html
+++ b/chrome/common/extensions/docs/tut_debugging.html
@@ -15,7 +15,8 @@
</script>
<script type="text/javascript" src="js/api_page_generator.js"></script>
<script type="text/javascript" src="js/bootstrap.js"></script>
- <title>Tutorial: Debugging - Google Chrome Extensions - Google Code</title></head><body> <div id="gc-container" class="labs">
+ <title>Tutorial: Debugging - Google Chrome Extensions - Google Code</title></head>
+ <body> <div id="gc-container" class="labs">
<div id="devModeWarning">
You are viewing extension docs in chrome via the 'file:' scheme: are you expecting to see local changes when you refresh? You'll need run chrome with --allow-file-access-from-files.
</div>
@@ -438,9 +439,9 @@ as it adds images to itself.
<li>
At the console prompt, reload the popup page
- by entering <b>location.reload()</b>:
+ by entering <b>location.reload(true)</b>:
-<pre>&gt; <b>location.reload()</b>
+<pre>&gt; <b>location.reload(true)</b>
</pre>
<p>
@@ -518,7 +519,7 @@ to debug your extensions:
</li>
<li>
Reload the currently inspected page from the console
- using <b>location.reload()</b>.
+ using <b>location.reload(true)</b>.
</li>
</ul>