Skip to content

Commit

Permalink
get RTPCallerType in AudioContext constructor where window is known n…
Browse files Browse the repository at this point in the history
…on-null

This is a similar approach to that used in PerformanceMainThread.
https://searchfox.org/mozilla-central/rev/2d24d893669ad0fe8d76b0427b25369d35fcc19b/dom/performance/PerformanceMainThread.cpp#99

Differential Revision: https://phabricator.services.mozilla.com/D164518

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1804963
gecko-commit: 60e0588ec62cebb375ffd30b25b5b22167f50b11
gecko-reviewers: padenot
  • Loading branch information
karlt authored and moz-wptsync-bot committed Dec 20, 2022
1 parent 07e9b12 commit 66a2552
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<html>
<head>
<title>
Test currentTime after browsing context discard
</title>
</head>
<script>
const frame = document.createElement('frame');
document.documentElement.appendChild(frame);
const ctx = new frame.contentWindow.AudioContext();
frame.remove();
ctx.currentTime;
</script>
</html>

0 comments on commit 66a2552

Please sign in to comment.