1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-23 00:28:06 +02:00

[GeckoView] Allow to query pdf.js to know if we can avoid to print a pdf (bug 1846296)

This commit is contained in:
Calixte Denizet 2023-07-31 18:45:42 +02:00
parent ce9f94848c
commit 8bd4a18190
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() {