Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PDFJS.abortGetDocument function to enable cancelling of calls to PDFJS.getDocument #5234

Closed
wants to merge 4 commits into from
Closed

Commits on Sep 5, 2014

  1. Fix the exception propagation when rejecting workerReadyCapability

    Currently when an exception is thrown, we try to reject `workerReadyCapability` with multiple arguments in src/core/api.js. This obviously doesn't work, hence this patch changes that to instead reject with the exception object as is.
    In src/core/worker.js the exception is currently (unncessarily) wrapped in an object, so this patch also simplifies that to directly send the exception object instead.
    Snuffleupagus committed Sep 5, 2014
    Configuration menu
    Copy the full SHA
    74c75de View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5601168 View commit details
    Browse the repository at this point in the history
  3. In test/unit/api_spec.js rename the function waitsForPromise to `wa…

    …itsForPromiseResolved`and add a `waitsForPromiseRejected` function
    Snuffleupagus committed Sep 5, 2014
    Configuration menu
    Copy the full SHA
    de99372 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3fd4864 View commit details
    Browse the repository at this point in the history