[Pkg-javascript-commits] [pdf.js] 100/115: Reset the `styleElement` when clearing out loaded fonts (bug 1232017)

David Prévot taffit at moszumanska.debian.org
Wed Dec 16 20:03:21 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository pdf.js.

commit f0e47953024b46b4953a36c3b56985aa59fd5758
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date:   Sat Dec 12 11:33:43 2015 +0100

    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 2c917b2..94d4c31 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) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list