Remove separate worker binding for Performance API

RESOLVED FIXED in Firefox 50

Status

()

defect
RESOLVED FIXED
3 years ago
4 months ago

People

(Reporter: baku, Assigned: baku)

Tracking

unspecified
mozilla50
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox50 fixed)

Details

(Whiteboard: btpp-active)

Attachments

(2 attachments, 1 obsolete attachment)

No description provided.
Posted 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.
Posted 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

+
+NS_IMPL_CYCLE_COLLECTION_TRACE_BEGIN_INHERITED(PerformanceMainThread,
+                                                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 amarchesini@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/6b1139b4cbf5
Remove separate worker binding for Performance API, r=smaug
https://hg.mozilla.org/integration/mozilla-inbound/rev/cc09ba8c5e5f
move workers/performance tests in dom/performance/tests, r=smaug
https://hg.mozilla.org/mozilla-central/rev/6b1139b4cbf5
https://hg.mozilla.org/mozilla-central/rev/cc09ba8c5e5f
Status: NEW → RESOLVED
Closed: 3 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.