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

Issue 6677034: Add IndexedDB browser test that causes a crash. (Closed)

Created:
9 years, 9 months ago by dgrogan
Modified:
9 years, 7 months ago
Reviewers:
jorlow
CC:
chromium-reviews, jam, darin-cc_chromium.org
Visibility:
Public.

Description

Add IndexedDB browser test that causes a crash. When a frame is unloaded, stop() is called on each ActiveDOMObject. IDBDatabase::stop can cause IDBDatabase to be destroyed in a roundabout way. Destroying an ActiveDOMObject while they are being iterated over causes a defensive crash. BUG=75264 TEST=browser_tests --gtest_filter=IndexedDBBrowserTest.DatabaseCallbacksTest Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=78594

Patch Set 1 #

Patch Set 2 : remove DISABLED marker on this new test #

Total comments: 13

Patch Set 3 : more explicit js, limit use of expose-gc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -0 lines) Patch
A chrome/test/data/indexeddb/database_callbacks_first.html View 1 2 1 chunk +17 lines, -0 lines 0 comments Download
A chrome/test/data/indexeddb/database_callbacks_second.html View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M content/browser/in_process_webkit/indexed_db_browsertest.cc View 1 2 2 chunks +14 lines, -0 lines 0 comments Download
M content/browser/in_process_webkit/indexed_db_dispatcher_host.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
dgrogan
This is the test for the patch in https://bugs.webkit.org/show_bug.cgi?id=56350
9 years, 9 months ago (2011-03-15 01:47:51 UTC) #1
jorlow
close http://codereview.chromium.org/6677034/diff/2001/content/browser/in_process_webkit/indexed_db_browsertest.cc File content/browser/in_process_webkit/indexed_db_browsertest.cc (right): http://codereview.chromium.org/6677034/diff/2001/content/browser/in_process_webkit/indexed_db_browsertest.cc#newcode51 content/browser/in_process_webkit/indexed_db_browsertest.cc:51: command_line->AppendSwitchASCII(switches::kJavaScriptFlags, "--expose-gc"); Let's only do this on tests ...
9 years, 9 months ago (2011-03-15 02:30:04 UTC) #2
dgrogan
http://codereview.chromium.org/6677034/diff/2001/content/browser/in_process_webkit/indexed_db_browsertest.cc File content/browser/in_process_webkit/indexed_db_browsertest.cc (right): http://codereview.chromium.org/6677034/diff/2001/content/browser/in_process_webkit/indexed_db_browsertest.cc#newcode51 content/browser/in_process_webkit/indexed_db_browsertest.cc:51: command_line->AppendSwitchASCII(switches::kJavaScriptFlags, "--expose-gc"); On 2011/03/15 02:30:04, jorlow wrote: > Let's ...
9 years, 9 months ago (2011-03-15 03:32:27 UTC) #3
jorlow
Also, please make a bug for this and mark it m11. We really need to ...
9 years, 9 months ago (2011-03-15 03:35:37 UTC) #4
dgrogan
On Mon, Mar 14, 2011 at 8:35 PM, <jorlow@chromium.org> wrote: > Also, please make a ...
9 years, 9 months ago (2011-03-15 03:50:16 UTC) #5
jorlow
New bug...this is a new (but related) issue. On Mon, Mar 14, 2011 at 8:49 ...
9 years, 9 months ago (2011-03-15 04:09:11 UTC) #6
Paweł Hajdan Jr.
Drive-by with testing comments. http://codereview.chromium.org/6677034/diff/2001/chrome/test/data/indexeddb/database_callbacks_first.html File chrome/test/data/indexeddb/database_callbacks_first.html (right): http://codereview.chromium.org/6677034/diff/2001/chrome/test/data/indexeddb/database_callbacks_first.html#newcode3 chrome/test/data/indexeddb/database_callbacks_first.html:3: setTimeout(function() { Is setTimeout really ...
9 years, 9 months ago (2011-03-15 19:49:11 UTC) #7
jorlow
http://codereview.chromium.org/6677034/diff/2001/chrome/test/data/indexeddb/database_callbacks_first.html File chrome/test/data/indexeddb/database_callbacks_first.html (right): http://codereview.chromium.org/6677034/diff/2001/chrome/test/data/indexeddb/database_callbacks_first.html#newcode3 chrome/test/data/indexeddb/database_callbacks_first.html:3: setTimeout(function() { On 2011/03/15 19:49:11, Paweł Hajdan Jr. wrote: ...
9 years, 9 months ago (2011-03-15 20:25:46 UTC) #8
dgrogan
http://codereview.chromium.org/6677034/diff/2001/chrome/test/data/indexeddb/database_callbacks_first.html File chrome/test/data/indexeddb/database_callbacks_first.html (right): http://codereview.chromium.org/6677034/diff/2001/chrome/test/data/indexeddb/database_callbacks_first.html#newcode3 chrome/test/data/indexeddb/database_callbacks_first.html:3: setTimeout(function() { On 2011/03/15 20:25:46, jorlow wrote: > On ...
9 years, 9 months ago (2011-03-15 20:49:07 UTC) #9
Paweł Hajdan Jr.
http://codereview.chromium.org/6677034/diff/2001/chrome/test/data/indexeddb/database_callbacks_first.html File chrome/test/data/indexeddb/database_callbacks_first.html (right): http://codereview.chromium.org/6677034/diff/2001/chrome/test/data/indexeddb/database_callbacks_first.html#newcode3 chrome/test/data/indexeddb/database_callbacks_first.html:3: setTimeout(function() { On 2011/03/15 20:25:46, jorlow wrote: > the ...
9 years, 9 months ago (2011-03-16 14:53:09 UTC) #10
dgrogan
http://codereview.chromium.org/6677034/diff/2001/chrome/test/data/indexeddb/database_callbacks_first.html File chrome/test/data/indexeddb/database_callbacks_first.html (right): http://codereview.chromium.org/6677034/diff/2001/chrome/test/data/indexeddb/database_callbacks_first.html#newcode3 chrome/test/data/indexeddb/database_callbacks_first.html:3: setTimeout(function() { On 2011/03/16 14:53:09, Paweł Hajdan Jr. wrote: ...
9 years, 9 months ago (2011-03-16 22:00:12 UTC) #11
jorlow
David, you can't reproduce because the fix went in upstream. :-) Please just commit this. ...
9 years, 9 months ago (2011-03-16 22:07:47 UTC) #12
Paweł Hajdan Jr.
9 years, 9 months ago (2011-03-17 09:51:49 UTC) #13
Thanks for improving the code, removing myself from reviewers.

Powered by Google App Engine
This is Rietveld 408576698