diff --git a/dom/media/test/manifest.js b/dom/media/test/manifest.js index a2179f54b187..564715d3d4e3 100644 --- a/dom/media/test/manifest.js +++ b/dom/media/test/manifest.js @@ -1558,13 +1558,10 @@ function getMajorMimeType(mimetype) { // Force releasing decoder to avoid timeout in waiting for decoding resource. function removeNodeAndSource(n) { n.remove(); - // Clearing srcObject and/or src will actually set them to some default - // URI that will fail to load, so make sure we don't produce a spurious - // bailing error. - n.onerror = null; // reset |srcObject| first since it takes precedence over |src|. n.srcObject = null; - n.src = ""; + n.removeAttribute("src"); + n.load(); while (n.firstChild) { n.firstChild.remove(); }