[Pkg-javascript-commits] [pdf.js] 93/115: [Firefox] Prevent internal links from displaying "resource://pdf.js/web/" on hover, by tweaking the fallback case in `PDFLinkService_getDestinationHash`

David Prévot taffit at moszumanska.debian.org
Wed Dec 16 20:03:20 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 d2c58a4ccc4ddcf1feb307e7b63cd8b4acb68b47
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date:   Wed Dec 9 10:07:39 2015 +0100

    [Firefox] Prevent internal links from displaying "resource://pdf.js/web/" on hover, by tweaking the fallback case in `PDFLinkService_getDestinationHash`
    
    An example where this is happening is http://www.nyc.gov/html/dcp/pdf/zone/map8c.pdf, check the link just below "Effective Date(s) of Rezoning:" on the right middle of the page.
---
 web/pdf_link_service.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/web/pdf_link_service.js b/web/pdf_link_service.js
index c069ad3..4340118 100644
--- a/web/pdf_link_service.js
+++ b/web/pdf_link_service.js
@@ -154,7 +154,7 @@ var PDFLinkService = (function () {
           return pdfOpenParams;
         }
       }
-      return '';
+      return this.getAnchorUrl('');
     },
 
     /**

-- 
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