Browse Source

Merge branch 'release-0.24'

pull/275/head v0.24.13
Simon Eisenmann 9 years ago
parent
commit
d9f1d0e789
  1. 6
      debian/changelog
  2. 11
      static/js/sandboxes/pdf.js

6
debian/changelog vendored

@ -1,3 +1,9 @@
spreed-webrtc-server (0.24.13) trusty; urgency=medium
* Always disable web worker for PDF.js and no longer rely on PDF.js catching the execption when the worker cannot be started, fixing Firefox 45+.
-- Simon Eisenmann <simon@struktur.de> Tue, 29 Mar 2016 13:40:35 +0200
spreed-webrtc-server (0.24.12) trusty; urgency=medium spreed-webrtc-server (0.24.12) trusty; urgency=medium
* Brought back mediaDevices wrapper for gUM for Firefox >= 38 fixing #263 and #264. * Brought back mediaDevices wrapper for gUM for Firefox >= 38 fixing #263 and #264.

11
static/js/sandboxes/pdf.js

@ -67,11 +67,16 @@
pdfScript.onload = function(evt) { pdfScript.onload = function(evt) {
pdfjs = that.window.PDFJS; pdfjs = that.window.PDFJS;
if (PDFJS_WORKER_URL) { if (PDFJS_WORKER_URL) {
// NOTE: the worker script won't actually be run inside a
// real Worker object as it can't be loaded cross-domain
// from the sandboxed iframe ("data:" vs. "https").
pdfjs.workerSrc = PDFJS_WORKER_URL; pdfjs.workerSrc = PDFJS_WORKER_URL;
} }
if (true) {
// We currently cannot use a web worker in a sandboxed iFrame
// and in addition to that Firefox 45+ fail with an uncatchable
// exception (see https://bugzilla.mozilla.org/show_bug.cgi?id=1260388)
// So we always disable the worker for now, making PDF.js running
// in fake worker mode.
pdfjs.disableWorker = true;
}
console.log("Using pdf.js " + pdfjs.version + " (build " + pdfjs.build + ")"); console.log("Using pdf.js " + pdfjs.version + " (build " + pdfjs.build + ")");
that._doOpenFile(source); that._doOpenFile(source);
}; };

Loading…
Cancel
Save