WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
91573
Spec's suggested missing value default for preload attribute is metadata, not auto
https://bugs.webkit.org/show_bug.cgi?id=91573
Summary
Spec's suggested missing value default for preload attribute is metadata, not...
Daniel Davis
Reported
2012-07-17 19:43:09 PDT
Comments within the HTMLMediaElement::parseAttribute function of WebCore/html/HTMLMediaElement.cpp say: // The spec does not define an "invalid value default" but "auto" is suggested as the // "missing value default", so use it for everything except "none" and "metadata" however the HTML5 spec has since been changed. It currently reads: "The attribute's missing value default is user-agent defined, though the Metadata state is suggested as a compromise between reducing server load and providing an optimal user experience." For mobile and low-bandwidth users especially, WebKit's missing value default for the preload attribute should be changed from "auto" to "metadata" as the spec suggests.
Attachments
Add attachment
proposed patch, testcase, etc.
Eric Carlson
Comment 1
2012-07-18 11:33:04 PDT
(In reply to
comment #0
)
> Comments within the HTMLMediaElement::parseAttribute function of WebCore/html/HTMLMediaElement.cpp say: > > // The spec does not define an "invalid value default" but "auto" is suggested as the > // "missing value default", so use it for everything except "none" and "metadata" > > however the HTML5 spec has since been changed. It currently reads: > > "The attribute's missing value default is user-agent defined, though the Metadata state is suggested as a compromise between reducing server load and providing an optimal user experience." > > For mobile and low-bandwidth users especially, WebKit's missing value default for the preload attribute should be changed from "auto" to "metadata" as the spec suggests.
The code near that comment is concerned with the "invalid value default", not the "missing value default". If WebKit does change the default to "metadata", the initialization of m_preload to MediaPlayer::Auto would need to change.
Ahmad Saleem
Comment 2
2023-10-12 14:20:21 PDT
We still have this:
https://searchfox.org/wubkat/source/Source/WebCore/html/HTMLMediaElement.cpp#808
// The spec does not define an "invalid value default" but "auto" is suggested as the // "missing value default", so use it for everything except "none" and "metadata" m_preload = MediaPlayer::Preload::Auto;
Ahmad Saleem
Comment 3
2023-10-12 14:23:59 PDT
Web-Spec bug:
https://www.w3.org/Bugs/Public/show_bug.cgi?id=28950
&
https://github.com/whatwg/html/pull/51
Blink has it: // The spec does not define an invalid value default: //
https://www.w3.org/Bugs/Public/show_bug.cgi?id=28950
UseCounter::Count(GetDocument(), WebFeature::kHTMLMediaElementPreloadDefault); return WebMediaPlayer::kPreloadMetaData; ___ We have 'auto' while Blink has 'metadata'. Changing status to 'New', since we need to investigate.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug