Closed
Bug 697989
Opened 12 years ago
Closed 12 years ago
don't use domstorage-flush-timer in dom/tests/mochitest/localstorage/test_bug624047.html
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
mozilla10
People
(Reporter: espindola, Assigned: espindola)
References
Details
Attachments
(1 file, 1 obsolete file)
4.65 KB,
patch
|
mak
:
review+
mayhemer
:
feedback+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•12 years ago
|
||
We want to do more work on profile-before-change (finish statements and close connections), so move this test to a message that currently does the same but will be unaffected by future work.
Assignee: nobody → respindola
Status: NEW → ASSIGNED
Attachment #570268 -
Flags: review?(mak77)
Attachment #570268 -
Flags: feedback?(honzab.moz)
Assignee | ||
Comment 2•12 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=82894fac2c89
Comment 3•12 years ago
|
||
Comment on attachment 570268 [details] [diff] [review] use domstorage-flush-timer instead of profile-before-change Review of attachment 570268 [details] [diff] [review]: ----------------------------------------------------------------- Honza said this test is explicitly about the true param passed to FlushAndDeleteTemporaryTables(true), domstorage-flush-timer notification instead passes false. He suggested to add a new domstorage-flush-force notification, timilar to domstorage-flush-timer but that passes the true argument
Attachment #570268 -
Flags: review?(mak77) → review-
Assignee | ||
Comment 4•12 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=c66a1510f18e
Attachment #570268 -
Attachment is obsolete: true
Attachment #570268 -
Flags: feedback?(honzab.moz)
Attachment #570726 -
Flags: superreview?(honzab.moz)
Attachment #570726 -
Flags: review?(mak77)
Assignee | ||
Updated•12 years ago
|
Attachment #570726 -
Flags: superreview?(honzab.moz) → feedback?(honzab.moz)
![]() |
||
Comment 5•12 years ago
|
||
What bugs are this one dep on/block it if any? Not sure how removal of the new topic observer gets handled here and in what order you want to land the patches that fix it. Patch looks good to me otherwise. I'll r+ it when dependencies get properly set or explained.
![]() |
||
Comment 6•12 years ago
|
||
Comment on attachment 570726 [details] [diff] [review] Use domstorage-flush-force Review of attachment 570726 [details] [diff] [review]: ----------------------------------------------------------------- f+, but see comment 5.
Attachment #570726 -
Flags: feedback?(honzab.moz) → feedback+
Assignee | ||
Comment 7•12 years ago
|
||
This was part of 697989, so it blocks it. The observer will be remove by using weak references (bug 697988). That could go in any order, but I think we should probably push this one first, so I am also adding 697988 as blocked by this.
![]() |
||
Comment 8•12 years ago
|
||
Cool. Thanks! I can give an unofficial r+ to this bug's patch.
Comment 9•12 years ago
|
||
Comment on attachment 570726 [details] [diff] [review] Use domstorage-flush-force Review of attachment 570726 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/src/storage/nsDOMStorage.cpp @@ +74,5 @@ > #include "mozilla/Preferences.h" > #include "nsThreadUtils.h" > > +#define NS_DOMSTORAGE_FLUSH_TIMER_OBSERVER "domstorage-flush-timer" > +#define NS_DOMSTORAGE_FLUSH_FORCE_OBSERVER "domstorage-flush-force" A comment above these, explaining the difference between the two, may be useful. nit: These are suffixed _OBSERVER, but really should be _TOPIC... btw... @@ +293,5 @@ > // Used for temporary table flushing > os->AddObserver(gStorageManager, "profile-before-change", false); > os->AddObserver(gStorageManager, NS_XPCOM_SHUTDOWN_OBSERVER_ID, false); > os->AddObserver(gStorageManager, NS_DOMSTORAGE_FLUSH_TIMER_OBSERVER, false); > + os->AddObserver(gStorageManager, NS_DOMSTORAGE_FLUSH_FORCE_OBSERVER, false); Ideally this should not be needed, if the only use is for testing. Indeed you directly call into the Observe() method. But if Honza thinks it may be useful in future, fine by me.
Attachment #570726 -
Flags: review?(mak77) → review+
Assignee | ||
Comment 10•12 years ago
|
||
A try with the requested changes is at https://tbpl.mozilla.org/?tree=Try&rev=a8bc9a2dfd24 I will push it if it is green.
Assignee | ||
Comment 11•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/d1e0a5c30b54
Comment 12•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/d1e0a5c30b54
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla10
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•