Closed Bug 930020 Opened 11 years ago Closed 11 years ago

Allow CSS pseudo-elements to be hidden from content

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla28

People

(Reporter: jwatt, Assigned: heycam)

References

Details

(Whiteboard: [qa-])

Attachments

(2 files)

I need to allow CSS pseudo-elements to be hidden from content in order to fix bug 930010. That should be a case of adding an mUnsafeRulesEnabled check to CSSParserImpl::ParsePseudoSelector.
Assignee: jwatt → cam
Status: NEW → ASSIGNED
Attachment #8339663 - Flags: review?(bzbarsky)
Comment on attachment 8339663 [details] [diff] [review]
Part 1: Add a flag to pseudo-elements to say whether they are exposed to content.

>+    return PseudoElementIsChromeOnly(aType, CSS_PSEUDO_ELEMENT_IS_CHROME_ONLY);

That should be calling PseudoElementHasFlags, right?  Did this compile?

r=me with that fixed.
Attachment #8339663 - Flags: review?(bzbarsky) → review+
Comment on attachment 8339665 [details] [diff] [review]
Part 2: Use flag to hide <input type=number> pseudo-elements from content.

r=me
Attachment #8339665 - Flags: review?(bzbarsky) → review+
(In reply to Boris Zbarsky [:bz] from comment #3)
> >+    return PseudoElementIsChromeOnly(aType, CSS_PSEUDO_ELEMENT_IS_CHROME_ONLY);
> 
> That should be calling PseudoElementHasFlags, right?  Did this compile?

Yeah, had it fixed locally, thanks.
https://hg.mozilla.org/mozilla-central/rev/bb48b3653117
https://hg.mozilla.org/mozilla-central/rev/f01c4abf8581
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Whiteboard: [qa-]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: