Closed Bug 1680558 Opened 4 years ago Closed 4 years ago

Make the CSS tokenizer pass the whole parser state, not just the source location, to the parser

Categories

(Core :: CSS Parsing and Computation, task)

task

Tracking

()

RESOLVED FIXED
85 Branch
Tracking Status
firefox-esr78 --- fixed
firefox84 --- fixed
firefox85 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

Attachments

(3 files)

No description provided.
Attached file GitHub Pull Request (deleted) —

The changes should be trivial.

The third_party changes are up for review in
https://github.com/servo/rust-cssparser/pull/277 (and of course I'll
land with a bump to 0.28 rather than the override after that gets r+'d).

The basic idea is that with this we have the actual start offset of the
rule, so we wouldn't include html comments or other invalid stuff we
discard during sanitization in bug 1680084. But that's a separate
change.

Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/54068f044426 Update cssparser to get ParserState in rule parser. r=heycam
Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7fbd27be335d Update cssparser to get ParserState in rule parser. r=heycam

Comment on attachment 9191135 [details]
Bug 1680558 - Update cssparser to get ParserState in rule parser. r=#style

Beta/Release Uplift Approval Request

  • User impact if declined:
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): simple change to cssparser to provide more state to its consumers.
  • String changes made/needed: none

ESR Uplift Approval Request

  • If this is not a sec:{high,crit} bug, please state case for ESR consideration: blocks bug 1680084
  • User impact if declined: none
  • Fix Landed on Version: 85
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): see above
  • String or UUID changes made by this patch: none
Attachment #9191135 - Flags: approval-mozilla-esr78?
Attachment #9191135 - Flags: approval-mozilla-beta?
Attached file ESR patch (deleted) —
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 85 Branch

Comment on attachment 9191135 [details]
Bug 1680558 - Update cssparser to get ParserState in rule parser. r=#style

Approved for 84.0rc1 and 78.6esr.

Attachment #9191135 - Flags: approval-mozilla-esr78?
Attachment #9191135 - Flags: approval-mozilla-beta?
Attachment #9191135 - Flags: approval-mozilla-beta+
Attachment #9191356 - Flags: approval-mozilla-esr78+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: