Closed
Bug 585129
Opened 14 years ago
Closed 14 years ago
mIsActive should be propagated to resource document presshells
Categories
(Core :: Layout, defect)
Core
Layout
Tracking
()
RESOLVED
FIXED
mozilla2.0b8
Tracking | Status | |
---|---|---|
blocking2.0 | --- | betaN+ |
People
(Reporter: bholley, Assigned: dholbert)
Details
Attachments
(1 file, 2 obsolete files)
2.39 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
In bug 343515 (landed), we don't propagate mIsActive to resource document presshells. This is a problem, because it means that resource documents will default to active and hold locks on all of their images once bug 512260 lands.
bz pointed this out in bug 512260 comment 13.
I can't tell how important this is, because I'm not sure how common it is to have a lot of images in resource documents. Nominating for blocking, hoping that the driver will know.
Reporter | ||
Updated•14 years ago
|
blocking2.0: --- → ?
I don't think this is a huge deal given the current content on the Web, but it's pretty important to stuff that we want to promote (e.g., I could certainly see SVG filters pointing to images via svg:image elements, which I presume are relevant here), and it seems like it should be pretty straightforward to fix, so I'm inclined to go for blocking here. That said, if it's not straightforward to fix, I'd reconsider.
blocking2.0: ? → betaN+
Reporter | ||
Comment 2•14 years ago
|
||
(In reply to comment #1)
> I don't think this is a huge deal given the current content on the Web, but
> it's pretty important to stuff that we want to promote (e.g., I could certainly
> see SVG filters pointing to images via svg:image elements, which I presume are
> relevant here), and it seems like it should be pretty straightforward to fix,
> so I'm inclined to go for blocking here. That said, if it's not
> straightforward to fix, I'd reconsider.
Sounds good. I'll put this at the bottom of my blocker list for now, since if things get tight it would be better for me to spend time on my imagelib blockers and have someone with more content/layout fu do this. But I think I should be able to get to it.
Reporter | ||
Comment 3•14 years ago
|
||
I don't have the cycles to learn the relevant code to fix this. Resetting assignee to default.
It should be very straightforward for someone who knows how resource documents interact with their parents. Given that we're also using mIsActive for other things now (invalidation suppression, animation control), I think it'd be a good idea to fix this for ff4. Maybe dholbert can do it?
Assignee: bobbyholley+bmo → nobody
Assignee | ||
Comment 4•14 years ago
|
||
(In reply to comment #3)
> Maybe dholbert can do it?
Hopefully in the betaN timeframe. (can't think about it too much right now because I'm focusing on SVG-as-image followups.)
Assignee | ||
Updated•14 years ago
|
Version: unspecified → Trunk
Assignee: nobody → dholbert
Assignee | ||
Comment 5•14 years ago
|
||
bz, is this what you had in mind?
FWIW, I'm running this through TryServer right now as a sanity-check, and it's already passed all tests on Linux Opt.
Attachment #488322 -
Flags: review?(bzbarsky)
Comment 6•14 years ago
|
||
Comment on attachment 488322 [details] [diff] [review]
fix v1
Hmm. This looks ok, but we need to fix QueryIsActive too, to work for resource docs, right? I'd assume those have a null container on the prescontext....
Assignee | ||
Comment 7•14 years ago
|
||
Ok -- this version tweaks QueryIsActive to check the display document's container / docshell, for external resource documents.
> I'd assume those have a null container on the prescontext....
Patch includes a NS_ABORT_IF_FALSE to explicitly state this assumption.
Passed crashtests & SVG reftests locally. Running through try-server for sanity-check, & then will request review.
Attachment #488322 -
Attachment is obsolete: true
Attachment #488322 -
Flags: review?(bzbarsky)
Comment 8•14 years ago
|
||
Yeah, that looks good. I'd s/Ext/External/g, though.
Assignee | ||
Comment 9•14 years ago
|
||
Attachment #488575 -
Attachment is obsolete: true
Attachment #488712 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 10•14 years ago
|
||
(Comment 7 passed tests on TryServer btw)
Comment 11•14 years ago
|
||
Comment on attachment 488712 [details] [diff] [review]
fix v3, with s/ext/external/g
r=me
Attachment #488712 -
Flags: review?(bzbarsky) → review+
Assignee | ||
Comment 12•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b8
Updated•6 years ago
|
Product: Core → Core Graveyard
Updated•6 years ago
|
Component: Layout: Misc Code → Layout
Product: Core Graveyard → Core
You need to log in
before you can comment on or make changes to this bug.
Description
•