WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
147322
Media Session: give media elements unique IDs
https://bugs.webkit.org/show_bug.cgi?id=147322
Summary
Media Session: give media elements unique IDs
Matt Rajca
Reported
2015-07-27 09:56:43 PDT
Web page/element ID pairs will be used to keep track of the "focused" Content media element in the UI process. To be able to identify media elements, we give them unique IDs.
Attachments
Patch
(3.61 KB, patch)
2015-07-27 10:04 PDT
,
Matt Rajca
eric.carlson
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2015-07-27 09:57:25 PDT
<
rdar://problem/22011625
>
Matt Rajca
Comment 2
2015-07-27 10:04:12 PDT
Created
attachment 257565
[details]
Patch
Eric Carlson
Comment 3
2015-07-31 17:35:30 PDT
Comment on
attachment 257565
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=257565&action=review
As we discussed offline, please file a bug about consolidating this with the MediaPlaybackTargetClient map.
> Source/WebCore/html/HTMLMediaElement.cpp:435 > + static uint64_t elementID = 0; > + m_elementID = ++elementID;
Nit: we usually put something like this in a static function, eg. uint64_t nextPlaybackTargetClientContextId() in Document.cpp.
Matt Rajca
Comment 4
2015-07-31 22:51:27 PDT
(In reply to
comment #3
)
> Comment on
attachment 257565
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=257565&action=review
> > As we discussed offline, please file a bug about consolidating this with the > MediaPlaybackTargetClient map.
Filed:
https://bugs.webkit.org/show_bug.cgi?id=147522
> > > Source/WebCore/html/HTMLMediaElement.cpp:435 > > + static uint64_t elementID = 0; > > + m_elementID = ++elementID; > > Nit: we usually put something like this in a static function, eg. uint64_t > nextPlaybackTargetClientContextId() in Document.cpp.
Added.
Matt Rajca
Comment 5
2015-07-31 23:40:05 PDT
Committed
r187712
: <
http://trac.webkit.org/changeset/187712
>
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