Open Bug 876428 Opened 11 years ago Updated 2 months ago

Test for bug 874252

Categories

(Core :: Storage: IndexedDB, defect, P5)

defect

Tracking

()

People

(Reporter: baku, Unassigned)

Details

Attachments

(1 file, 4 obsolete files)

Attached patch patch (obsolete) — Splinter Review
      No description provided.
Attachment #754458 - Flags: review?(khuey)
Any idea why I cannot catch the exception here?

https://tbpl.mozilla.org/?tree=Try&rev=8747406aefe8
Comment on attachment 754458 [details] [diff] [review]
patch

Review of attachment 754458 [details] [diff] [review]:
-----------------------------------------------------------------

::: dom/indexedDB/test/test_bug874252.html
@@ +12,5 @@
> +<body>
> +<script>
> +
> +indexedDBPref = SpecialPowers.getBoolPref("dom.indexedDB.enabled");
> +SpecialPowers.setBoolPref("dom.indexedDB.enabled", false);

This should use pushPrefEnv instead.

@@ +23,5 @@
> +
> +  SpecialPowers.setBoolPref("dom.indexedDB.enabled", indexedDBPref);
> +  SimpleTest.finish();
> +
> +  e.stopPropagation();

You want to call preventDefault to stop this from hitting window.onerror.
Attachment #754458 - Flags: review?(khuey) → review-
Attached patch patch (obsolete) — Splinter Review
preventDefault is not enough for IPC tests. Any other suggestion?
Attachment #754458 - Attachment is obsolete: true
Attachment #754695 - Flags: review?(khuey)
Debug it?  Something is definitely broken then!
But that code may not handle requests from deleteDatabase ...
Component: DOM → DOM: IndexedDB
Comment on attachment 754695 [details] [diff] [review]
patch

I can't r+ a test that turns the tree orange ...
Attachment #754695 - Flags: review?(khuey)
(In reply to Kyle Huey [:khuey] (khuey@mozilla.com) from comment #6)
> But that code may not handle requests from deleteDatabase ...

This is exactly the feedback I needed. Thanks! I'm testing a new version of this patch on try.
Attached patch patch (obsolete) — Splinter Review
https://tbpl.mozilla.org/?tree=Try&rev=5ca54fc60e7f
Attachment #754695 - Attachment is obsolete: true
Attachment #761430 - Flags: review?(khuey)
Comment on attachment 761430 [details] [diff] [review]
patch

Review of attachment 761430 [details] [diff] [review]:
-----------------------------------------------------------------

b2g might want this ...
Attachment #761430 - Flags: review?(khuey) → review+
Keywords: checkin-needed
You need a better commit message before you check this in.
Keywords: checkin-needed
Attached patch patchSplinter Review
Done :)

About  b2g, I don't think the patch for the leaks landed on b2g18... but maybe it should. I'll check this tomorrow.
Attachment #761430 - Attachment is obsolete: true
Assignee: amarchesini → nobody
Priority: -- → P5
Severity: normal → S3
Attachment #9382791 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: