Closed Bug 854880 Opened 11 years ago Closed 11 years ago

Canceling a RunnableFunction does not do anything

Categories

(Core :: IPC, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla22
blocking-b2g tef+
Tracking Status
firefox20 --- wontfix
firefox21 --- wontfix
firefox22 --- fixed
b2g18 --- fixed
b2g18-v1.0.0 --- wontfix
b2g18-v1.0.1 --- fixed

People

(Reporter: justin.lebar+bug, Assigned: justin.lebar+bug)

References

Details

Attachments

(1 file)

ipc::RunnableFunction::Cancel() is empty.  That is...not what I expected that function to do.

Patch in a moment.
Assignee: nobody → justin.lebar+bug
Attached patch Patch, v1Splinter Review
This is such a wtf, I find it hard to believe it's unintentional.  But I can't
see why one would want this behavior, and it's breaking code we have in
ContentChild that naively expects canelling a runnable will prevent it from
running.

Am I missing something, Ben?
Attachment #729506 - Flags: review?
Blocks: 852847
Attachment #729506 - Flags: review? → review?(bent.mozilla)
Comment on attachment 729506 [details] [diff] [review]
Patch, v1

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

r=me.
Attachment #729506 - Flags: review?(bent.mozilla) → review+
tef? -- This indirectly blocks a blocker.

This is actually a bit scary, since it's hard to find all the people who call Cancel() and make sure that they don't blow up if the task is not canceled.  We might be able to work around this bug on branches the blocking issue by making only this one task be canceled, but there are many costs to fragmenting our code base like that.  In particular, since m-c gets essentially zero b2g testing, checking in a branch-only change would essentially remove any b2g testing of this patch on m-c.  Then when we eventually switch back to m-c, we'll have big problems.

I would prefer to avoid that.
blocking-b2g: --- → tef?
blocking-b2g: tef? → tef+
https://hg.mozilla.org/mozilla-central/rev/f1b0e51c1b92
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla22
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: