Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
<html>
<head></head>
<script>
document.documentElement.appendChild(frame);
const windowPointer = frame.contentWindow;
document.documentElement.replaceWith();
// Setting attributes on inactive media session should not cause crash.
windowPointer.navigator.mediaSession.setActionHandler('nexttrack', null);
windowPointer.navigator.mediaSession.playbackState = "playing";
windowPointer.navigator.mediaSession.setPositionState();
windowPointer.navigator.mediaSession.metadata = null;
</script>
</html>