Changeset 207368 in webkit
- Timestamp:
- Oct 14, 2016 6:48:36 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r207330 r207368 1 2016-10-14 Chris Dumez <cdumez@apple.com> 2 3 Setting HTMLMediaElement.muted to the same value should not fire a volume change event 4 https://bugs.webkit.org/show_bug.cgi?id=163474 5 6 Reviewed by Eric Carlson. 7 8 Rebaseline W3C test now that more checks are passing. 9 10 * web-platform-tests/html/semantics/embedded-content/media-elements/event_volumechange-expected.txt: 11 1 12 2016-10-14 Youenn Fablet <youenn@apple.com> 2 13 -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/media-elements/event_volumechange-expected.txt
r189476 r207368 2 2 PASS setting audio.volume fires volumechange 3 3 PASS setting audio.muted fires volumechange 4 FAIL setting audio.volume/muted to the same value does not fire volumechange assert_unreached: Reached unreachable code 4 PASS setting audio.volume/muted to the same value does not fire volumechange 5 5 PASS setting audio.volume/muted repeatedly fires volumechange repeatedly 6 6 PASS setting video.volume fires volumechange 7 7 PASS setting video.muted fires volumechange 8 FAIL setting video.volume/muted to the same value does not fire volumechange assert_unreached: Reached unreachable code 8 PASS setting video.volume/muted to the same value does not fire volumechange 9 9 PASS setting video.volume/muted repeatedly fires volumechange repeatedly 10 10 -
trunk/Source/WebCore/ChangeLog
r207366 r207368 1 2016-10-14 Chris Dumez <cdumez@apple.com> 2 3 Setting HTMLMediaElement.muted to the same value should not fire a volume change event 4 https://bugs.webkit.org/show_bug.cgi?id=163474 5 6 Reviewed by Eric Carlson. 7 8 Setting HTMLMediaElement.muted to the same value should not fire a volume 9 change event: 10 - https://html.spec.whatwg.org/#dom-media-muted 11 12 Chrome and Firefox agree with the specification. 13 14 No new tests, rebaselined existing test. 15 16 * html/HTMLMediaElement.cpp: 17 (WebCore::HTMLMediaElement::setMuted): 18 1 19 2016-10-14 Dean Jackson <dino@apple.com> 2 20 -
trunk/Source/WebCore/html/HTMLMediaElement.cpp
r207338 r207368 3303 3303 LOG(Media, "HTMLMediaElement::setMuted(%p) - %s", this, boolString(muted)); 3304 3304 3305 if (m_muted != muted || !m_explicitlyMuted) { 3305 bool mutedStateChanged = m_muted != muted; 3306 if (mutedStateChanged || !m_explicitlyMuted) { 3306 3307 m_muted = muted; 3307 3308 m_explicitlyMuted = true; … … 3318 3319 } 3319 3320 } 3320 scheduleEvent(eventNames().volumechangeEvent); 3321 3322 if (mutedStateChanged) 3323 scheduleEvent(eventNames().volumechangeEvent); 3321 3324 3322 3325 updateShouldPlay();
Note: See TracChangeset
for help on using the changeset viewer.