Closed
Bug 1034075
Opened 12 years ago
Closed 11 years ago
[Session Restore] SessionFile blocker should offer information on whether a write has been completed
Categories
(Firefox :: Session Restore, defect)
Firefox
Session Restore
Tracking
()
RESOLVED
FIXED
Firefox 41
| Tracking | Status | |
|---|---|---|
| firefox41 | --- | fixed |
People
(Reporter: Yoric, Assigned: Yoric)
References
Details
Attachments
(2 files, 1 obsolete file)
It is useful for debugging to know whether at least one write has been completed. We should add this to the state of the SessionFile AsyncShutdown blocker.
| Assignee | ||
Comment 1•12 years ago
|
||
Let's take the opportunity to add a few more details.
Assignee: nobody → dteller
Attachment #8451298 -
Flags: review?(ttaubert)
| Assignee | ||
Comment 2•12 years ago
|
||
Comment on attachment 8451298 [details] [diff] [review]
More details in case of SessionWorker AsyncShutdown timeout
Ah Tim is apparently on PTO.
Attachment #8451298 -
Flags: review?(smacleod)
Comment 3•12 years ago
|
||
Comment on attachment 8451298 [details] [diff] [review]
More details in case of SessionWorker AsyncShutdown timeout
Review of attachment 8451298 [details] [diff] [review]:
-----------------------------------------------------------------
Sorry for the delay in review, I was mistakenly assuming some of the feedback
from when you were trying to uplift this stuff would apply here. My bad!
This looks fine to me.
Just an aside though, I was reading inside AsyncShutdown.jsm when reviewing
this patched and noticed there is mixed indentation with tabs and spaces[1].
I haven't checked this patch to make sure it's only using space characters
for indentation, so you should probably check that your editor is configured
correctly.
[1] http://hg.mozilla.org/mozilla-central/diff/993e88c0c67e/toolkit/modules/AsyncShutdown.jsm#l1.154
::: browser/components/sessionstore/src/SessionFile.jsm
@@ +298,5 @@
> + Promise.reject(Object.create(ex, {
> + message: {
> + value: "Could not write session state file " + ex
> + }
> + })); // Make sure that errors are reported and cause test failures
This seems like a strange, roundabout way to accomplish this. Is it really the only way to report and cause a test failure?
::: browser/components/sessionstore/src/SessionWorker.jsm
@@ +41,5 @@
> + */
> +let gDiagnostics = {
> + /**
> + * `true` if at least one operation was completed, whether this was a success
> + * or a failure.
", whether this was a success or a failure" -> ", including failed operations".
@@ +51,5 @@
> + */
> + hasEverSucceeded: false,
> +
> + /**
> + * `true` if at least one of the operations has failed because of an
"one of the operations" - > "one operation"
Attachment #8451298 -
Flags: review?(ttaubert)
Attachment #8451298 -
Flags: review?(smacleod)
Attachment #8451298 -
Flags: review+
| Assignee | ||
Comment 4•12 years ago
|
||
(In reply to Steven MacLeod [:smacleod] from comment #3)
> Comment on attachment 8451298 [details] [diff] [review]
> More details in case of SessionWorker AsyncShutdown timeout
>
> Review of attachment 8451298 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> Sorry for the delay in review, I was mistakenly assuming some of the feedback
> from when you were trying to uplift this stuff would apply here. My bad!
>
> This looks fine to me.
>
> Just an aside though, I was reading inside AsyncShutdown.jsm when reviewing
> this patched and noticed there is mixed indentation with tabs and spaces[1].
> I haven't checked this patch to make sure it's only using space characters
> for indentation, so you should probably check that your editor is configured
> correctly.
Ah, thanks.
>
> ::: browser/components/sessionstore/src/SessionFile.jsm
> @@ +298,5 @@
> > + Promise.reject(Object.create(ex, {
> > + message: {
> > + value: "Could not write session state file " + ex
> > + }
> > + })); // Make sure that errors are reported and cause test failures
>
> This seems like a strange, roundabout way to accomplish this. Is it really
> the only way to report and cause a test failure?
I can think of several variants, but they all revolve around using `Promise.reject(someException)`. Now, instead of `Object.create`, I could create a new error, copy the stack & co and add a new error message.
| Assignee | ||
Comment 5•11 years ago
|
||
/r/9033 - Bug 1034075 - Add more details to SessionFile AsyncShutdown blocker;r=ttaubert
Pull down this commit:
hg pull -r a2c7928910eab014f351f96ff2353325f0339f1f https://reviewboard-hg.mozilla.org/gecko/
| Assignee | ||
Comment 6•11 years ago
|
||
Comment on attachment 8607479 [details]
MozReview Request: bz://1034075/Yoric
/r/9033 - Bug 1034075 - Add more details to SessionFile AsyncShutdown blocker;r=ttaubert
Pull down this commit:
hg pull -r a2c7928910eab014f351f96ff2353325f0339f1f https://reviewboard-hg.mozilla.org/gecko/
Attachment #8607479 -
Flags: review?(ttaubert)
| Assignee | ||
Comment 7•11 years ago
|
||
Comment on attachment 8607479 [details]
MozReview Request: bz://1034075/Yoric
/r/9033 - Bug 1034075 - Add more details to SessionFile AsyncShutdown blocker;r=ttaubert
Pull down this commit:
hg pull -r a2c7928910eab014f351f96ff2353325f0339f1f https://reviewboard-hg.mozilla.org/gecko/
Attachment #8607479 -
Flags: review?(ttaubert)
Comment 8•11 years ago
|
||
Updated•11 years ago
|
Attachment #8607479 -
Flags: review+
Comment 9•11 years ago
|
||
Comment on attachment 8607479 [details]
MozReview Request: bz://1034075/Yoric
I am confused.
Attachment #8607479 -
Flags: review+
| Assignee | ||
Comment 10•11 years ago
|
||
Sorry about that, I uploaded an incomplete patch.
| Assignee | ||
Comment 11•11 years ago
|
||
Comment on attachment 8607479 [details]
MozReview Request: bz://1034075/Yoric
/r/9033 - Bug 1034075 - Add more details to SessionFile AsyncShutdown blocker;r=ttaubert
Pull down this commit:
hg pull -r 6796e3371c4907dde26f1bbda8f7c7672d308dce https://reviewboard-hg.mozilla.org/gecko/
Attachment #8607479 -
Flags: review?(ttaubert)
Comment 12•11 years ago
|
||
Comment on attachment 8607479 [details]
MozReview Request: bz://1034075/Yoric
https://reviewboard.mozilla.org/r/9031/#review7641
Ship It!
Attachment #8607479 -
Flags: review?(ttaubert) → review+
| Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 13•11 years ago
|
||
Keywords: checkin-needed
Comment 14•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
status-firefox41:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 41
| Assignee | ||
Comment 15•11 years ago
|
||
Attachment #8607479 -
Attachment is obsolete: true
Attachment #8618212 -
Flags: review+
| Assignee | ||
Comment 16•11 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•