Closed
Bug 460664
Opened 16 years ago
Closed 16 years ago
[FIX]fix for bug 395623 didn't change inheritance when all properties in struct are 'inherit'
Categories
(Core :: CSS Parsing and Computation, defect)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
People
(Reporter: dbaron, Assigned: bzbarsky)
References
Details
(Keywords: verified1.9.0.5, Whiteboard: [sg:critical?])
Attachments
(1 file, 1 obsolete file)
6.41 KB,
patch
|
dveditz
:
approval1.9.0.5+
|
Details | Diff | Splinter Review |
Bug 395623 attempted to change what we inherit from for 'property:inherit' when property is a non-inherited property. However, testcases written during the CSS meeting (using background:inherit vs. background-color: inherit) showed that this behavior change doesn't work when all of the properties in a struct are explicitly 'inherit'. This may be a security bug, given that bug 395623 was.
Assignee | ||
Comment 1•16 years ago
|
||
Ugh. Right. That's what the assert right there is all about...
Assignee | ||
Comment 2•16 years ago
|
||
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
Attachment #343832 -
Flags: superreview?(dbaron)
Attachment #343832 -
Flags: review?(dbaron)
Assignee | ||
Updated•16 years ago
|
Summary: fix for bug 395623 didn't change inheritance when all properties in struct are 'inherit' → [FIx]fix for bug 395623 didn't change inheritance when all properties in struct are 'inherit'
Assignee | ||
Updated•16 years ago
|
Summary: [FIx]fix for bug 395623 didn't change inheritance when all properties in struct are 'inherit' → [FIX]fix for bug 395623 didn't change inheritance when all properties in struct are 'inherit'
Reporter | ||
Comment 3•16 years ago
|
||
Comment on attachment 343832 [details] [diff] [review]
Fix
r+sr=dbaron
Please also add tests for the case where we're looking at the first line of
<div><p>this paragraph</p></div>
where there is both a div:first-line and a p:first-line rule. The spec says the pseudo-markup for that case should involve nesting <div:first-line><p:first-line>. I don't think we do that now, but your current code will be insufficient for that when we do (since it would cause inheriting from the div::first-line). (For both cases, the original one and the one this bug fixes.)
You might also want to add a comment at both places where we have this code pointing to the other place.
Attachment #343832 -
Flags: superreview?(dbaron)
Attachment #343832 -
Flags: superreview+
Attachment #343832 -
Flags: review?(dbaron)
Attachment #343832 -
Flags: review+
Assignee | ||
Comment 4•16 years ago
|
||
Added that test, and changed the adjustment code (in both places) to be:
while (parentContext &&
parentContext->GetPseudoType() == nsCSSPseudoElements::firstLine) {
parentContext = parentContext->GetParent();
}
to be more future-proof.
Pushed as changeset a407bdae5ea8.
Assignee | ||
Comment 5•16 years ago
|
||
Attachment #343832 -
Attachment is obsolete: true
Assignee | ||
Updated•16 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Assignee | ||
Comment 6•16 years ago
|
||
Comment on attachment 343922 [details] [diff] [review]
Patch as pushed
Probably good to fix this on branch too.
Attachment #343922 -
Flags: approval1.9.0.4?
Assignee | ||
Comment 7•16 years ago
|
||
Had to add a "background: green" to the <p> in the new test as well.
Comment 8•16 years ago
|
||
Comment on attachment 343922 [details] [diff] [review]
Patch as pushed
Won't have enough time for trunk testing first for this cycle, we'll catch it next time.
Attachment #343922 -
Flags: approval1.9.0.4? → approval1.9.0.5?
Updated•16 years ago
|
Attachment #343922 -
Flags: approval1.9.0.5? → approval1.9.0.5+
Comment 9•16 years ago
|
||
Comment on attachment 343922 [details] [diff] [review]
Patch as pushed
approved for 1.9.0.5, a=dveditz for release-drivers
(please watch tinderbox for the tree to open before landing)
Updated•16 years ago
|
Whiteboard: [sg:critical?]
Comment 10•16 years ago
|
||
Assuming that this doesn't apply to the 1.8 branch, like bug 395623
Flags: wanted1.8.1.x-
Assignee | ||
Comment 11•16 years ago
|
||
That's correct. This doesn't apply to 1.8.
Comment 13•16 years ago
|
||
Verified for 1.9.0.5 with Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5pre) Gecko/2008120105 GranParadiso/3.0.5pre using the reftest (http://mxr.mozilla.org/mozilla/source/layout/reftests/first-line/parent-style-2.html?ctype=text/html&raw=1).
Keywords: fixed1.9.0.5 → verified1.9.0.5
Updated•16 years ago
|
Flags: wanted1.8.0.x-
Updated•15 years ago
|
Group: core-security
Reporter | ||
Updated•8 years ago
|
Blocks: CVE-2008-5501
You need to log in
before you can comment on or make changes to this bug.
Description
•