Closed
Bug 871578
Opened 12 years ago
Closed 12 years ago
don't include AccessCheck.h or nsContentUtils.h in bindings unless necessary
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla24
People
(Reporter: froydnj, Unassigned)
Details
Attachments
(2 files, 3 obsolete files)
3.15 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
6.21 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
No description provided.
![]() |
Reporter | |
Comment 1•12 years ago
|
||
I don't particularly like the gory condition that's required to determine
this, but it's what CGClassHasInstanceHook and CGAddPropertyHook are
conditioned on. I guess we could add slightly nicer predicate functions...
Attachment #748845 -
Flags: review?(bzbarsky)
![]() |
Reporter | |
Comment 2•12 years ago
|
||
This is a little nicer, but possibly not as much of a win, because we need to
include WrapperFactory.h for what looks like a fair amount of stuff.
On the plus side, it looks like AccessCheck.h doesn't need to include
WrapperFactory.h anymore, so maybe we can fix that up in another bug.
I think this patch will become substantially simpler with bug 869195
applied, so if you want to wait for that bug to land and have the patch
redone based on that, that'd be fine too.
Attachment #748848 -
Flags: review?(bzbarsky)
![]() |
||
Comment 3•12 years ago
|
||
Comment on attachment 748845 [details] [diff] [review]
don't include nsContentUtils.h in bindings unless necessary
Please add a comment explaining why the things that condition is checking are the ones that need nsContentUtils.
r=me
Attachment #748845 -
Flags: review?(bzbarsky) → review+
![]() |
||
Comment 4•12 years ago
|
||
Comment on attachment 748848 [details] [diff] [review]
don't include AccessCheck.h in bindings unless necessary
Please do this on top of bug 869195, yes. That way we can land the same thing on trunk and branch for that bug....
Attachment #748848 -
Flags: review?(bzbarsky) → review-
![]() |
||
Comment 5•12 years ago
|
||
That's landed now if you want to rebase....
![]() |
Reporter | |
Comment 6•12 years ago
|
||
Rebased on bug 869195. I suppose the requiresQueryInterfaceMethod change
isn't strictly needed now, but I kept it in just because.
Attachment #748848 -
Attachment is obsolete: true
Attachment #751035 -
Flags: review?(bzbarsky)
![]() |
||
Comment 7•12 years ago
|
||
Comment on attachment 751035 [details] [diff] [review]
don't include AccessCheck.h in bindings unless necessary
This stopped calling allAncestorsAbstract, so presumably doesn't pass tests...
Attachment #751035 -
Flags: review?(bzbarsky) → review-
![]() |
Reporter | |
Comment 8•12 years ago
|
||
Doh, how about this instead?
Attachment #751035 -
Attachment is obsolete: true
Attachment #751045 -
Flags: review?(bzbarsky)
![]() |
||
Comment 9•12 years ago
|
||
Comment on attachment 751045 [details] [diff] [review]
don't include AccessCheck.h in bindings unless necessary
> + return (not descriptor.interface.parent and
No. You do not want this part. Please compare your new condition to the old one!
Attachment #751045 -
Flags: review?(bzbarsky) → review-
![]() |
Reporter | |
Comment 10•12 years ago
|
||
Gah, I suck. Sorry about that. Third time's the charm?
Attachment #751045 -
Attachment is obsolete: true
Attachment #751068 -
Flags: review?(bzbarsky)
![]() |
||
Comment 11•12 years ago
|
||
Comment on attachment 751068 [details] [diff] [review]
don't include AccessCheck.h in bindings unless necessary
r=me. Good. ;)
Attachment #751068 -
Flags: review?(bzbarsky) → review+
Comment 12•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/1f6740440eaa
https://hg.mozilla.org/mozilla-central/rev/ae494c31aab2
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
Assignee | ||
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
•