Closed Bug 1189647 Opened 9 years ago Closed 9 years ago

Rename synchronize to unsafeSynchronize to encourage callers to think twice

Categories

(DevTools :: Debugger, defect)

defect
Not set
normal

Tracking

(firefox42 fixed)

RESOLVED FIXED
Firefox 42
Tracking Status
firefox42 --- fixed

People

(Reporter: fitzgen, Assigned: fitzgen)

Details

Attachments

(1 file, 2 obsolete files)

      No description provided.
Assignee: nobody → nfitzgerald
Status: NEW → ASSIGNED
Attachment #8641558 - Flags: review?(ttromey)
Comment on attachment 8641573 [details] [diff] [review]
Rename synchronize to unsafeSynchronize to encourage callers to think twice

Last version did not update tests that called synchronize.
Attachment #8641573 - Flags: review?(ttromey)
Comment on attachment 8641770 [details] [diff] [review]
Rename synchronize to unsafeSynchronize to encourage callers to think twice

https://treeherder.mozilla.org/#/jobs?repo=try&revision=7735f0307c90
Attachment #8641770 - Flags: review?(jsantell)
Comment on attachment 8641770 [details] [diff] [review]
Rename synchronize to unsafeSynchronize to encourage callers to think twice

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

Maybe it's obvious for those working in this area, but maybe a mention in the unsafeSynchronize function comments why this is unsafe, and the preferred/more safe way to do this, or what the exceptions are for why one should call this in the first place
Attachment #8641770 - Flags: review?(jsantell) → review+
https://hg.mozilla.org/mozilla-central/rev/d4446e517b3a
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 42
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: