1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Merge pull request #16776 from calixteman/gv_print_or_save

[GeckoView] Allow to query pdf.js to know if we can avoid to print a pdf (bug 1846296)
This commit is contained in:
calixteman 2023-08-01 15:21:10 +02:00 committed by GitHub
commit 4735ed8f16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 46 additions and 2 deletions

View file

@ -3021,7 +3021,7 @@ class WorkerTransport {
}
getDocJSActions() {
return this.messageHandler.sendWithPromise("GetDocJSActions", null);
return this.#cacheSimpleMethod("GetDocJSActions");
}
getPageJSActions(pageIndex) {

View file

@ -208,7 +208,7 @@ class OptionalContentConfig {
}
get hasInitialVisibility() {
return this.getHash() === this.#initialHash;
return this.#initialHash === null || this.getHash() === this.#initialHash;
}
getOrder() {