Closed Bug 1235457 Opened 8 years ago Closed 8 years ago

Create ThreadSafeDevToolsUtils for the utilities that can be used in workers

Categories

(DevTools :: General, defect)

defect
Not set
normal

Tracking

(firefox46 fixed)

RESOLVED FIXED
Firefox 46
Tracking Status
firefox46 --- fixed

People

(Reporter: fitzgen, Assigned: fitzgen)

References

Details

Attachments

(1 file, 1 obsolete file)

This commit adds the ThreadSafeDevToolsUtils module for utilities that are
guaranteed to work off the main thread. It also makes DevToolsUtils re-export
the thread-safe utilities. This is similar to ChromeUtils and
ThreadSafeChromeUtils webidl interfaces.
Assignee: nobody → nfitzgerald
Status: NEW → ASSIGNED
Motivation behind this is that I want to start using immutableUpdate inside devtools/shared/heapsnapshot/* so it has to go into devtools/shared/* (it is currently in devtools/client/memory) and the logical place to put it is DevToolsUtils however that has a bunch of stuff that doesn't work off-main-thread.
Comment on attachment 8702400 [details] [diff] [review]
Create ThreadSafeDevToolsUtils for the utilities that can be used in workers

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

I was going to express some concerns of the naming and separation (where any pure function would have to be imported via ThreadSafe[...]), but then saw that we also export the thread safe utils in normal DevToolsUtils which put at ease any concerns I had.

Should mention this at the next meeting so others know it's aware -- we should have some tests for these at some point..
Attachment #8702400 - Flags: review?(jsantell) → review+
Attachment #8702400 - Attachment is obsolete: true
https://hg.mozilla.org/mozilla-central/rev/63227efdffef
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 46
[bugday-20160323]

Status: RESOLVED,FIXED -> UNVERIFIED

Comments:
STR: Not clear.
Developer specific testing

Component: 
Name			Firefox
Version			46.0b9
Build ID		20160322075646
Update Channel	beta
User Agent		Mozilla/5.0 (Windows NT 6.1; WOW64; rv:46.0) Gecko/20100101 Firefox/46.0
OS				Windows 7 SP1 x86_64

Expected Results: 
Developer specific testing

Actual Results: 
As expected
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: