summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell/test_shell.cc
diff options
context:
space:
mode:
authorfqian@google.com <fqian@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-04 19:53:27 +0000
committerfqian@google.com <fqian@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-04 19:53:27 +0000
commitc4cc1c778cb681c39b54d28548bc95a80ee11560 (patch)
tree012c78b2a497d35fc2b4c877bb78066ea3921686 /webkit/tools/test_shell/test_shell.cc
parent73e53af0d3cfcc24eebd1238460c69356b86d325 (diff)
downloadchromium_src-c4cc1c778cb681c39b54d28548bc95a80ee11560.zip
chromium_src-c4cc1c778cb681c39b54d28548bc95a80ee11560.tar.gz
chromium_src-c4cc1c778cb681c39b54d28548bc95a80ee11560.tar.bz2
Navigate to "about:blank" before calling GC so that the current
page does not hold references to DOM objects. This should reduce noise of reporting leaked nodes. Review URL: http://codereview.chromium.org/12936 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6377 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell/test_shell.cc')
-rw-r--r--webkit/tools/test_shell/test_shell.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/webkit/tools/test_shell/test_shell.cc b/webkit/tools/test_shell/test_shell.cc
index d132a7f..d5220c5 100644
--- a/webkit/tools/test_shell/test_shell.cc
+++ b/webkit/tools/test_shell/test_shell.cc
@@ -124,6 +124,7 @@ TestShell::TestShell()
}
TestShell::~TestShell() {
+ LoadURL(L"about:blank");
// Call GC twice to clean up garbage.
CallJSGC();
CallJSGC();