Closed Bug 1502686 Opened 6 years ago Closed 6 years ago

Race condition when enabling Fuzzyfox

Categories

(Core :: DOM: Security, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
mozilla65
Tracking Status
firefox65 --- fixed

People

(Reporter: tjr, Assigned: tjr)

References

Details

(Whiteboard: [domsecurity-active])

Attachments

(1 file, 2 obsolete files)

When enabling fuzzyfox, if the JS Engine gets the current time before Fuzzyfox has run for the first time, we will return a completely old timestamp and are likely to cause a crash.
Status: NEW → ASSIGNED
Priority: -- → P2
Whiteboard: [domsecurity-active]
Comment on attachment 9022204 [details] [diff] [review]
Bug 1502686 - When fuzzyfox is enabled, first put it into an initializing state before telling TimeStamp is it enabled r?baku

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

::: toolkit/components/fuzzyfox/Fuzzyfox.cpp
@@ +236,5 @@
>    mStartTime = ActualTime();
>    mDuration = PickDuration();
>  
> +  LOG(Verbose, ("[FuzzyfoxEvent] PT(%p) For next time mDuration: %" PRIu32 " mStartTime: %" PRIu64 " \n",
> +         this, mDuration, mStartTime));

indentation here.
Attachment #9022204 - Flags: review?(amarchesini) → review+
Pushed by nerli@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/582dbb4c3bf5
When fuzzyfox is enabled, first put it into an initializing state before telling TimeStamp is it enabled r=baku
Keywords: checkin-needed
Carry forward r+

Patch adds a i != 0 condition to not crash gtest.  Sorry!
Attachment #9022214 - Attachment is obsolete: true
Flags: needinfo?(tom)
Attachment #9022275 - Flags: review+
Okay, got a try run that seems pretty good, a few failures that seem to be existing intermittents.
Keywords: checkin-needed
Pushed by csabou@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/79fe86c6047b
When fuzzyfox is enabled, first put it into an initializing state before telling TimeStamp is it enabled r=baku
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/79fe86c6047b
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: