Closed Bug 1257037 Opened 8 years ago Closed 8 years ago

Eliminate worker descriptors

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla50
Tracking Status
firefox50 --- fixed

People

(Reporter: khuey, Assigned: bzbarsky)

References

(Blocks 1 open bug)

Details

(Whiteboard: btpp-meta)

Attachments

(15 files)

2.33 KB, patch
khuey
: review+
Details | Diff | Splinter Review
8.67 KB, patch
khuey
: review+
Details | Diff | Splinter Review
5.85 KB, patch
khuey
: review+
Details | Diff | Splinter Review
2.73 KB, patch
khuey
: review+
Details | Diff | Splinter Review
5.43 KB, patch
khuey
: review+
Details | Diff | Splinter Review
1.05 KB, patch
khuey
: review+
Details | Diff | Splinter Review
2.78 KB, patch
khuey
: review+
Details | Diff | Splinter Review
10.18 KB, patch
khuey
: review+
Details | Diff | Splinter Review
20.87 KB, patch
khuey
: review+
Details | Diff | Splinter Review
8.95 KB, patch
khuey
: review+
Details | Diff | Splinter Review
20.60 KB, patch
khuey
: review+
Details | Diff | Splinter Review
4.64 KB, patch
khuey
: review+
Details | Diff | Splinter Review
18.22 KB, patch
khuey
: review+
Details | Diff | Splinter Review
11.28 KB, patch
khuey
: review+
Details | Diff | Splinter Review
2.58 KB, patch
khuey
: review+
Details | Diff | Splinter Review
I think we should just aim to remove these.  For the handful of cases where we do have separate implementations we can introduce an abstract interface of some sort for the bindings to latch onto.
Depends on: 1257401
Whiteboard: btpp-meta
Depends on: 1278838
Depends on: 1279453
They're all gone now!  Boris, do you want to remove the cruft in Codegen.py?

(ni?me to ni?you later, sigh)
Flags: needinfo?(khuey)
Flags: needinfo?(khuey) → needinfo?(bzbarsky)
Blocks: 809899
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
Flags: needinfo?(bzbarsky)
Attachment #8768911 - Flags: review?(khuey) → review+
Attachment #8768912 - Flags: review?(khuey) → review+
Attachment #8768913 - Flags: review?(khuey) → review+
Comment on attachment 8768914 [details] [diff] [review]
part 4.  Remove the worker-only XXX comments from CGWrapGlobalMethod, since we never have worker descriptors for globals anyway

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

::: dom/bindings/Codegen.py
@@ -3805,5 @@
> -            fireOnNewGlobal = """// XXXkhuey can't do this yet until workers can lazy resolve.
> -// JS_FireOnNewGlobalObject(aCx, aReflector);
> -"""
> -        else:
> -            fireOnNewGlobal = ""

Hmm, I guess this moved somewhere else at some point.
Attachment #8768914 - Flags: review?(khuey) → review+
Attachment #8768915 - Flags: review?(khuey) → review+
Attachment #8768916 - Flags: review?(khuey) → review+
Attachment #8768917 - Flags: review?(khuey) → review+
Attachment #8768920 - Flags: review?(khuey) → review+
Attachment #8768921 - Flags: review?(khuey) → review+
Attachment #8768922 - Flags: review?(khuey) → review+
Attachment #8768923 - Flags: review?(khuey) → review+
Attachment #8768924 - Flags: review?(khuey) → review+
Attachment #8768925 - Flags: review?(khuey) → review+
Attachment #8768926 - Flags: review?(khuey) → review+
Attachment #8768927 - Flags: review?(khuey) → review+
Pushed by bzbarsky@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/f2e423fbd09c
part 1.  Remove the worker-descriptor-related complexity in getControllingCondition, since workerDesc.workers never tests true anymore.  r=khuey
https://hg.mozilla.org/integration/mozilla-inbound/rev/0383f585a64f
part 2.  Remove isMaybeExposedIn, since it always returns true now.  r=khuey
https://hg.mozilla.org/integration/mozilla-inbound/rev/1d6e808cafc5
part 3.  Remove filteredSignatures, since it's a no-op unless we're dealing with a worker descriptor.  r=khuey
https://hg.mozilla.org/integration/mozilla-inbound/rev/5efc76268adf
part 4.  Remove the worker-only XXX comments from CGWrapGlobalMethod, since we never have worker descriptors for globals anyway.  r=khuey
https://hg.mozilla.org/integration/mozilla-inbound/rev/bd7880a96636
part 5.  Remove remaining checks for worker descriptors from Codegen.py.  r=khuey
https://hg.mozilla.org/integration/mozilla-inbound/rev/64424f160c3a
part 6.  Simplify the toBindingNamespace function now that there are no worker bindings.  r=khuey
https://hg.mozilla.org/integration/mozilla-inbound/rev/2de33eb0bb32
part 7.  Make the binding Configuration a non-workers DescriptorProvider.  r=khuey
https://hg.mozilla.org/integration/mozilla-inbound/rev/4c5ea0b7a3d1
part 8.  Remove Configuration.getDescriptorProvider.  r=khuey
https://hg.mozilla.org/integration/mozilla-inbound/rev/4565bfc8b866
part 9.  Get rid of the concept of mainthread callbacks or worker callbacks; just codegen all the callbacks.  r=khuey
https://hg.mozilla.org/integration/mozilla-inbound/rev/dfa4d5a42b52
part 10.  Store only one descriptor per interface name in the configuration.  r=khuey
https://hg.mozilla.org/integration/mozilla-inbound/rev/7b7cf5270426
part 11.  Get rid of getRelevantProviders, since all the places that use it have a Configuration.  r=khuey
https://hg.mozilla.org/integration/mozilla-inbound/rev/5014c7d22f2f
part 12.  Simplify CGRegisterWorkerBindings now that there are no more worker descriptors. r=khuey
https://hg.mozilla.org/integration/mozilla-inbound/rev/762c289ada58
part 13.  Get rid of the concept of worker vs non-worker descriptors.  r=khuey
https://hg.mozilla.org/integration/mozilla-inbound/rev/4082fdfd16fb
part 14.  Remove the now-unused skipGen bits from binding code.  r=khuey
https://hg.mozilla.org/integration/mozilla-inbound/rev/a92d0eec5c91
part 15.  Get rid of the wantsXrays configuration annotation.  Just set bindings to want Xrays if they're exposed in Window.  r=khuey
Updated MDN to remove the one mention of worker descriptors on the webidl bindings page (for Throws/GetterThrows/SetterThrows).
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: