[Pkg-javascript-commits] [pdf.js] 01/204: Add pdfBugEnabled to the default preferences
David Prévot
taffit at moszumanska.debian.org
Sat Oct 25 18:50:24 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository pdf.js.
commit 1ba31a6cb7496185919f6e44bfb9ff09a4c7a60a
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date: Mon Jun 16 21:46:39 2014 +0200
Add pdfBugEnabled to the default preferences
---
extensions/firefox/content/PdfStreamConverter.jsm | 3 ---
web/default_preferences.js | 1 +
web/viewer.js | 5 ++++-
3 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/extensions/firefox/content/PdfStreamConverter.jsm b/extensions/firefox/content/PdfStreamConverter.jsm
index f4a45a2..a6c255d 100644
--- a/extensions/firefox/content/PdfStreamConverter.jsm
+++ b/extensions/firefox/content/PdfStreamConverter.jsm
@@ -348,9 +348,6 @@ ChromeActions.prototype = {
return 'null';
}
},
- pdfBugEnabled: function() {
- return getBoolPref(PREF_PREFIX + '.pdfBugEnabled', false);
- },
supportsIntegratedFind: function() {
// Integrated find is only supported when we're not in a frame
if (this.domWindow.frameElement !== null) {
diff --git a/web/default_preferences.js b/web/default_preferences.js
index 51a1bcb..4e297d4 100644
--- a/web/default_preferences.js
+++ b/web/default_preferences.js
@@ -24,6 +24,7 @@ var DEFAULT_PREFERENCES = {
sidebarViewOnLoad: 0,
enableHandToolOnLoad: false,
enableWebGL: false,
+ pdfBugEnabled: false,
disableRange: false,
disableAutoFetch: false,
disableFontFace: false,
diff --git a/web/viewer.js b/web/viewer.js
index 2e56a91..5006fca 100644
--- a/web/viewer.js
+++ b/web/viewer.js
@@ -228,6 +228,9 @@ var PDFView = {
Preferences.get('sidebarViewOnLoad').then(function resolved(value) {
self.preferenceSidebarViewOnLoad = value;
}),
+ Preferences.get('pdfBugEnabled').then(function resolved(value) {
+ self.preferencesPdfBugEnabled = value;
+ }),
Preferences.get('disableTextLayer').then(function resolved(value) {
if (PDFJS.disableTextLayer === true) {
return;
@@ -1810,7 +1813,7 @@ function webViewerInitialized() {
//#if !(FIREFOX || MOZCENTRAL)
if ('pdfBug' in hashParams) {
//#else
-//if ('pdfBug' in hashParams && FirefoxCom.requestSync('pdfBugEnabled')) {
+//if ('pdfBug' in hashParams && PDFView.preferencesPdfBugEnabled) {
//#endif
PDFJS.pdfBug = true;
var pdfBug = hashParams['pdfBug'];
--
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