Closed Bug 1278838 Opened 5 years ago Closed 5 years ago

Remove separate worker binding for Performance API


(Core :: DOM: Core & HTML, defect)

Not set



Tracking Status
firefox50 --- fixed


(Reporter: baku, Assigned: baku)



(Whiteboard: btpp-active)


(2 files, 1 obsolete file)

No description provided.
Attached patch part 1 - code (obsolete) — Splinter Review
We want to get rid of the 'separate' binding system for workers. Here is the unification of the Performance API for main-thread and workers. The idea is that we have 1 single Performance implementation, shared for main-thread and workers.

Then, We have 2 separate implementations for the worker and main-thread methods in 2 different classes: PerformanceMainThread and PerformanceWorker.

I didn't touch any existing logic. I just moved code around, mainly.
Assignee: nobody → amarchesini
Attachment #8761260 - Flags: review?(bugs)
Attachment #8761260 - Attachment description: performance5.patch → part 1 - code
Attachment #8761273 - Flags: review?(bugs) → review+
Whiteboard: btpp-active
uh, this is hard to review. Trying...
Comment on attachment 8761260 [details] [diff] [review]
part 1 - code

So here I'd really like to see some hg moves or copies.
At least for worker Performance to PerformanceWorker.
Maybe something similar could be done for the main thread case too?
Attachment #8761260 - Flags: review?(bugs) → review-
sorry being difficult with this review, but the patch is quite large and with some hg usage, it should become easier to review and blame would look right.
Attached patch part 1 - codeSplinter Review
Attachment #8761260 - Attachment is obsolete: true
Attachment #8761478 - Flags: review?(bugs)
The hg copy/mv usage for worker part made reviewing a lot easier. 
I guess I'll cope with the *MainThread
Comment on attachment 8761478 [details] [diff] [review]
part 1 - code

+                                                Performance)
extra space before Performance.

This would have been a lot faster to review if *MainThread stuff had used hg cp/mv. Now I had to compare each line manually.
Just tiny bit nagging ;)
Attachment #8761478 - Flags: review?(bugs) → review+
Pushed by
Remove separate worker binding for Performance API, r=smaug
move workers/performance tests in dom/performance/tests, r=smaug
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla50
Depends on: 1326508
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.