Bug 103263 - onloadeddata callback is not implemented on HTMLElement
Summary: onloadeddata callback is not implemented on HTMLElement
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL: http://w3c-test.org/html/tests/submis...
Keywords: InRadar, WPTImpact
Depends on:
Blocks:
 
Reported: 2012-11-26 08:38 PST by Antoine Quint
Modified: 2024-05-09 02:09 PDT (History)
5 users (show)

See Also:


Attachments
patch for another bug... (5.11 KB, text/plain)
2012-12-05 08:39 PST, Eric Carlson
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antoine Quint 2012-11-26 08:38:56 PST
The HTMLElement interface defines an .onloadeddata property which we don't implement. This is making us fail the Opera-submitted test at http://w3c-test.org/html/tests/submission/Opera/media/interfaces/TextTrack/activeCues.html.
Comment 1 Antoine Quint 2012-11-27 01:53:46 PST
<rdar://problem/12756207>
Comment 2 Eric Carlson 2012-12-05 08:39:08 PST
Created attachment 177761 [details]
patch for another bug...
Comment 4 Karl Dubost 2024-05-09 01:40:00 PDT
not sure the failures on activeCues are due to onloadeddata

Most of the subtests are passing there 
http://wpt.live/html/semantics/embedded-content/media-elements/interfaces/TextTrack/activeCues.html

For example the first test failing in Safari is

TextTrack.activeCues, empty list

For Safari
assert_not_equals(null, null, "t2.activeCues should not be null")
 /html/semantics/embedded-content/media-elements/interfaces/TextTrack/activeCues.html:32:22

For Firefox 
assert_not_equals(object "[object TextTrackCueList]", null, "t2.activeCues should not be null")
 /html/semantics/embedded-content/media-elements/interfaces/TextTrack/acti

And onloadeddata is called but this is on a VideoElement. 

This probably needs a different test. 


Antoine said:
HTMLElement interface defines an .onloadeddata property

Let's see 
https://html.spec.whatwg.org/multipage/dom.html#htmlelement


It's defined in the Global
https://html.spec.whatwg.org/multipage/webappapis.html#event-handlers-on-elements,-document-objects,-and-window-objects
> The following are the event handlers (and their corresponding event handler event types) that must be supported by all HTML elements, as both event handler content attributes and event handler IDL attributes; and that must be supported by all Document and Window objects, as event handler IDL attributes:



https://html.spec.whatwg.org/multipage/media.html#mediaevents
> The following events fire on media elements as part of the processing model described above:


In JSHTMLElement.cpp
https://searchfox.org/wubkat/source/__GENERATED__/WebCore/DerivedSources/JSHTMLElement.cpp#505


{ "onloadeddata"_s, JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute, NoIntrinsic, { HashTableValue::GetterSetterType, jsHTMLElement_onloadeddata, setJSHTMLElement_onloadeddata } },
Comment 5 Ahmad Saleem 2024-05-09 02:09:32 PDT
Could we be hitting following?:

https://searchfox.org/wubkat/rev/7bf250e4832adfb28c2bf2bc518ad59958f2ae1b/Source/WebCore/html/track/TextTrackCueList.cpp#98

// FIXME: This list of active cues is not updated as cues are added, removed, become active, and become inactive.
// Instead it is only updated each time this function is called again. That is not consistent with other dynamic DOM lists.