Closed
Bug 1442039
Opened 7 years ago
Closed 7 years ago
Mostly remove nsDOMClassInfo
Categories
(Core :: DOM: Core & HTML, enhancement, P2)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla61
Tracking | Status | |
---|---|---|
firefox61 | --- | fixed |
People
(Reporter: bzbarsky, Assigned: bzbarsky)
References
Details
Attachments
(15 files)
6.45 KB,
patch
|
peterv
:
review+
|
Details | Diff | Splinter Review |
6.90 KB,
patch
|
peterv
:
review+
|
Details | Diff | Splinter Review |
2.75 KB,
patch
|
peterv
:
review+
|
Details | Diff | Splinter Review |
12.66 KB,
patch
|
peterv
:
review+
|
Details | Diff | Splinter Review |
18.71 KB,
patch
|
peterv
:
review+
|
Details | Diff | Splinter Review |
7.99 KB,
patch
|
peterv
:
review+
|
Details | Diff | Splinter Review |
2.99 KB,
patch
|
peterv
:
review+
|
Details | Diff | Splinter Review |
3.83 KB,
patch
|
peterv
:
review+
|
Details | Diff | Splinter Review |
3.38 KB,
patch
|
peterv
:
review+
|
Details | Diff | Splinter Review |
2.80 KB,
patch
|
peterv
:
review+
|
Details | Diff | Splinter Review |
12.06 KB,
patch
|
peterv
:
review+
|
Details | Diff | Splinter Review |
9.99 KB,
patch
|
peterv
:
review+
|
Details | Diff | Splinter Review |
5.75 KB,
patch
|
peterv
:
review+
|
Details | Diff | Splinter Review |
12.79 KB,
patch
|
peterv
:
review+
|
Details | Diff | Splinter Review |
1.70 KB,
patch
|
peterv
:
review+
|
Details | Diff | Splinter Review |
Now that bug 888600 has landed, we can do this.
Assignee | ||
Updated•7 years ago
|
Summary: Remove DOMClassInfo → Remove nsDOMClassInfo
Assignee | ||
Updated•7 years ago
|
Summary: Remove nsDOMClassInfo → Mostly remove nsDOMClassInfo
Assignee | ||
Comment 1•7 years ago
|
||
The only caller is nsDOMClassInfo::RegisterClassProtos. The only caller of
that is nsDOMClassInfo::Init. In nsDOMClassInfo::Init this is called after we
have done the RegisterClassName call for "DOMConstructor".
Since the only bits of classinfo left are DOMConstructor and DOMPrototype, and
both use nsIDOMDOMConstructor as their interface, we call RegisterClassProto
with "DOMConstructor" as aClassName, find the existing nsGlobalNameStruct, and
return without doing anything. So this entire codepath can be removed.
MozReview-Commit-ID: JfXmIex7tLC
Attachment #8955240 -
Flags: review?(peterv)
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•7 years ago
|
||
MozReview-Commit-ID: H65oe2v7Gxt
Attachment #8955241 -
Flags: review?(peterv)
Assignee | ||
Comment 3•7 years ago
|
||
We don't resolve it normally, because nsDOMConstructorSH overrides
PostCreatePrototype to be a no-op, so nsWindowSH::GlobalResolve never actually
defines the relevant property on the window. We also hide it in
nsWindowSH::NameStructEnabled. But in the Xray-to-window case we attempt to
define it. We shouldn't do that.
MozReview-Commit-ID: 3tnMnSQuvuT
Attachment #8955242 -
Flags: review?(peterv)
Assignee | ||
Comment 4•7 years ago
|
||
We only have classinfo left for DOMConstructor and DOMPrototype, both of which
use nsDOMConstructorSH, which overrides PostCreatePrototype.
To avoid -Werror build failures, this changeset also removes static functions
that were only reachable from PostCreatePrototype.
MozReview-Commit-ID: JpJOuMHAAuo
Attachment #8955243 -
Flags: review?(peterv)
Assignee | ||
Comment 5•7 years ago
|
||
The only caller of nsDOMConstructor::nsDOMConstructor is
nsDOMConstructor::Create which has no callers.
Also removes the now-unused nsDOMConstructorSH class.
MozReview-Commit-ID: GgOO8ugXFKb
Attachment #8955244 -
Flags: review?(peterv)
Assignee | ||
Comment 6•7 years ago
|
||
Also removes various code that stops compiling this way and static functions
that are now unused.
MozReview-Commit-ID: KHYxly2c3Id
Attachment #8955246 -
Flags: review?(peterv)
Assignee | ||
Comment 7•7 years ago
|
||
MozReview-Commit-ID: 9mpz8o29WGp
Attachment #8955247 -
Flags: review?(peterv)
Assignee | ||
Comment 8•7 years ago
|
||
GetXPCProto is now static and not called, so needs to go too.
MozReview-Commit-ID: I6DilDx2e2m
Attachment #8955248 -
Flags: review?(peterv)
Assignee | ||
Comment 9•7 years ago
|
||
MozReview-Commit-ID: 5JpNuBq5RUg
Attachment #8955249 -
Flags: review?(peterv)
Assignee | ||
Comment 10•7 years ago
|
||
MozReview-Commit-ID: WocCkriliI
Attachment #8955250 -
Flags: review?(peterv)
Assignee | ||
Comment 11•7 years ago
|
||
MozReview-Commit-ID: 7J8hsPuYtPa
Attachment #8955251 -
Flags: review?(peterv)
Assignee | ||
Comment 12•7 years ago
|
||
MozReview-Commit-ID: Imt658SuM9w
Attachment #8955252 -
Flags: review?(peterv)
Assignee | ||
Comment 13•7 years ago
|
||
MozReview-Commit-ID: 9lawfsdyyZq
Attachment #8955253 -
Flags: review?(peterv)
Assignee | ||
Comment 14•7 years ago
|
||
MozReview-Commit-ID: 6pZs1XI1oSd
Attachment #8955254 -
Flags: review?(peterv)
Assignee | ||
Comment 15•7 years ago
|
||
MozReview-Commit-ID: KmIhVN7TeNN
Attachment #8955255 -
Flags: review?(peterv)
Updated•7 years ago
|
Priority: -- → P2
Updated•7 years ago
|
Attachment #8955240 -
Flags: review?(peterv) → review+
Updated•7 years ago
|
Attachment #8955241 -
Flags: review?(peterv) → review+
Updated•7 years ago
|
Attachment #8955242 -
Flags: review?(peterv) → review+
Updated•7 years ago
|
Attachment #8955243 -
Flags: review?(peterv) → review+
Updated•7 years ago
|
Attachment #8955244 -
Flags: review?(peterv) → review+
Updated•7 years ago
|
Attachment #8955246 -
Flags: review?(peterv) → review+
Updated•7 years ago
|
Attachment #8955247 -
Flags: review?(peterv) → review+
Updated•7 years ago
|
Attachment #8955248 -
Flags: review?(peterv) → review+
Updated•7 years ago
|
Attachment #8955249 -
Flags: review?(peterv) → review+
Updated•7 years ago
|
Attachment #8955250 -
Flags: review?(peterv) → review+
Updated•7 years ago
|
Attachment #8955251 -
Flags: review?(peterv) → review+
Updated•7 years ago
|
Attachment #8955252 -
Flags: review?(peterv) → review+
Updated•7 years ago
|
Attachment #8955253 -
Flags: review?(peterv) → review+
Updated•7 years ago
|
Attachment #8955254 -
Flags: review?(peterv) → review+
Updated•7 years ago
|
Attachment #8955255 -
Flags: review?(peterv) → review+
Comment 16•7 years ago
|
||
Pushed by bzbarsky@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/5900a3a5a232
part 1. Remove the now-useless nsScriptNameSpaceManager::RegisterClassProto function. r=peterv
https://hg.mozilla.org/integration/mozilla-inbound/rev/e75da32a2992
part 2. Remove the now-unused eTypeClassProto type for nsGlobalNameStruct. r=peterv
https://hg.mozilla.org/integration/mozilla-inbound/rev/20d2f8bbd902
part 3. Stop trying to resolve DOMConstructor on Xrays. r=peterv
https://hg.mozilla.org/integration/mozilla-inbound/rev/6f4d03bae224
part 4. Remove the dead code in nsDOMClassInfo::PostCreatePrototype. r=peterv
https://hg.mozilla.org/integration/mozilla-inbound/rev/96295638ca8e
part 5. Remove the now-dead nsDOMConstructor class. r=peterv
https://hg.mozilla.org/integration/mozilla-inbound/rev/b4492fdf4a10
part 6. Remove now-unused classinfo bits for DOMConstructor and DOMPrototype. r=peterv
https://hg.mozilla.org/integration/mozilla-inbound/rev/9a44d04d09bf
part 7. Remove now-unused nsScriptNameSpaceManager::RegisterClassName. r=peterv
https://hg.mozilla.org/integration/mozilla-inbound/rev/316552bee730
part 8. Remove now-unused eTypeClassConstructor type of nsGlobalNameStruct. r=peterv
https://hg.mozilla.org/integration/mozilla-inbound/rev/1a8c0603d612
part 9. Remove now-unused NS_GetDOMClassInfoInstance. r=peterv
https://hg.mozilla.org/integration/mozilla-inbound/rev/58c5cfca84ff
part 10. Remove now-unused nsEventTargetSH. r=peterv
https://hg.mozilla.org/integration/mozilla-inbound/rev/e609ee0164b0
part 11. Remove all the non-static bits from nsDOMClassInfo. r=peterv
https://hg.mozilla.org/integration/mozilla-inbound/rev/a9a5c2206177
part 12. Remove various unused static stuff from nsDOMClassInfo. r=peterv
https://hg.mozilla.org/integration/mozilla-inbound/rev/4a94ee5c9105
part 13. Remove the now-pointless nsWindowSH::NameStructEnabled. r=peterv
https://hg.mozilla.org/integration/mozilla-inbound/rev/b68c19a47cab
part 14. Remove nsDOMClassInfoID.h. r=peterv
https://hg.mozilla.org/integration/mozilla-inbound/rev/9624e53b439e
part 15. Remove nsIDOMDOMConstructor. r=petev
Comment 17•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/5900a3a5a232
https://hg.mozilla.org/mozilla-central/rev/e75da32a2992
https://hg.mozilla.org/mozilla-central/rev/20d2f8bbd902
https://hg.mozilla.org/mozilla-central/rev/6f4d03bae224
https://hg.mozilla.org/mozilla-central/rev/96295638ca8e
https://hg.mozilla.org/mozilla-central/rev/b4492fdf4a10
https://hg.mozilla.org/mozilla-central/rev/9a44d04d09bf
https://hg.mozilla.org/mozilla-central/rev/316552bee730
https://hg.mozilla.org/mozilla-central/rev/1a8c0603d612
https://hg.mozilla.org/mozilla-central/rev/58c5cfca84ff
https://hg.mozilla.org/mozilla-central/rev/e609ee0164b0
https://hg.mozilla.org/mozilla-central/rev/a9a5c2206177
https://hg.mozilla.org/mozilla-central/rev/4a94ee5c9105
https://hg.mozilla.org/mozilla-central/rev/b68c19a47cab
https://hg.mozilla.org/mozilla-central/rev/9624e53b439e
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox61:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•