WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
123859
Remove npr.org specific hack in HTMLMediaElement
https://bugs.webkit.org/show_bug.cgi?id=123859
Summary
Remove npr.org specific hack in HTMLMediaElement
Ryosuke Niwa
Reported
2013-11-05 20:39:00 PST
Consider removing the site specific hack added in
http://trac.webkit.org/changeset/57820
Blink removed it in
https://chromium.googlesource.com/chromium/blink/+/ca27419d2e33d5702db42cdb209db42a5df7d67d
I can no longer reproduce the issue reported in <
rdar://problem/7902467
> on npr.org
Attachments
Proposed patch
(3.49 KB, patch)
2013-11-07 13:35 PST
,
Eric Carlson
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Eric Carlson
Comment 1
2013-11-06 11:02:58 PST
(In reply to
comment #0
)
> Consider removing the site specific hack added in
http://trac.webkit.org/changeset/57820
>
The site-specific hack was added in <
http://trac.webkit.org/changeset/58586
>.
Eric Carlson
Comment 2
2013-11-07 11:39:39 PST
The hack was added because the npr.org <audio> player had code that called play() when it got a 'canplay' event. The code was essentially: NPR.StaticEmbedAudio.audio_player.addEventListener('canplay',function() { NPR.StaticEmbedAudio.audio_duration=NPR.StaticEmbedAudio.audio_player.duration; NPR.StaticEmbedAudio.updateDuration(NPR.StaticEmbedAudio.audio_duration); NPR.StaticEmbedAudio.audio_ready=true; NPR.StaticEmbedAudio.audio_player.play(); }, true); The WebKit changes in
r57820
caused the 'canplay' event to be fired when the src attribute was set from JS, which caused all <audio> elements on their site to begin playing automatically. The npr.org player has been changed, so we should remove the code added in
r58586
.
Ryosuke Niwa
Comment 3
2013-11-07 13:14:52 PST
Yeah, I can't find any video automatically playing on npr.org so it's probably safe to remove it.
Eric Carlson
Comment 4
2013-11-07 13:35:11 PST
(In reply to
comment #3
)
> Yeah, I can't find any video automatically playing on npr.org so it's probably safe to remove it.
Only audio played automatically, not video. In any case, I checked their scripts and the code that caused the problem. has been removed.
Eric Carlson
Comment 5
2013-11-07 13:35:53 PST
Created
attachment 216330
[details]
Proposed patch
Jer Noble
Comment 6
2013-11-07 13:40:26 PST
Comment on
attachment 216330
[details]
Proposed patch r=me
WebKit Commit Bot
Comment 7
2013-11-07 14:06:23 PST
Comment on
attachment 216330
[details]
Proposed patch Clearing flags on attachment: 216330 Committed
r158874
: <
http://trac.webkit.org/changeset/158874
>
WebKit Commit Bot
Comment 8
2013-11-07 14:06:26 PST
All reviewed patches have been landed. Closing bug.
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