Closed Bug 1735574 Opened 3 years ago Closed 3 years ago

Clean up a bit meta element handling

Categories

(Core :: DOM: Core & HTML, task)

task

Tracking

()

RESOLVED FIXED

People

(Reporter: emilio, Assigned: emilio)

Details

Attachments

(2 files)

No description provided.

This shouldn't change behavior, but I find it a bit easier to reason
about (and should be marginally faster by not doing double attribute
lookups, but not like the should usually matter).

We only need the whole array to deal with removals, but other browsers
don't deal with them, see:

https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/html/html_meta_element.cc;l=479;drc=439c6ac35199f3828faf0f0d070d84109c9bf6a1

Given <meta name=viewport> is weird enough as it is, we should probably
do this and simplify the code.

The header data thing was just synonym to "has a meta viewport", so
simplify that code too.

Depends on D128389

Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f69838cbf52b
Cleanup HTMLMetaElement handling of <meta name content>. r=smaug
https://hg.mozilla.org/integration/autoland/rev/86e71bf1ba6c
Simplify meta viewport handling. r=smaug
Flags: needinfo?(emilio)
Flags: needinfo?(emilio)
Keywords: leave-open
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a5c3fdc0b369
Cleanup HTMLMetaElement handling of <meta name content>. r=smaug
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/344b6e44f7a8
Simplify meta viewport handling. r=smaug
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: