From f0e47953024b46b4953a36c3b56985aa59fd5758 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sat, 12 Dec 2015 11:33:43 +0100 Subject: [PATCH] Reset the `styleElement` when clearing out loaded fonts (bug 1232017) *This is a follow-up to PR 6571.* Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1232071. --- src/display/font_loader.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/display/font_loader.js b/src/display/font_loader.js index 2c917b2a0..94d4c314a 100644 --- a/src/display/font_loader.js +++ b/src/display/font_loader.js @@ -49,6 +49,7 @@ FontLoader.prototype = { var styleElement = this.styleElement; if (styleElement) { styleElement.parentNode.removeChild(styleElement); + styleElement = this.styleElement = null; } //#if !(MOZCENTRAL) this.nativeFontFaces.forEach(function(nativeFontFace) {