This website requires JavaScript.
Explore
Help
Sign In
nephele
/
haikuwebkit
Watch
1
Star
0
Fork
You've already forked haikuwebkit
0
Code
Issues
Releases
Activity
haiku
haikuwebkit
/
LayoutTests
/
webrtc
/
peerconnection-new-candidat...
4 lines
47 B
Plaintext
Raw
Permalink
Normal View
History
Unescape
Escape
Do not process newly gathered ICE candidates if document is suspended https://bugs.webkit.org/show_bug.cgi?id=207326 <rdar://problem/57336453> Reviewed by Alex Christensen. Source/WebCore: We should not register MDNS candidates for suspended documents. For that reason, enqueue a task when receiving a new candidate. If document is not suspended, it will be executed immediately. Otherwise, we will wait until document gets unsuspended. Add a mock endpoint that delays gathering of candidates until document is suspended. Test: webrtc/peerconnection-new-candidate-page-cache.html * Modules/mediastream/PeerConnectionBackend.cpp: (WebCore::PeerConnectionBackend::newICECandidate): * testing/MockLibWebRTCPeerConnection.cpp: (WebCore::MockLibWebRTCPeerConnection::GetTransceivers const): (WebCore::MockLibWebRTCPeerConnectionForIceCandidates::MockLibWebRTCPeerConnectionForIceCandidates): (WebCore::MockLibWebRTCPeerConnectionForIceCandidates::gotLocalDescription): (WebCore::MockLibWebRTCPeerConnectionForIceCandidates::sendCandidates): (WebCore::MockLibWebRTCPeerConnectionFactory::CreatePeerConnection): LayoutTests: * fast/history/resources/page-cache-helper-100ms.html: Added. * webrtc/peerconnection-new-candidate-page-cache-expected.txt: Added. * webrtc/peerconnection-new-candidate-page-cache.html: Added. Canonical link: https://commits.webkit.org/220368@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@256009 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-02-07 08:46:32 +00:00
Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) https://bugs.webkit.org/show_bug.cgi?id=217016 Reviewed by Zalan Bujtas. Done with this command: find LayoutTests -name '*-expected.txt' | grep -v imported | xargs awk '/^CONSOLE MESSAGE:/ { next }; /^<\?xml/ { nextfile }; { print FILENAME; nextfile }' | xargs perl -i -pe 's/ +$//g' This affects many files, and it's not helpful to clog the change log with a list of them. Canonical link: https://commits.webkit.org/229803@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@267644 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-09-27 02:15:19 +00:00
PASS peerconnection-new-candidate-page-cache
Do not process newly gathered ICE candidates if document is suspended https://bugs.webkit.org/show_bug.cgi?id=207326 <rdar://problem/57336453> Reviewed by Alex Christensen. Source/WebCore: We should not register MDNS candidates for suspended documents. For that reason, enqueue a task when receiving a new candidate. If document is not suspended, it will be executed immediately. Otherwise, we will wait until document gets unsuspended. Add a mock endpoint that delays gathering of candidates until document is suspended. Test: webrtc/peerconnection-new-candidate-page-cache.html * Modules/mediastream/PeerConnectionBackend.cpp: (WebCore::PeerConnectionBackend::newICECandidate): * testing/MockLibWebRTCPeerConnection.cpp: (WebCore::MockLibWebRTCPeerConnection::GetTransceivers const): (WebCore::MockLibWebRTCPeerConnectionForIceCandidates::MockLibWebRTCPeerConnectionForIceCandidates): (WebCore::MockLibWebRTCPeerConnectionForIceCandidates::gotLocalDescription): (WebCore::MockLibWebRTCPeerConnectionForIceCandidates::sendCandidates): (WebCore::MockLibWebRTCPeerConnectionFactory::CreatePeerConnection): LayoutTests: * fast/history/resources/page-cache-helper-100ms.html: Added. * webrtc/peerconnection-new-candidate-page-cache-expected.txt: Added. * webrtc/peerconnection-new-candidate-page-cache.html: Added. Canonical link: https://commits.webkit.org/220368@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@256009 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-02-07 08:46:32 +00:00