forked from mozilla/pdf.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/mozilla/pdf.js
* 'master' of https://github.com/mozilla/pdf.js: Avoid the `getJavaScript` API-call in `PDFViewerApplication._initializeAutoPrint` when "enableScripting" is set Add a default DA for textfield to avoid issues when printing or saving * it aims to fix issue mozilla#12750 Stop running `gulp components` as part of the unit-tests Switch from Travis CI to GitHub Actions Run `AnnotationStorage.resetModified` when destroying the `PDFDocumentLoadingTask`/`PDFDocumentProxy` Delay initialization of the `AnnotationStorage` callbacks slightly in the default viewer Move the functionality of the `webViewerDownloadOrSave` function into a new `PDFViewerApplication` method instead Remove the arbitrary timeout in the "must check that first text field has focus" integration-test (PR 12702 follow-up) Don't dispatch a "doc/Open" event in the sandbox when creating it failed Remove the `ENABLE_SCRIPTING` build-target, since it's not necessary Update the events, used with scripting, to use lower-case names and avoid using DOM events internally in the viewer Tweak the `LinkAnnotationElement._bindJSAction` and `WidgetAnnotationElement.{_setEventListener, _setEventListeners}` methods Tweak the new `mouseState` parameter, and its usage, in the viewer components and the `AnnotationLayer` JS - Collect and execute actions at doc and pages level * the goal is to execute actions like Open or OpenAction * can be tested with issue6106.pdf (auto-print) * once mozilla#12701 is merged, we can add page actions Dispatch an event on sandbox creation * the goal is to be able to know when the sandbox is ready for mochitest in m-c Ignore, rather than throwing on, Coding style component (COC) markers in JPEG 2000 images (issue 12752) JS -- Actions must be evaluated in global scope * All the public properties of doc are injected into globalThis, in order to make them available through `this` * Put event in the global scope too. Add a new "pagesdestroy" event, dispatched *before* the `BaseViewer` removes an existing document Add new "pageopen"/"pageclose" events for usage with JavaScript actions In order to simplify m-c code, move some in pdf.js * move set/clear|Timeout/Interval and crackURL code in pdf.js * remove the "backdoor" in the proxy (used to dispatch event) and so return the dispatch function in the initializer * remove listeners if an error occured during sandbox initialization * add support for alert and prompt in the sandbox * add a function to eval in the global scope
- Loading branch information
Showing
39 changed files
with
1,407 additions
and
664 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: CI | ||
on: [push, pull_request] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js 14 LTS | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 14.x | ||
- run: npm install -g gulp-cli | ||
- run: npm install | ||
- run: npm test |
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.