-
Notifications
You must be signed in to change notification settings - Fork 0
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
Update from upstream #1
Commits on Aug 8, 2024
-
Merge pull request #18568 from timvandermeij/css-findbar
Group and scope the findbar rules using CSS nesting
Configuration menu - View commit details
-
Copy full SHA for 4569e88 - Browse repository at this point
Copy the full SHA 4569e88View commit details -
Configuration menu - View commit details
-
Copy full SHA for bad214f - Browse repository at this point
Copy the full SHA bad214fView commit details
Commits on Aug 9, 2024
-
[Editor] Remove event listeners with
AbortSignal.any()
There's a fair number of event listeners in the editor-code that we're currently removing "manually", by keeping references to their event handler functions. This was necessary since we have a "global" `AbortController` that applies to all event listeners used in the editor-code, however it's now possible to combine multiple `AbortSignal`s; please see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/any_static Since this functionality is [fairly new](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/any_static#browser_compatibility) the viewer will check that `AbortSignal.any()` is available before enabling the editing-functionality. (It should hopefully be fairly straightforward, famous last words, for users to implement a polyfill to allow editing in older browsers.) Finally, this patch also adds checks and test-only asserts to ensure that we don't add duplicate event listeners in various editor-code.
Configuration menu - View commit details
-
Copy full SHA for c0bf3d3 - Browse repository at this point
Copy the full SHA c0bf3d3View commit details -
Merge pull request #18584 from calixteman/preview_background
[Editor] Change the background color of the image preview in the new alt text dialog
Configuration menu - View commit details
-
Copy full SHA for 36dc666 - Browse repository at this point
Copy the full SHA 36dc666View commit details -
Merge pull request #18586 from Snuffleupagus/editor-AbortSignal-any
[Editor] Remove event listeners with `AbortSignal.any()`
Configuration menu - View commit details
-
Copy full SHA for b7198d3 - Browse repository at this point
Copy the full SHA b7198d3View commit details -
Check that
AbortSignal.any()
is supported inPDFViewer
too (PR 18……586 follow-up) Without this patch the viewer may break on load, since the check added in PR 18586 only applies to the toolbar.
Configuration menu - View commit details
-
Copy full SHA for da9cfe7 - Browse repository at this point
Copy the full SHA da9cfe7View commit details -
Merge pull request #18587 from Snuffleupagus/PDFViewer-check-AbortSig…
…nal-any Check that `AbortSignal.any()` is supported in `PDFViewer` too (PR 18586 follow-up)
Configuration menu - View commit details
-
Copy full SHA for daabc7a - Browse repository at this point
Copy the full SHA daabc7aView commit details -
Revert "[Editor] Pass a buffer instead of a typed array when passing …
…image data to the model"
Configuration menu - View commit details
-
Copy full SHA for 31727cc - Browse repository at this point
Copy the full SHA 31727ccView commit details -
Merge pull request #18588 from mozilla/revert-18580-alt_text_pass_buffer
Revert "[Editor] Pass a buffer instead of a typed array when passing image data to the model"
Configuration menu - View commit details
-
Copy full SHA for b6b99a7 - Browse repository at this point
Copy the full SHA b6b99a7View commit details
Commits on Aug 10, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 723c769 - Browse repository at this point
Copy the full SHA 723c769View commit details -
Use a few local variables in
PDFSidebar.#addEventListeners
This, ever so slightly, shortens the code for a couple of repeatedly accessed class fields.
Configuration menu - View commit details
-
Copy full SHA for 984deba - Browse repository at this point
Copy the full SHA 984debaView commit details -
Stop sidebar resizing on "blur" events
Because of an old oversight (by me) we don't stop sidebar resizing when the browser window loses focus, which seems generally wrong and can also lead to duplicate mouse-related event listeners being registered.
Configuration menu - View commit details
-
Copy full SHA for 7619171 - Browse repository at this point
Copy the full SHA 7619171View commit details -
Configuration menu - View commit details
-
Copy full SHA for be685a2 - Browse repository at this point
Copy the full SHA be685a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for debcb22 - Browse repository at this point
Copy the full SHA debcb22View commit details -
Remove the
enableHighlightEditor
preferenceThis was enabled by default in Firefox 126, see [bug 1867513](https://bugzilla.mozilla.org/show_bug.cgi?id=1867513), so hopefully we should be able to remove the option/preference now.
Configuration menu - View commit details
-
Copy full SHA for b9f5e78 - Browse repository at this point
Copy the full SHA b9f5e78View commit details -
Merge pull request #18581 from calixteman/new_alt_text_test_1
[Editor] Add a first test to test the new alt text flow
Configuration menu - View commit details
-
Copy full SHA for 4367fc1 - Browse repository at this point
Copy the full SHA 4367fc1View commit details -
Merge pull request #18592 from Snuffleupagus/firefoxcom-AbortSignal-any
[Firefox] Remove the "loadaiengineprogress" listener with `AbortSignal.any()`
Configuration menu - View commit details
-
Copy full SHA for ec48602 - Browse repository at this point
Copy the full SHA ec48602View commit details -
Merge pull request #18593 from Snuffleupagus/PDFSidebar-AbortController
Remove the sidebar resizing event listeners with an `AbortController`
Configuration menu - View commit details
-
Copy full SHA for 6e4b347 - Browse repository at this point
Copy the full SHA 6e4b347View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0030518 - Browse repository at this point
Copy the full SHA 0030518View commit details -
Merge pull request #18589 from calixteman/new_alt_text_telemetry
[Editor] Add the telemetry for the new alt text (bug 1912500)
Configuration menu - View commit details
-
Copy full SHA for e44e4db - Browse repository at this point
Copy the full SHA e44e4dbView commit details
Commits on Aug 11, 2024
-
Group and scope the secondary toolbar button container/icon rules usi…
…ng CSS nesting The secondary toolbar CSS rules predate the general availability of CSS nesting, which makes them more difficult to understand and change safely. The primary issues are that the rules are spread over the `viewer.css` file, they share blocks with other elements and the scope of the rules is sometimes bigger than necessary. This refactoring groups all CSS rules for the secondary toolbar button container/icons together, scoped to the top-level `#secondaryToolbar` element, for improved overview and isolation. Note that this patch only intends to move the existing rules around and not change any behavior. Moreover, this patch does not move the rules for the secondary toolbar itself and the secondary toolbar buttons; those will be part of a follow-up patch and will be easier once this is in place first. Co-authored-by: Calixte Denizet <calixte.denizet@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 97b761d - Browse repository at this point
Copy the full SHA 97b761dView commit details -
Merge pull request #18595 from timvandermeij/css-secondary-toolbar-pa…
…rt-1 Group and scope the secondary toolbar button container/icon rules using CSS nesting
Configuration menu - View commit details
-
Copy full SHA for efe00cf - Browse repository at this point
Copy the full SHA efe00cfView commit details -
Remove the
secondaryToolbarButton
CSS classSecondary toolbar buttons are toolbar buttons with some extra rules, mainly to make them wider and have visible labels. However, this similarity is currently not clearly reflected in the implementation because the secondary toolbar buttons use a different CSS class, `secondaryToolbarButton`, compared to the other toolbar buttons that use the `toolbarButton` CSS class. This also causes some duplication in the rules and requires extra care to keep the common bits for the `secondaryToolbarButton` class in sync with the `toolbarButton` class. Fortunately, now that we have a dedicated CSS scope for the secondary toolbar, we can simplify this by giving all secondary toolbar buttons the `toolbarButton` class and explicitly listing the required overrides in the `#secondaryToolbar` scope instead. Doing so removes most of the special-casing for secondary toolbar buttons while explicitly listing the differences in a single place for a better overview. It also lays the foundation for making all toolbar buttons respect the `browser.uidensity` Firefox preference later by reducing differences. Co-authored-by: Calixte Denizet <calixte.denizet@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 2a22424 - Browse repository at this point
Copy the full SHA 2a22424View commit details -
Merge pull request #18596 from timvandermeij/css-secondary-toolbar-pa…
…rt-2 Remove the `secondaryToolbarButton` CSS class
Configuration menu - View commit details
-
Copy full SHA for aa2337f - Browse repository at this point
Copy the full SHA aa2337fView commit details -
Group and scope the secondary toolbar rules using CSS nesting
The secondary toolbar CSS rules predate the general availability of CSS nesting, which makes them more difficult to understand and change safely. The primary issues are that the rules are spread over the `viewer.css` file, they share blocks with other elements and the scope of the rules is sometimes bigger than necessary. This refactoring groups all remaining secondary toolbar rules together, scoped to the top-level `#secondaryToolbar` element, for improved overview and isolation. Note that this patch only intends to move the existing rules around and not change any behavior. Co-authored-by: Calixte Denizet <calixte.denizet@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 5193adf - Browse repository at this point
Copy the full SHA 5193adfView commit details
Commits on Aug 12, 2024
-
Limit base-class initialization checks to development and TESTING modes
We have a number of base-classes that are only intended to be extended, but never to be used directly. To help enforce this during development these base-class constructors will check for direct usage, however that code is obviously not needed in the actual builds. *Note:* This patch reduces the size of the `gulp mozcentral` output by `~2.7` kilo-bytes, which isn't a lot but still cannot hurt.
Configuration menu - View commit details
-
Copy full SHA for aebb853 - Browse repository at this point
Copy the full SHA aebb853View commit details -
Merge pull request #18597 from timvandermeij/css-secondary-toolbar-pa…
…rt-3 Group and scope the secondary toolbar rules using CSS nesting
Configuration menu - View commit details
-
Copy full SHA for 9103cf0 - Browse repository at this point
Copy the full SHA 9103cf0View commit details -
Merge pull request #18598 from Snuffleupagus/base-class-init-TESTING-…
…check Limit base-class initialization checks to development and TESTING modes
Configuration menu - View commit details
-
Copy full SHA for d0fbfe1 - Browse repository at this point
Copy the full SHA d0fbfe1View commit details -
Merge the duplicate
.editorParamsToolbar
CSS blocksNow that we have dedicated CSS scopes for the findbar and the secondary toolbar we have ended up with two CSS blocks with identical selectors, so now we can combine them for simplicity and to remove some rules in the first block that were always overridden by the second block. Co-authored-by: Calixte Denizet <calixte.denizet@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 2a982e7 - Browse repository at this point
Copy the full SHA 2a982e7View commit details -
Improve grouping of the secondary toolbar button CSS rules
Using the `:is(a)` selector we can move the previously separate rules into the main `.toolbarButton` override rules. Co-authored-by: Calixte Denizet <calixte.denizet@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 68bda90 - Browse repository at this point
Copy the full SHA 68bda90View commit details -
Generalize the CSS rules for labeled toolbar buttons
This commit fixes a regression from #18596 where the "Add image" button styles broke because it's a labeled toolbar button but the labeled toolbar button CSS rules were only scoped to the secondary toolbar. However, nowadays labeled toolbar buttons are also used in e.g. the editor parameters toolbar, and this highlighted that we didn't clearly encode the concept of labeled toolbar buttons in the CSS so far. This patch extracts the CSS rules for labeled toolbar buttons that were previously limited to the secondary toolbar into a dedicated generic class that can be applied on top of any unlabeled toolbar button to convert it to a labeled toolbar button, regardless of its position in the DOM. This also makes the distinction clearer in the HTML, and the new CSS scope for the toolbar buttons lays the foundation for combining the other toolbar buttons rules in there later on. Co-authored-by: Calixte Denizet <calixte.denizet@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 9fd23d8 - Browse repository at this point
Copy the full SHA 9fd23d8View commit details
Commits on Aug 13, 2024
-
Merge pull request #18594 from Snuffleupagus/rm-enableHighlightEditor…
…-pref Remove the `enableHighlightEditor` preference
Configuration menu - View commit details
-
Copy full SHA for 17b2463 - Browse repository at this point
Copy the full SHA 17b2463View commit details -
Allow specifying custom match logic in PDFFindController
This patch allows embedders of PDF.js to provide custom match logic for seaching in PDFs. This is done by subclassing the PDFFindController class and overriding the `match` method. `match` is called once per PDF page, receives as parameters the search query, the page contents, and the page index, and returns an array of { index, length } objects representing the search results.
Configuration menu - View commit details
-
Copy full SHA for f051597 - Browse repository at this point
Copy the full SHA f051597View commit details -
Merge pull request #18549 from nicolo-ribaudo/custom-find-matcher-sub…
…class [api-minor] Allow specifying custom match logic in PDFFindController
Configuration menu - View commit details
-
Copy full SHA for a999b34 - Browse repository at this point
Copy the full SHA a999b34View commit details -
Configuration menu - View commit details
-
Copy full SHA for af03894 - Browse repository at this point
Copy the full SHA af03894View commit details -
Merge pull request #18604 from Snuffleupagus/version-4.6
Bump library version to `4.6`
Configuration menu - View commit details
-
Copy full SHA for 14f6cbe - Browse repository at this point
Copy the full SHA 14f6cbeView commit details -
Merge pull request #18601 from timvandermeij/css-cleanup
Improve the viewer CSS after nesting the findbar and secondary toolbar rules
Configuration menu - View commit details
-
Copy full SHA for 038e482 - Browse repository at this point
Copy the full SHA 038e482View commit details -
Use the local
eventBus
in theAnnotationEditorUIManager
constructorThis shortens the code ever so slightly, which cannot hurt.
Configuration menu - View commit details
-
Copy full SHA for 8273553 - Browse repository at this point
Copy the full SHA 8273553View commit details -
Handle the "switchannotationeditorparams" event in the editor-code (i…
…ssue 18196) The problem seems to be caused by the browser trying to "restore" editing input-elements, in the various toolbars, to their previous values when the tab is re-opened. Hence the simplest solution appears to be to move the event handling into the editor-code, which is also less code overall, since the listener thus won't be registered early enough for the problem to appear.
Configuration menu - View commit details
-
Copy full SHA for 9e0c6ef - Browse repository at this point
Copy the full SHA 9e0c6efView commit details -
Merge pull request #18605 from Snuffleupagus/issue-18196
Handle the "switchannotationeditorparams" event in the editor-code (issue 18196)
Configuration menu - View commit details
-
Copy full SHA for 8446d3a - Browse repository at this point
Copy the full SHA 8446d3aView commit details
Commits on Aug 15, 2024
-
Link to official releases and the demo viewer in the bug report template
Hopefully this might lead to *more* users actually testing the latest version before reporting a bug.
Configuration menu - View commit details
-
Copy full SHA for 4caa309 - Browse repository at this point
Copy the full SHA 4caa309View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9bd0085 - Browse repository at this point
Copy the full SHA 9bd0085View commit details -
Merge pull request #18610 from Snuffleupagus/bug-report-version-descr…
…iption Link to official releases and the demo viewer in the bug report template
Configuration menu - View commit details
-
Copy full SHA for 17f387b - Browse repository at this point
Copy the full SHA 17f387bView commit details -
Merge pull request #18611 from calixteman/fix_telemetry
Fix the telemetry for the new alt-text flow
Configuration menu - View commit details
-
Copy full SHA for b60261e - Browse repository at this point
Copy the full SHA b60261eView commit details -
Shorten the
PDFViewerApplication._parseHashParams
methodThe way that the debugging hash-parameter parsing is implemented leads to a lot of boilerplate code in this method, since *most* of the cases are very similar.[1] With just a few exceptions most of the options can be handled automatically, by defining an appropriate checker for each option. --- [1] With the recent introduction of TESTING-only options the size of this method increased a fair bit.
Configuration menu - View commit details
-
Copy full SHA for ee7441d - Browse repository at this point
Copy the full SHA ee7441dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 75e5236 - Browse repository at this point
Copy the full SHA 75e5236View commit details -
Merge pull request #18613 from calixteman/enable_tests
Enable disabled integration tests for Firefox
Configuration menu - View commit details
-
Copy full SHA for 73bae55 - Browse repository at this point
Copy the full SHA 73bae55View commit details -
Merge pull request #18612 from Snuffleupagus/_parseHashParams-shorten
Shorten the `PDFViewerApplication._parseHashParams` method
Configuration menu - View commit details
-
Copy full SHA for d8d9cff - Browse repository at this point
Copy the full SHA d8d9cffView commit details -
Configuration menu - View commit details
-
Copy full SHA for 140dd3c - Browse repository at this point
Copy the full SHA 140dd3cView commit details -
Fix vulnerability in the
axios
dependencyThis patch is generated automatically using `npm audit fix` and fixes CVE-2024-39338 (see GHSA-8hc4-vh64-cxmj), bringing the vulnerability count back to zero.
Configuration menu - View commit details
-
Copy full SHA for 44f7e3c - Browse repository at this point
Copy the full SHA 44f7e3cView commit details -
Fix the repository URLs in the
importl10n
scriptWe introduced quite a few new strings recently, but during the last few rounds of updates we didn't see new translations updates becoming available. I only just now recalled the announcement that Mozilla is moving from Mercurial to Git, and indeed the Mercurial page at https://hg.mozilla.org/l10n-central hasn't been updated since July anymore and that's were we used to pull our translations from. This commit fixes the issue by changing the URLs to the Mozilla Git repositories hosted on GitHub instead.
Configuration menu - View commit details
-
Copy full SHA for f6c2860 - Browse repository at this point
Copy the full SHA f6c2860View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0aada51 - Browse repository at this point
Copy the full SHA 0aada51View commit details
Commits on Aug 16, 2024
-
Merge pull request #18615 from timvandermeij/updates
Update dependencies and translations to the most recent versions
Configuration menu - View commit details
-
Copy full SHA for f7d3add - Browse repository at this point
Copy the full SHA f7d3addView commit details
Commits on Aug 18, 2024
-
Set the event handlers in the integration tests before any event is t…
…riggered The function evaluateOnNewDocument in Puppeteer allow us to execute some js before the pdf.js one is loaded. It allows us to stub some setters before there are used and then set some event handlers very soon.
Configuration menu - View commit details
-
Copy full SHA for 5e49480 - Browse repository at this point
Copy the full SHA 5e49480View commit details -
Merge pull request #18617 from calixteman/early_event_handler
Set the event handlers in the integration tests before any event is triggered
Configuration menu - View commit details
-
Copy full SHA for b47c7ec - Browse repository at this point
Copy the full SHA b47c7ecView commit details -
[Editor] Move setting
window.uiManager
back to the test codeIn PR #18574 setting `window.uiManager` was moved into the `src` folder to avoid intermittent integration test failures because at the time we lacked a way to register event listeners early (before PDF.js loads). However, in PR #18617 this functionality got introduced, so we can now use the new way of setting up the event bus in the tests to move this back to the `test` folder again and to reduce the amount of test-only code in the main codebase as discussed in PR #18574. Partially reverts e037c57.
Configuration menu - View commit details
-
Copy full SHA for db06011 - Browse repository at this point
Copy the full SHA db06011View commit details -
Fix the "must check that a value is correctly updated on a field and …
…its siblings" scripting integration test This integration test fails intermittently because we cache the initial total value to be able to compare it to the new total value at the end of the test to check that it's different before doing the assertions. However, this doesn't work as expected because the second `clearInput` call triggers an intermediate total value calculation because it clicks on another input field and that triggers a sandbox event. This results in the `waitForFunction` calls always resolving immediately and since we don't use other means of waiting until the calculation is done (using e.g. `waitForSandboxTrip`) we basically rely on the time between the final click and the assertions to be enough for the sandbox to do its work. If it's is not done in that time, we do the assertions with older values and that makes the test fail. This commit fixes the issue by simply waiting for the total value to be what we expect it to be. This requires less code, is more consistent with the other integration tests and removes the possibility of doing assertions against older values.
Configuration menu - View commit details
-
Copy full SHA for 5cc77d3 - Browse repository at this point
Copy the full SHA 5cc77d3View commit details
Commits on Aug 19, 2024
-
Merge pull request #18623 from timvandermeij/uimanager-test
[Editor] Move setting `window.uiManager` back to the test code
Configuration menu - View commit details
-
Copy full SHA for 79dce53 - Browse repository at this point
Copy the full SHA 79dce53View commit details -
Merge pull request #18624 from timvandermeij/intermittent-scripting-s…
…iblings Fix the "must check that a value is correctly updated on a field and its siblings" scripting integration test
Configuration menu - View commit details
-
Copy full SHA for 88ea60d - Browse repository at this point
Copy the full SHA 88ea60dView commit details -
Use standard glyph mapping for non-embedded and non-composite Calibri…
… fonts (issue 18208) Given that we handle non-embedded Calibri fonts as "mapped to standard font", we really ought to be able to use the same glyph mapping as for an actual standard font. Note that this actually improves consistency in the code, given how we already handle such fonts if they happen to be of the `CIDFontType2` type; see https://github.com/mozilla/pdf.js/blob/b47c7eca83c35b8f9ea170aa3742fc70359726c2/src/core/fonts.js#L1186-L1190
Configuration menu - View commit details
-
Copy full SHA for 6dd3118 - Browse repository at this point
Copy the full SHA 6dd3118View commit details -
Merge pull request #18628 from Snuffleupagus/issue-18208
Use standard glyph mapping for non-embedded and non-composite Calibri fonts (issue 18208)
Configuration menu - View commit details
-
Copy full SHA for e0fc1a3 - Browse repository at this point
Copy the full SHA e0fc1a3View commit details
Commits on Aug 20, 2024
-
Configuration menu - View commit details
-
Copy full SHA for b0c239a - Browse repository at this point
Copy the full SHA b0c239aView commit details
Commits on Aug 21, 2024
-
Send fetch requests for all page dict lookups in parallel
- When adding page dict candidates to the lookup tree, also initiate fetching them from xref, so if they are not yet loaded at all, the XHR will be sent - Only at the top level - assume that if there is a /Pages tree, it is sensibly structured and the number of requests won't be too bad - We can then await on the cached Promise without making the requests pipeline - This has a significant performance improvement for load-on-demand (i.e. with auto-fetch turned off) when a PDF has a large number of pages in the top level /Pages collection, and those pages are spread through a file, so every candidate needs to be fetched separately - PDFs with many pages where each page is a big image and all the pages are at the top level are quite a common output for digitisation programmes - I would have liked to do something like "if it's the top level collection and page count = number of kids, then just fetch that page without traversing the tree" but unfortunately I agree with comments on #8088 that there is no good general solution to allow for /Pages nodes with empty /Kids arrays
Richard Smith (smir) committedAug 21, 2024 Configuration menu - View commit details
-
Copy full SHA for a67b9ae - Browse repository at this point
Copy the full SHA a67b9aeView commit details -
Merge pull request #18627 from richard-smith-preservica/rcs/send-page…
…-dict-requests-in-parallel Send fetch requests for all page dict lookups in parallel
Configuration menu - View commit details
-
Copy full SHA for 908f453 - Browse repository at this point
Copy the full SHA 908f453View commit details -
Introduce a helper method for fetching l10n-data in `PDFDocumentPrope…
…rties` Given the length of the l10n-strings we can slightly reduce verbosity, and thus overall code-size, by introducing a helper method for fetching l10n-data. While testing this I stumbled upon an issue in the `L10n`-class, where an optional chaining operator was placed incorrectly since the underlying method always return an Array; see https://github.com/projectfluent/fluent.js/blob/48e2a62ed45ff2a62a231b2e83cfd8b332d27acb/fluent-dom/src/localization.js#L38-L77
Configuration menu - View commit details
-
Copy full SHA for 2c34b64 - Browse repository at this point
Copy the full SHA 2c34b64View commit details
Commits on Aug 23, 2024
-
Introduce a
L10n
-method to translate an element once, and use that ……in `PDFLayerViewer` Currently we *manually* fetch the "pdfjs-additional-layers" string and update the DOM-element, which was needed since we want to avoid triggering a bunch of otherwise unnecessary translation when appending the entire layer-tree to the DOM. By introducing a new helper method in the `L10n`-class we can avoid this, and instead use a "data-l10n-id" attribute on the element (as most other viewer code does nowadays).
Configuration menu - View commit details
-
Copy full SHA for fabbe54 - Browse repository at this point
Copy the full SHA fabbe54View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8728f7f - Browse repository at this point
Copy the full SHA 8728f7fView commit details -
Merge pull request #18646 from Snuffleupagus/issue-18645
Support an odd number of digits in hexadecimal strings (issue 18645)
Configuration menu - View commit details
-
Copy full SHA for 584fef5 - Browse repository at this point
Copy the full SHA 584fef5View commit details -
Use
HTMLCanvasElement.toBlob()
unconditionally inPDFPrintService
The fallback is very old code, and according to the MDN compatibility data `HTMLCanvasElement.toBlob()` should be available in all browsers that we support now: https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob#browser_compatibility
Configuration menu - View commit details
-
Copy full SHA for 502a429 - Browse repository at this point
Copy the full SHA 502a429View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6a1b1ae - Browse repository at this point
Copy the full SHA 6a1b1aeView commit details -
Merge pull request #18635 from calixteman/avoid_print_dialog
Don't show the print dialog when printing in some integration tests
Configuration menu - View commit details
-
Copy full SHA for 5f7637b - Browse repository at this point
Copy the full SHA 5f7637bView commit details -
Merge pull request #18636 from Snuffleupagus/PDFDocumentProperties-#g…
…etL10nStr Introduce a helper method for fetching l10n-data in `PDFDocumentProperties`
Configuration menu - View commit details
-
Copy full SHA for f025cec - Browse repository at this point
Copy the full SHA f025cecView commit details -
Merge pull request #18643 from Snuffleupagus/l10n-translateOnce
Introduce a `L10n`-method to translate an element once, and use that in `PDFLayerViewer`
Configuration menu - View commit details
-
Copy full SHA for f11baea - Browse repository at this point
Copy the full SHA f11baeaView commit details -
Merge pull request #18644 from Snuffleupagus/PDFPrintService-uncondit…
…ional-toBlob Use `HTMLCanvasElement.toBlob()` unconditionally in `PDFPrintService`
Configuration menu - View commit details
-
Copy full SHA for 037c181 - Browse repository at this point
Copy the full SHA 037c181View commit details
Commits on Aug 25, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 5d31fda - Browse repository at this point
Copy the full SHA 5d31fdaView commit details -
Fix vulnerability in the
micromatch
dependencyThis patch is generated automatically using `npm audit fix` and fixes CVE-2024-4067 (see GHSA-952p-6rrq-rcjv), bringing the vulnerability count back to zero.
Configuration menu - View commit details
-
Copy full SHA for c26aac0 - Browse repository at this point
Copy the full SHA c26aac0View commit details -
Configuration menu - View commit details
-
Copy full SHA for bf778b0 - Browse repository at this point
Copy the full SHA bf778b0View commit details -
Utilize Fluent to format numbers and dates in
PDFDocumentProperties
The `PDFDocumentProperties` dialog may not display correctly formatted data, especially in the GENERIC viewer, since it's using native methods[1] that depend on the *browser* locale instead of the viewer locale as intended. At the time when this dialog was introduced that was probably all we could easily do, but with Fluent we're able to improve things since it's got built-in support for formatting numbers and dates. Not only does this simplify the JavaScript code, but it also gives the localizer more fine-grained control of the desired output. Please find additional information here: - https://projectfluent.org/fluent/guide/builtins.html - https://projectfluent.org/fluent/guide/functions.html --- [1] `toLocaleString`, `toLocaleDateString`, and `toLocaleTimeString`.
Configuration menu - View commit details
-
Copy full SHA for d965588 - Browse repository at this point
Copy the full SHA d965588View commit details -
Utilize Fluent to format dates in the
AnnotationLayer
The `AnnotationLayer` may not display correctly formatted data in PopupAnnotations, especially in the GENERIC viewer, since it's using native methods[1] that depend on the *browser* locale instead of the viewer locale as intended. With Fluent we're able to improve things since it's got built-in support for formatting dates. Not only does this simplify the JavaScript code slightly, but it also gives the localizer more fine-grained control of the desired output. Please find additional information here: - https://projectfluent.org/fluent/guide/builtins.html - https://projectfluent.org/fluent/guide/functions.html --- [1] `toLocaleDateString`, and `toLocaleTimeString`.
Configuration menu - View commit details
-
Copy full SHA for 6ce9f97 - Browse repository at this point
Copy the full SHA 6ce9f97View commit details -
Merge pull request #18648 from timvandermeij/updates
Update dependencies and translations to the most recent versions
Configuration menu - View commit details
-
Copy full SHA for de365b6 - Browse repository at this point
Copy the full SHA de365b6View commit details -
Merge pull request #18638 from Snuffleupagus/PDFDocumentProperties-l1…
…0n-functions Utilize Fluent to format numbers and dates in `PDFDocumentProperties`/`AnnotationLayer`
Configuration menu - View commit details
-
Copy full SHA for cd99be0 - Browse repository at this point
Copy the full SHA cd99be0View commit details -
Upgrade Puppeteer to version 23.1.1
This major version contains three breaking changes that impact us: - The `product` option has been renamed to the more suitable `browser`. - The `page.screenshot()` API returns a `Uint8Array` instead of a `Buffer`, but since `pngjs` requires a `Buffer` object we need to do the conversion using `Buffer.from()` before passing data to `pngjs`. - The browser configuration should be set using a configuration file instead of environment variables. Note that as a bonus this allows us to remove the `cross-env` dependency since that was only used to set the Puppeteer environment variable equally for all operating systems. For more information about the changes between the old and new Puppeteer versions refer to https://github.com/puppeteer/puppeteer/releases.
Configuration menu - View commit details
-
Copy full SHA for 54eead7 - Browse repository at this point
Copy the full SHA 54eead7View commit details -
[Editor] Add a missing parameter in the telemetry for the new alt tex…
…t flow (bug 1914480)
Configuration menu - View commit details
-
Copy full SHA for e8763a0 - Browse repository at this point
Copy the full SHA e8763a0View commit details -
[CRX] Remove obsolete manifest features
In preparation for migrating the Chrome extension to Manifest Version 3, this patch removes parts of the manifest that are obsolete and/or unsupported in MV3. Remove ftp mentions: ftp was dropped from 6 years ago, in Chrome 59. Remove file_browser_handlers: does not work on Chrome OS according to #14161 . MV3 replacement needs a different manifest key and logic, which will be added later. Remove content_security_policy: MV3 does not support unsafe-eval CSP, and PDF.js does not require it. This may result in a mild performance degradation in PDFs that contain PostScript. Remove page_action logic: When this logic was originally introduced, Chrome showed page action buttons in the address bar, which enabled the extension to display the button on specific PDF viewer tabs only. In Chrome 49 (2016), pageActions were dropped from the address bar and put in an UI area that is hidden by default. The user can pin the button to be unconditionally visible on the toolbar, which is distracting. Because the UX is no longer serving the original needs, this patch removes page_action from the manifest.
Configuration menu - View commit details
-
Copy full SHA for 683b511 - Browse repository at this point
Copy the full SHA 683b511View commit details -
[CRX] Remove obsolete extension API calls
These work arounds are no longer relevant to the latest Chrome versions.
Configuration menu - View commit details
-
Copy full SHA for 1d54538 - Browse repository at this point
Copy the full SHA 1d54538View commit details
Commits on Aug 26, 2024
-
Merge pull request #18650 from calixteman/bug1914480
[Editor] Add a missing parameter in the telemetry for the new alt text flow (bug 1914480)
Configuration menu - View commit details
-
Copy full SHA for b58c24a - Browse repository at this point
Copy the full SHA b58c24aView commit details -
[Editor] Utilize Fluent "better" when localizing the resizer DOM-elem…
…ents Currently we manually localize and update the DOM-elements of the editor-resizers, and it seems nicer to utilize Fluent for that task. This can be achieved by updating the l10n-strings to directly target the `aria-label` and then just setting the `data-l10n-id` on the DOM-elements.
Configuration menu - View commit details
-
Copy full SHA for ac75a05 - Browse repository at this point
Copy the full SHA ac75a05View commit details
Commits on Aug 27, 2024
-
Merge pull request #18649 from Snuffleupagus/resizers-fluent
[Editor] Utilize Fluent "better" when localizing the resizer DOM-elements
Configuration menu - View commit details
-
Copy full SHA for e9a319b - Browse repository at this point
Copy the full SHA e9a319bView commit details -
[Editor] Define the "pdfjs-editor-new-alt-text-generated-alt-text-wit…
…h-disclaimer" string once This l10n-string is being re-defined once for every editor, i.e. currently four times, which seems unnecessary. To avoid having to check if this l10n-string exists first, we can utilize rest parameters to move it into the `AnnotationEditor._l10nPromise` Map-definition instead.
Configuration menu - View commit details
-
Copy full SHA for d70f5a1 - Browse repository at this point
Copy the full SHA d70f5a1View commit details -
Merge pull request #18654 from Snuffleupagus/editor-l10n-disclaimer-str
[Editor] Define the "pdfjs-editor-new-alt-text-generated-alt-text-with-disclaimer" string once
Configuration menu - View commit details
-
Copy full SHA for ab052db - Browse repository at this point
Copy the full SHA ab052dbView commit details -
Use the URL global instead of the deprecated url.parse
The Node.js url.parse API (https://nodejs.org/api/url.html#urlparseurlstring-parsequerystring-slashesdenotehost) is deprecated because it's prone to security issues (to the point that Node.js doesn't even publish CVEs for it anymore). The official reccomendation is to instead use the global URL constructor, available both in Node.js and in browsers. Node.js filesystem APIs accept URL objects as parameter, so this also avoids a few URL->filepath conversions.
Configuration menu - View commit details
-
Copy full SHA for 229ad1b - Browse repository at this point
Copy the full SHA 229ad1bView commit details
Commits on Aug 28, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 1658b0a - Browse repository at this point
Copy the full SHA 1658b0aView commit details -
Merge pull request #18661 from calixteman/bug1915434
[Editor] Fix few telemetry issues with the new alt text flow (bug 1915434)
Configuration menu - View commit details
-
Copy full SHA for a41cd38 - Browse repository at this point
Copy the full SHA a41cd38View commit details
Commits on Aug 29, 2024
-
Simplify the
PDFDocumentProperties.#updateUI
methodWe can remove the `reset`-parameter, since it's redundant, given that it's only used after `PDFDocumentProperties.#reset` has been invoked which means that `this.#fieldData === null` which is equivalent to resetting. Also, we don't need to have two separate loops in order to update the UI in this method. Finally, inline the `DEFAULT_FIELD_CONTENT` constant now that it's only used once.
Configuration menu - View commit details
-
Copy full SHA for a5d0e41 - Browse repository at this point
Copy the full SHA a5d0e41View commit details -
Merge pull request #18590 from timvandermeij/puppeteer-23
Upgrade Puppeteer to version 23.1.1
Configuration menu - View commit details
-
Copy full SHA for ea090fe - Browse repository at this point
Copy the full SHA ea090feView commit details -
Merge pull request #18651 from Rob--W/crx-mv3-prep-drop-manifest
[CRX] Remove obsolete manifest features
Configuration menu - View commit details
-
Copy full SHA for ce65623 - Browse repository at this point
Copy the full SHA ce65623View commit details -
Merge pull request #18655 from Snuffleupagus/PDFDocumentProperties-up…
…dateUI-rm-param Simplify the `PDFDocumentProperties.#updateUI` method
Configuration menu - View commit details
-
Copy full SHA for 044e761 - Browse repository at this point
Copy the full SHA 044e761View commit details -
Use "full" localization ids in the
PDFDocumentProperties
classIt was recently brought to my attention that using partial or generated localization ids is bad for maintainability, which means that PR 18636 wasn't the correct thing to do. However, just reverting that one doesn't really fix the problems which is why this patch updates *every* l10n-id in the `PDFDocumentProperties` class (but doesn't touch any `viewer.ftl`-files). Obviously this leads to more verbose code, but that cannot really be helped.
Configuration menu - View commit details
-
Copy full SHA for a6e5416 - Browse repository at this point
Copy the full SHA a6e5416View commit details -
Move the metric-locale check into
PDFDocumentProperties.#parsePageSize
With the introduction of Fluent the `getLanguage`-method became synchronous, hence it no longer seems necessary to do the metric-locale check eagerly in the constructor and it can instead be "delayed" until actually needed.
Configuration menu - View commit details
-
Copy full SHA for 39ac3ef - Browse repository at this point
Copy the full SHA 39ac3efView commit details -
Merge pull request #18657 from nicolo-ribaudo/url
Use the URL global instead of the deprecated url.parse
Configuration menu - View commit details
-
Copy full SHA for 5d94047 - Browse repository at this point
Copy the full SHA 5d94047View commit details -
Merge pull request #18663 from Snuffleupagus/PDFDocumentProperties-fu…
…ll-l10n-ids Use "full" localization ids in the `PDFDocumentProperties` class
Configuration menu - View commit details
-
Copy full SHA for f6216df - Browse repository at this point
Copy the full SHA f6216dfView commit details -
Add a helper function for http/https requests in `src/display/node_st…
…ream.js` Currently we repeat virtually the same http/https request code in two different classes in this file, which seems unnecessary and it leads to more code.
Configuration menu - View commit details
-
Copy full SHA for a94e8ba - Browse repository at this point
Copy the full SHA a94e8baView commit details
Commits on Aug 30, 2024
-
[Editor] Update the loading icon when wait for ML to take into accoun…
…t prefered-reduced-motion setting * The icon has been updated in https://bugzilla.mozilla.org/show_bug.cgi?id=1908920; * Add a linter to check that a svg element doesn't have fill="context-fill" attribute.
Configuration menu - View commit details
-
Copy full SHA for 36c5d19 - Browse repository at this point
Copy the full SHA 36c5d19View commit details -
Merge pull request #18666 from calixteman/update_loading_icon_alt_text
[Editor] Update the loading icon when wait for ML to take into account prefered-reduced-motion setting
Configuration menu - View commit details
-
Copy full SHA for 7494dbc - Browse repository at this point
Copy the full SHA 7494dbcView commit details
Commits on Aug 31, 2024
-
Given the recent l10n-id changes, let's do one more update before the next release to avoid "broken" translations.
Configuration menu - View commit details
-
Copy full SHA for bcc5111 - Browse repository at this point
Copy the full SHA bcc5111View commit details -
Shorten the code that inits
AnnotationEditorLayerBuilder
in the `we……b/pdf_page_view.js` file This code can now utilize logical OR assignment, which is ever so slightly shorter.
Configuration menu - View commit details
-
Copy full SHA for 044f1c9 - Browse repository at this point
Copy the full SHA 044f1c9View commit details -
Use "full" localization ids throughout the code-base
It was recently brought to my attention that using partial or generated localization ids is bad for maintainability, hence this patch goes through the code-base and replaces any such occurrences.
Configuration menu - View commit details
-
Copy full SHA for b01df28 - Browse repository at this point
Copy the full SHA b01df28View commit details -
Merge pull request #18671 from Snuffleupagus/update-l10n
Update l10n files
Configuration menu - View commit details
-
Copy full SHA for ff76217 - Browse repository at this point
Copy the full SHA ff76217View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1b0bfca - Browse repository at this point
Copy the full SHA 1b0bfcaView commit details
Commits on Sep 1, 2024
-
Merge pull request #18674 from Snuffleupagus/full-l10n-ids
Use "full" localization ids throughout the code-base
Configuration menu - View commit details
-
Copy full SHA for 2a68aa6 - Browse repository at this point
Copy the full SHA 2a68aa6View commit details -
Merge pull request #18665 from Snuffleupagus/PDFNodeStream-createRequest
Add a helper function for http/https requests in `src/display/node_stream.js`
Configuration menu - View commit details
-
Copy full SHA for 4a13222 - Browse repository at this point
Copy the full SHA 4a13222View commit details -
Merge pull request #18672 from Snuffleupagus/PDFPageView-AnnotationEd…
…itorLayerBuilder-shorter-init Shorten the code that inits `AnnotationEditorLayerBuilder` in the `web/pdf_page_view.js` file
Configuration menu - View commit details
-
Copy full SHA for bde7a84 - Browse repository at this point
Copy the full SHA bde7a84View commit details -
Merge pull request #18675 from calixteman/nofirefox
Add an option (i.e. --noFirefox) to only use Chrome when running tests
Configuration menu - View commit details
-
Copy full SHA for 9b54191 - Browse repository at this point
Copy the full SHA 9b54191View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4220116 - Browse repository at this point
Copy the full SHA 4220116View commit details -
Merge pull request #18678 from timvandermeij/bump
Bump the stable version in `pdfjs.config`
Configuration menu - View commit details
-
Copy full SHA for 0676ea1 - Browse repository at this point
Copy the full SHA 0676ea1View commit details -
Configuration menu - View commit details
-
Copy full SHA for ec7d0f6 - Browse repository at this point
Copy the full SHA ec7d0f6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8084ae2 - Browse repository at this point
Copy the full SHA 8084ae2View commit details
Commits on Sep 2, 2024
-
Use
Headers
consistently in the differentIPDFStream
implementationsThe `Headers` functionality is now available in all browsers/environments that we support, which allows us to consolidate and simplify how the `httpHeaders` API-option is handled; see https://developer.mozilla.org/en-US/docs/Web/API/Headers#browser_compatibility Also, simplifies the old `NetworkManager`-constructor a little bit.
Configuration menu - View commit details
-
Copy full SHA for d3a94f1 - Browse repository at this point
Copy the full SHA d3a94f1View commit details
Commits on Sep 3, 2024
-
[Editor] Make highlight annotations editable (bug 1883884)
The goal of this patch is to be able to edit existing highlight annotations.
Configuration menu - View commit details
-
Copy full SHA for a62ceed - Browse repository at this point
Copy the full SHA a62ceedView commit details -
[Editor] Make the focused stamp annotation more clear from a screen r…
…eader point of view (bug 1911994) It has been tested with Voice Over (mac) and with NVDA (windows). When an added stamp annotation is focused, the screen reader will announce that it's a figure containing a graphic with the added alt-text.
Configuration menu - View commit details
-
Copy full SHA for 843fde3 - Browse repository at this point
Copy the full SHA 843fde3View commit details -
[Editor] Make the stamp annotations alt text readable by either VO or…
… NVDA (bug 1912001)
Configuration menu - View commit details
-
Copy full SHA for deedbd1 - Browse repository at this point
Copy the full SHA deedbd1View commit details -
Merge pull request #18664 from calixteman/bug1911994
[Editor] Make the focused stamp annotation more clear from a screen reader point of view (bug 1911994)
Configuration menu - View commit details
-
Copy full SHA for 5d8d9ef - Browse repository at this point
Copy the full SHA 5d8d9efView commit details -
Merge pull request #18427 from calixteman/edit_highlight
[Editor] Make highlight annotations editable (bug 1883884)
Configuration menu - View commit details
-
Copy full SHA for a61f4b0 - Browse repository at this point
Copy the full SHA a61f4b0View commit details -
Merge pull request #18679 from timvandermeij/updates
Update dependencies and translations to the most recent versions
Configuration menu - View commit details
-
Copy full SHA for da99f5d - Browse repository at this point
Copy the full SHA da99f5dView commit details -
Merge pull request #18673 from Snuffleupagus/use-Headers
Use `Headers` consistently in the different `IPDFStream` implementations
Configuration menu - View commit details
-
Copy full SHA for 082ad95 - Browse repository at this point
Copy the full SHA 082ad95View commit details -
Merge pull request #18658 from calixteman/bug1912001
[Editor] Make the stamp annotations alt text readable by either VO or NVDA (bug 1912001)
Configuration menu - View commit details
-
Copy full SHA for d369822 - Browse repository at this point
Copy the full SHA d369822View commit details
Commits on Sep 4, 2024
-
[Editor] Remove the disclaimer when the user is editing the alt-text …
…in the new alt-text modal (bug 1911764)
Configuration menu - View commit details
-
Copy full SHA for 4aea51b - Browse repository at this point
Copy the full SHA 4aea51bView commit details -
Improve the
StructTreeLayerBuilder.render
methodIn hindsight it occurred to me that there's a couple of smaller issues with this method after it's made asynchronous (in PR 18658). - If the `render`-method is invoked back-to-back the existing caching doesn't guarantee that re-parsing won't occur, which we can address by introducing a new (private) promise. - If there's any errors fetching and/or parsing the structTree-data, we'd attempt to parse it again on re-rendering despite that being pointless.
Configuration menu - View commit details
-
Copy full SHA for 4b86286 - Browse repository at this point
Copy the full SHA 4b86286View commit details -
Merge pull request #18670 from calixteman/bug1911764
[Editor] Remove the disclaimer when the user is editing the alt-text in the new alt-text modal (bug 1911764)
Configuration menu - View commit details
-
Copy full SHA for 1cdaaad - Browse repository at this point
Copy the full SHA 1cdaaadView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5d622ad - Browse repository at this point
Copy the full SHA 5d622adView commit details -
Merge pull request #18689 from Snuffleupagus/StructTreeLayerBuilder-r…
…ender-caching Improve the `StructTreeLayerBuilder.render` method
Configuration menu - View commit details
-
Copy full SHA for 4fb045b - Browse repository at this point
Copy the full SHA 4fb045bView commit details -
Merge pull request #18690 from calixteman/print_test_afterprint
In the autoprint integration test, resolve the promise on 'afterprint' event
Configuration menu - View commit details
-
Copy full SHA for e3fd62d - Browse repository at this point
Copy the full SHA e3fd62dView commit details
Commits on Sep 5, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 350e3e7 - Browse repository at this point
Copy the full SHA 350e3e7View commit details -
Merge pull request #18697 from calixteman/issue18696
[Editor] Avoid to throw when an highlight annotation is resetted
Configuration menu - View commit details
-
Copy full SHA for 4b906ad - Browse repository at this point
Copy the full SHA 4b906adView commit details -
Make tagged images visible for screen readers (bug 1708040)
The idea is to insert a span in the text layer with an aria-role set to img and use the bounding box provided by the attribute field in the tag dict in order to have non-null dimensions for the image to make it "visible".
Configuration menu - View commit details
-
Copy full SHA for ddba096 - Browse repository at this point
Copy the full SHA ddba096View commit details -
Merge pull request #18692 from calixteman/bug1708040
Make tagged images visible for screen readers (bug 1708040)
Configuration menu - View commit details
-
Copy full SHA for 77c7ec6 - Browse repository at this point
Copy the full SHA 77c7ec6View commit details
Commits on Sep 7, 2024
-
Use response-
Headers
in the differentIPDFStream
implementationsGiven that the `Headers` functionality is now available in all browsers/environments that we support, [see MDN](https://developer.mozilla.org/en-US/docs/Web/API/Headers#browser_compatibility), we can utilize "proper" `Headers` in the helper functions that are used to parse the response.
Configuration menu - View commit details
-
Copy full SHA for 840cc5e - Browse repository at this point
Copy the full SHA 840cc5eView commit details -
Use the
_headersCapability
name inPDFNetworkStreamFullRequestReader
This improves consistency in the code-base since the implementations with the Fetch API respectively Node.js uses that name.
Configuration menu - View commit details
-
Copy full SHA for 2a01931 - Browse repository at this point
Copy the full SHA 2a01931View commit details -
Use "full" localization ids in the
ColorPicker
class (PR 18674 foll……ow-up) Apparently I missed these in PR 18674.
Configuration menu - View commit details
-
Copy full SHA for 9310903 - Browse repository at this point
Copy the full SHA 9310903View commit details -
Use "full" localization ids in the
AltText
class (PR 18674 follow-up)Apparently I missed these in PR 18674.
Configuration menu - View commit details
-
Copy full SHA for 0ffd99a - Browse repository at this point
Copy the full SHA 0ffd99aView commit details -
Avoid to have a white line around the canvas
The canvas must have the same dims as the page in order to avoid to see the page background.
Configuration menu - View commit details
-
Copy full SHA for 68332ec - Browse repository at this point
Copy the full SHA 68332ecView commit details -
Merge pull request #18698 from calixteman/issue18694
Avoid to have a white line around the canvas
Configuration menu - View commit details
-
Copy full SHA for 5369a24 - Browse repository at this point
Copy the full SHA 5369a24View commit details -
Merge pull request #18705 from Snuffleupagus/ColorPicker-full-l10n-ids
Use "full" localization ids in the `ColorPicker` class (PR 18674 follow-up)
Configuration menu - View commit details
-
Copy full SHA for 7274546 - Browse repository at this point
Copy the full SHA 7274546View commit details -
Merge pull request #18706 from Snuffleupagus/AltText-full-l10n-ids
Use "full" localization ids in the `AltText` class (PR 18674 follow-up)
Configuration menu - View commit details
-
Copy full SHA for 5d0c82c - Browse repository at this point
Copy the full SHA 5d0c82cView commit details
Commits on Sep 8, 2024
-
Prevent
.visibleMediumView
from overriding already hidden elements ……(issue 18704, PR 18596 follow-up) *Please note:* As a general rule we probably don't need to fix things affecting *custom* implementations of the default viewer, but in this case a "targeted" fix seem possible that shouldn't (famous last words) break anything else. Ensure that the `.visibleMediumView` class, which is used when the viewer becomes narrow, cannot override the `display`-value for DOM elements that are being *explicitly* hidden either through the associated attribute or class.
Configuration menu - View commit details
-
Copy full SHA for b681ea6 - Browse repository at this point
Copy the full SHA b681ea6View commit details -
Merge pull request #18682 from Snuffleupagus/responseHeaders
Use response-`Headers` in the different `IPDFStream` implementations
Configuration menu - View commit details
-
Copy full SHA for c159cb1 - Browse repository at this point
Copy the full SHA c159cb1View commit details -
Merge pull request #18707 from Snuffleupagus/pr-18596-followup
Prevent `.visibleMediumView` from overriding already hidden elements (issue 18704, PR 18596 follow-up)
Configuration menu - View commit details
-
Copy full SHA for 5785494 - Browse repository at this point
Copy the full SHA 5785494View commit details -
[CRX] Use DNR instead of webRequest in preserve-referer
webRequestBlocking is unavailable in MV3. Non-blocking webRequest can still be used to detect the Referer, but we have to use declarativeNetRequest to change the Referer header as needed.
Configuration menu - View commit details
-
Copy full SHA for bd3d993 - Browse repository at this point
Copy the full SHA bd3d993View commit details -
[CRX] Drop chrome_style from manifest.json
MV3 does not support chrome_style in options_ui. Remove it and replace it with the minimal amount of styles that still has some spacing around the individual settings for readability.
Configuration menu - View commit details
-
Copy full SHA for b23829f - Browse repository at this point
Copy the full SHA b23829fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 23bc46d - Browse repository at this point
Copy the full SHA 23bc46dView commit details -
[CRX] Remove restoretab.js logic
restoretab.js was added in #6233 with the purpose of restoring lost tabs when Chrome closes all extension tabs when it reloads the extension. This forced reload can happen when the user toggles the "Allow access to file URLs" option. This logic does not work any more, and since the use of localStorage is a blocker in migrating to MV3, this patch just drops the logic.
Configuration menu - View commit details
-
Copy full SHA for bc4890d - Browse repository at this point
Copy the full SHA bc4890dView commit details -
[CRX] Replace localStorage in telemetry logic
In MV3, the background script is a service worker. localStorage is not supported in service workers. Switch to storage.local instead. Data migration is not implemented because it is not needed due to the privacy-friendly design of the telemetry: In practice the data is reset about every 4 weeks, when the major version of Chrome is updated.
Configuration menu - View commit details
-
Copy full SHA for 7017d82 - Browse repository at this point
Copy the full SHA 7017d82View commit details -
[CRX] Set manifest_version to 3
- Replace DOM-based pdfHandler.html (background page) with background.js (extension service worker). - Adjust logic of background scripts to account for the fact that the scripts can execute repeatedly during a browser session. Primarily, register relevant extension event handlers at the top level and use in-memory storage.session API to keep track of initialization state. - Extension URL router: replace blocking webRequest with the service worker-specific "fetch" event. - PDF detection: replace blocking webRequest with declarativeNetRequest. This requires Chrome 128+. The next commit will add a fallback for earlier Chrome versions.
Configuration menu - View commit details
-
Copy full SHA for 3fe256c - Browse repository at this point
Copy the full SHA 3fe256cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4327502 - Browse repository at this point
Copy the full SHA 4327502View commit details -
Configuration menu - View commit details
-
Copy full SHA for b3a0ad0 - Browse repository at this point
Copy the full SHA b3a0ad0View commit details -
[CRX] Bump minimum_chrome_version from 88 to 103
The minimum required version is Chrome 103 because wildcard support for web_accessible_resources[].extension_id was introduced in 103, in https://chromium.googlesource.com/chromium/src/+/c9caeb1a080f165f48d2a90559aa35d22965b440 A way to broaden compatibility is to drop that key. By doing so, the minimum required Chrome version is then 96, because of the chrome.storage.session API (and declarativeNetRequestWithHostAccess). Since gulpfile.js already defines "Chrome >= 98" and there is no real point in expanding support to older versions, I'm just setting the minimum version to 103.
Configuration menu - View commit details
-
Copy full SHA for 4bf7be6 - Browse repository at this point
Copy the full SHA 4bf7be6View commit details -
Merge pull request #18681 from Rob--W/crx-mv3-migration
[CRX] Migrate Chrome extension to Manifest Version 3
Configuration menu - View commit details
-
Copy full SHA for a1b45d6 - Browse repository at this point
Copy the full SHA a1b45d6View commit details
Commits on Sep 9, 2024
-
[CRX] Detect availability of DNR responseHeaders before use
Critical fix for old but recent Chrome versions; all requests are otherwise redirected to the viewer.
Configuration menu - View commit details
-
Copy full SHA for 9705169 - Browse repository at this point
Copy the full SHA 9705169View commit details -
Configuration menu - View commit details
-
Copy full SHA for ae13b4a - Browse repository at this point
Copy the full SHA ae13b4aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2f2d74b - Browse repository at this point
Copy the full SHA 2f2d74bView commit details -
Merge pull request #18711 from Rob--W/crx-mv3-fallback-detect
[CRX] Detect availability of DNR responseHeaders before use
Configuration menu - View commit details
-
Copy full SHA for 8e5f06d - Browse repository at this point
Copy the full SHA 8e5f06dView commit details -
[JS] Let AFSpecial_KeystrokeEx match a format without 'decoration' (b…
…ug 1916714) It'll let the user enter 1234567 instead of 123-4567 for example. It works like this in other pdf viewers.
Configuration menu - View commit details
-
Copy full SHA for bae32b4 - Browse repository at this point
Copy the full SHA bae32b4View commit details -
Merge pull request #18708 from timvandermeij/updates
Update dependencies and translations to the most recent versions
Configuration menu - View commit details
-
Copy full SHA for 5f39b59 - Browse repository at this point
Copy the full SHA 5f39b59View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3f23bcb - Browse repository at this point
Copy the full SHA 3f23bcbView commit details -
[Editor] Avoid to have the ML disclaimer when the ML engine isn't rea…
…dy (bug 1917543)
Configuration menu - View commit details
-
Copy full SHA for 6e4b7ee - Browse repository at this point
Copy the full SHA 6e4b7eeView commit details -
Merge pull request #18718 from calixteman/bug1916714
[JS] Let AFSpecial_KeystrokeEx match a format without 'decoration' (bug 1916714)
Configuration menu - View commit details
-
Copy full SHA for 95cd848 - Browse repository at this point
Copy the full SHA 95cd848View commit details -
Merge pull request #18719 from calixteman/bug1917543
[Editor] Avoid to have the ML disclaimer when the ML engine isn't ready (bug 1917543)
Configuration menu - View commit details
-
Copy full SHA for f98e604 - Browse repository at this point
Copy the full SHA f98e604View commit details -
Merge pull request #18716 from calixteman/stamp_auto_resize
[Editor] Avoid to have a stamp editor resizing itself
Configuration menu - View commit details
-
Copy full SHA for 5b4c2fe - Browse repository at this point
Copy the full SHA 5b4c2feView commit details
Commits on Sep 10, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 2883a94 - Browse repository at this point
Copy the full SHA 2883a94View commit details -
Merge pull request #18724 from Snuffleupagus/highlight-rm-l10nPromise
Remove ununsed static `HighlightEditor._l10nPromise` field
Configuration menu - View commit details
-
Copy full SHA for 66ed4b9 - Browse repository at this point
Copy the full SHA 66ed4b9View commit details -
[CRX] Fix feature detect of DNR responseHeaders option
Fix regression from #18711. `urlFilter` is a key of `condition`, not of the `rule`. Consequently, the feature detection method failed to detect the availability of the feature in Chrome 128+.
Configuration menu - View commit details
-
Copy full SHA for a91ba11 - Browse repository at this point
Copy the full SHA a91ba11View commit details -
Configuration menu - View commit details
-
Copy full SHA for 518b776 - Browse repository at this point
Copy the full SHA 518b776View commit details -
Merge pull request #18726 from calixteman/issue18058
Consume any pending path before drawing an annotation
Configuration menu - View commit details
-
Copy full SHA for 0ac7f29 - Browse repository at this point
Copy the full SHA 0ac7f29View commit details
Commits on Sep 11, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 06f9d80 - Browse repository at this point
Copy the full SHA 06f9d80View commit details -
Merge pull request #18730 from calixteman/issue18693
Consider foo-\nBar as a compound word
Configuration menu - View commit details
-
Copy full SHA for 870394d - Browse repository at this point
Copy the full SHA 870394dView commit details -
Ensure that textLayers can be rendered in parallel, without interferi…
…ng with each other Note that the textContent is returned in "chunks" from the API, through the use of `ReadableStream`s, and on the main-thread we're (normally) using just one temporary canvas in order to measure the size of the textLayer `span`s; see the [`#layout`](https://github.com/mozilla/pdf.js/blob/5b4c2fe1a845169ac2b4f8f6335337c434077637/src/display/text_layer.js#L396-L428) method. *Order of events, for parallel textLayer rendering:* 1. Call [`render`](https://github.com/mozilla/pdf.js/blob/5b4c2fe1a845169ac2b4f8f6335337c434077637/src/display/text_layer.js#L155-L177) of the textLayer for page A. 2. Immediately call `render` of the textLayer for page B. 3. The first text-chunk for pageA arrives, and it's parsed/layout which means updating the cached [fontSize/fontFamily](https://github.com/mozilla/pdf.js/blob/5b4c2fe1a845169ac2b4f8f6335337c434077637/src/display/text_layer.js#L409-L413) for the textLayer of page A. 4. The first text-chunk for pageB arrives, which means updating the cached fontSize/fontFamily *for the textLayer of page B* since this data is unique to each `TextLayer`-instance. 5. The second text-chunk for pageA arrives, and we don't update the canvas-font since the cached fontSize/fontFamily still apply from step 3 above. Where this potentially breaks down is between the last steps, since we're using just one temporary canvas for all measurements but have *individual* fontSize/fontFamily caches for each textLayer. Hence it's possible that the canvas-font has actually changed, despite the cached values suggesting otherwise, and to address this we instead cache the fontSize/fontFamily globally through a new (static) helper method. *Note:* Includes a basic unit-test, using dummy text-content, which fails on `master` and passes with this patch. Finally, pun intended, ensure that temporary textLayer-data is cleared *before* the `render`-promise resolves to avoid any intermittent problems in the unit-tests.
Configuration menu - View commit details
-
Copy full SHA for 5b3d3c7 - Browse repository at this point
Copy the full SHA 5b3d3c7View commit details -
Merge pull request #18731 from Snuffleupagus/TextLayer-ensureCtxFont
Ensure that textLayers can be rendered in parallel, without interfering with each other
Configuration menu - View commit details
-
Copy full SHA for c52e848 - Browse repository at this point
Copy the full SHA c52e848View commit details -
[JS] Correctly format floating numbers when they're close to an integ…
…er (bug 1918115)
Configuration menu - View commit details
-
Copy full SHA for ca95264 - Browse repository at this point
Copy the full SHA ca95264View commit details -
Merge pull request #18737 from calixteman/bug1918115
[JS] Correctly format floating numbers when they're close to an integer (bug 1918115)
Configuration menu - View commit details
-
Copy full SHA for cb20d1b - Browse repository at this point
Copy the full SHA cb20d1bView commit details -
Bumps [dset](https://github.com/lukeed/dset) from 3.1.3 to 3.1.4. - [Release notes](https://github.com/lukeed/dset/releases) - [Commits](lukeed/dset@v3.1.3...v3.1.4) --- updated-dependencies: - dependency-name: dset dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
Configuration menu - View commit details
-
Copy full SHA for edd1dfb - Browse repository at this point
Copy the full SHA edd1dfbView commit details
Commits on Sep 12, 2024
-
Merge pull request #18738 from mozilla/dependabot/npm_and_yarn/dset-3…
….1.4 Bump dset from 3.1.3 to 3.1.4
Configuration menu - View commit details
-
Copy full SHA for 1ab9ab6 - Browse repository at this point
Copy the full SHA 1ab9ab6View commit details -
[Editor] Avoid an extra new line when serializing a FreeText annotati…
…on (bug 1897909) The extra new line is added because of using shift+enter to add a new line in the text editor.
Configuration menu - View commit details
-
Copy full SHA for 85e8bac - Browse repository at this point
Copy the full SHA 85e8bacView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6e1b4d6 - Browse repository at this point
Copy the full SHA 6e1b4d6View commit details -
Merge pull request #18740 from calixteman/bug1897909
[Editor] Avoid an extra new line when serializing a FreeText annotation (bug 1897909)
Configuration menu - View commit details
-
Copy full SHA for 4275424 - Browse repository at this point
Copy the full SHA 4275424View commit details -
Merge pull request #18741 from flodolo/fluent_number
Fluent: use explicit NUMBER() in plural variants
Configuration menu - View commit details
-
Copy full SHA for b915a9c - Browse repository at this point
Copy the full SHA b915a9cView commit details -
Use the "pageColorsBackground" option as background-color for non-loa…
…ded pages (issue 18680) This should prevent non-loaded pages from flashing white in e.g. high contrast mode (HCM).
Configuration menu - View commit details
-
Copy full SHA for d86f94a - Browse repository at this point
Copy the full SHA d86f94aView commit details -
Merge pull request #18742 from Snuffleupagus/pageColorsBackground-unl…
…oaded-pages Use the "pageColorsBackground" option as background-color for non-loaded pages (issue 18680)
Configuration menu - View commit details
-
Copy full SHA for c72fb9b - Browse repository at this point
Copy the full SHA c72fb9bView commit details
Commits on Sep 15, 2024
-
[CRX] Enable WebAssembly in Chrome extension
After the removal of 'unsafe-eval' CSP in #18651, WebAssembly fails to load, resulting in issues such as seen in #18457. Manifest Version 3 does not allow 'unsafe-eval', does accept the more specific 'wasm-unsafe-eval' as of Chrome 103. Note that manifest.json already sets minimum_chrome_version to 103. This patch also adds `object-src 'self'` because it was required until Chrome 110. As of Chrome 111, the default is `object-src 'self'` and `object-src` is no longer required. We could drop `object-src` in the future, but for now we need to include it to support Chrome 103 - 110.
Configuration menu - View commit details
-
Copy full SHA for 3170bf3 - Browse repository at this point
Copy the full SHA 3170bf3View commit details -
Merge pull request #18748 from Rob--W/crx-mv3-enable-wasm
[CRX] Enable WebAssembly in Chrome extension
Configuration menu - View commit details
-
Copy full SHA for bf5c987 - Browse repository at this point
Copy the full SHA bf5c987View commit details -
Merge pull request #18728 from Rob--W/crx-mv3-fallback-detect-fixup
[CRX] Fix feature detect of DNR responseHeaders option
Configuration menu - View commit details
-
Copy full SHA for 014ce7c - Browse repository at this point
Copy the full SHA 014ce7cView commit details
Commits on Sep 16, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 46fac8b - Browse repository at this point
Copy the full SHA 46fac8bView commit details -
Merge pull request #18749 from calixteman/issue18626
[Editor] Take into account the device pixel ratio when drawing an added image
Configuration menu - View commit details
-
Copy full SHA for f68310b - Browse repository at this point
Copy the full SHA f68310bView commit details
Commits on Sep 17, 2024
-
Simplify the code that picks the appropriate NetworkStream-implementa…
…tion This code is quite old and has been moved/re-factored a few times over the years, however we can simplify this even further since we don't actually need a function to determine what NetworkStream-implementation to use.
Configuration menu - View commit details
-
Copy full SHA for f77a29d - Browse repository at this point
Copy the full SHA f77a29dView commit details -
Merge pull request #18756 from Snuffleupagus/api-NetworkStream
Simplify the code that picks the appropriate NetworkStream-implementation
Configuration menu - View commit details
-
Copy full SHA for a58cd68 - Browse repository at this point
Copy the full SHA a58cd68View commit details -
Rename the toolbar buttons in order to free their current names
which can then be used for their future parent container. This patch aims to simplify a bit the patch in #18385.
Configuration menu - View commit details
-
Copy full SHA for ee89bd1 - Browse repository at this point
Copy the full SHA ee89bd1View commit details -
Merge pull request #18757 from calixteman/rename_toolbar_buttons
Rename the toolbar buttons in order to free their current names
Configuration menu - View commit details
-
Copy full SHA for 19151fe - Browse repository at this point
Copy the full SHA 19151feView commit details
Commits on Sep 18, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 78dd354 - Browse repository at this point
Copy the full SHA 78dd354View commit details
Commits on Sep 19, 2024
-
Merge pull request #18760 from calixteman/bug1919513
Read a signed integer when using PUSHW in sanitizing a font (bug 1919513)
Configuration menu - View commit details
-
Copy full SHA for 652e3e0 - Browse repository at this point
Copy the full SHA 652e3e0View commit details -
Fix the rendering of the different separators we've in the UI
Currently, the css for a separator is something like { height: 1px; background-color: ... }. But its rendering depends on its position on the screen. So instead of setting the height to 1px, we just set something like { border-top: 1px solid ...; }, this way the final rendering is exactly the same for all the separators.
Configuration menu - View commit details
-
Copy full SHA for b29278e - Browse repository at this point
Copy the full SHA b29278eView commit details -
Merge pull request #18761 from calixteman/fix_separator_color
Fix the rendering of the different separators we've in the UI
Configuration menu - View commit details
-
Copy full SHA for 6222359 - Browse repository at this point
Copy the full SHA 6222359View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9e001f8 - Browse repository at this point
Copy the full SHA 9e001f8View commit details -
Merge pull request #18763 from Snuffleupagus/readme-update-issue-link
Link to the new issue templates from the README (PR 18308 follow-up)
Configuration menu - View commit details
-
Copy full SHA for 96cdff4 - Browse repository at this point
Copy the full SHA 96cdff4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 67af371 - Browse repository at this point
Copy the full SHA 67af371View commit details
Commits on Sep 21, 2024
-
Merge pull request #18766 from Snuffleupagus/issue-18765
Ignore non-existing /Shading resources during parsing (issue 18765)
Configuration menu - View commit details
-
Copy full SHA for ea2172e - Browse repository at this point
Copy the full SHA ea2172eView commit details
Commits on Sep 22, 2024
-
Use
fs/promises
in the Node.js unit-tests (PR 17714 follow-up)This is available in all Node.js versions that we currently support, and using it allows us to remove callback-functions; please see https://nodejs.org/docs/latest-v18.x/api/fs.html#promises-api
Configuration menu - View commit details
-
Copy full SHA for 0a621ba - Browse repository at this point
Copy the full SHA 0a621baView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1a1dfe6 - Browse repository at this point
Copy the full SHA 1a1dfe6View commit details -
Merge pull request #18772 from Snuffleupagus/Node-unit-test-fs-promise
Use `fs/promises` in the Node.js unit-tests (PR 17714 follow-up)
Configuration menu - View commit details
-
Copy full SHA for ddd7b63 - Browse repository at this point
Copy the full SHA ddd7b63View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3753387 - Browse repository at this point
Copy the full SHA 3753387View commit details -
Configuration menu - View commit details
-
Copy full SHA for ed100f2 - Browse repository at this point
Copy the full SHA ed100f2View commit details
Commits on Sep 23, 2024
-
[api-minor] Pass
CanvasFactory
/FilterFactory
, rather than instanc……es, to `getDocument` This unifies the various factory-options, since it's consistent with `CMapReaderFactory`/`StandardFontDataFactory`, and ensures that any needed parameters will always be consistently provided when creating `CanvasFactory`/`FilterFactory`-instances. As shown in the modified example this may simplify some custom implementations, since we now provide the ability to access the `CanvasFactory`-instance used with a particular `getDocument`-invocation.
Configuration menu - View commit details
-
Copy full SHA for bb302dd - Browse repository at this point
Copy the full SHA bb302ddView commit details -
Merge pull request #18771 from timvandermeij/updates
Update dependencies and translations to the most recent versions
Configuration menu - View commit details
-
Copy full SHA for 6aa02ed - Browse repository at this point
Copy the full SHA 6aa02edView commit details -
Merge pull request #18776 from Snuffleupagus/api-CanvasFactory-Filter…
…Factory [api-minor] Pass `CanvasFactory`/`FilterFactory`, rather than instances, to `getDocument`
Configuration menu - View commit details
-
Copy full SHA for bbef99f - Browse repository at this point
Copy the full SHA bbef99fView commit details -
Configuration menu - View commit details
-
Copy full SHA for be60ca6 - Browse repository at this point
Copy the full SHA be60ca6View commit details -
Merge pull request #18777 from Snuffleupagus/version-4.7
Bump library version to `4.7`
Configuration menu - View commit details
-
Copy full SHA for b65b774 - Browse repository at this point
Copy the full SHA b65b774View commit details -
Configuration menu - View commit details
-
Copy full SHA for d35a20a - Browse repository at this point
Copy the full SHA d35a20aView commit details -
Configuration menu - View commit details
-
Copy full SHA for c8af3f1 - Browse repository at this point
Copy the full SHA c8af3f1View commit details -
Merge pull request #18779 from calixteman/bug1920515
[Editor] Don't show the ml toggle button when the ml is disabled (bug 1920515)
Configuration menu - View commit details
-
Copy full SHA for c90ce5d - Browse repository at this point
Copy the full SHA c90ce5dView commit details -
Refactor the toolbar html & css to improve its overall accessibility …
…(bug 1171799, bug 1855695) The first goal of this patch was to remove the tabindex because it helps to improve overall a11y. That led to move some html elements associated with the buttons which helped to position these elements relatively to their buttons. Consequently it was easy to change the toolbar height (configurable in Firefox with the pref browser.uidensity): it's the second goal of this patch. For a11y reasons we want to be able to change the height of the toolbar to make the buttons larger.
Configuration menu - View commit details
-
Copy full SHA for 6f40ed7 - Browse repository at this point
Copy the full SHA 6f40ed7View commit details
Commits on Sep 24, 2024
-
Merge pull request #18385 from calixteman/remove_tabindex
Refactor the toolbar html & css to improve its overall accessibility (bug 1171799, bug 1855695)
Configuration menu - View commit details
-
Copy full SHA for 313ab9a - Browse repository at this point
Copy the full SHA 313ab9aView commit details -
Merge pull request #18781 from timvandermeij/typescript
Update `typescript` to version 5.6.2
Configuration menu - View commit details
-
Copy full SHA for 45fef4c - Browse repository at this point
Copy the full SHA 45fef4cView commit details -
Configuration menu - View commit details
-
Copy full SHA for e9b10ae - Browse repository at this point
Copy the full SHA e9b10aeView commit details -
Merge pull request #18783 from calixteman/rm_useless_css
Remove useless css variable --editor-toolbar-base-offset
Configuration menu - View commit details
-
Copy full SHA for cc63941 - Browse repository at this point
Copy the full SHA cc63941View commit details -
Configuration menu - View commit details
-
Copy full SHA for 50517b8 - Browse repository at this point
Copy the full SHA 50517b8View commit details -
Merge pull request #18784 from calixteman/rm_useless_css
Remove duplicated --toolbar-height definition in the css
Configuration menu - View commit details
-
Copy full SHA for 529906c - Browse repository at this point
Copy the full SHA 529906cView commit details
Commits on Sep 25, 2024
-
Correctly compute the font size when printing a text field with an au…
…to font size (bug 1917734)
Configuration menu - View commit details
-
Copy full SHA for fc1564f - Browse repository at this point
Copy the full SHA fc1564fView commit details -
Configuration menu - View commit details
-
Copy full SHA for e23159c - Browse repository at this point
Copy the full SHA e23159cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c407a2 - Browse repository at this point
Copy the full SHA 5c407a2View commit details -
Merge pull request #18790 from calixteman/bug1917734
Correctly compute the font size when printing a text field with an auto font size (bug 1917734)
Configuration menu - View commit details
-
Copy full SHA for 4575810 - Browse repository at this point
Copy the full SHA 4575810View commit details -
Merge pull request #18786 from calixteman/update_toolbar_height
Increase the size of the toolbar depending on the uidensity (bug 1171799)
Configuration menu - View commit details
-
Copy full SHA for 4ab381f - Browse repository at this point
Copy the full SHA 4ab381fView commit details -
Merge pull request #18791 from sylvestre/patch-1
Add Calixte to the list of authors
Configuration menu - View commit details
-
Copy full SHA for 9735a84 - Browse repository at this point
Copy the full SHA 9735a84View commit details
Commits on Sep 26, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 135ee03 - Browse repository at this point
Copy the full SHA 135ee03View commit details -
Configuration menu - View commit details
-
Copy full SHA for f765b5a - Browse repository at this point
Copy the full SHA f765b5aView commit details -
Merge pull request #18795 from Snuffleupagus/rm-splitToolbarButton
Remove the unused `splitToolbarButton` CSS class (PR 18385 follow-up)
Configuration menu - View commit details
-
Copy full SHA for 17008dd - Browse repository at this point
Copy the full SHA 17008ddView commit details -
Merge pull request #18796 from Snuffleupagus/unify-toolbarContainer
Unify separate `#toolbarContainer`-blocks in the CSS (PR 18385 follow-up)
Configuration menu - View commit details
-
Copy full SHA for a128378 - Browse repository at this point
Copy the full SHA a128378View commit details -
Slightly re-factor the
transportFactory
initialization in `getDocum……ent` Given that the `WorkerTransport`-constructor will access all possible factory-instances, let's ensure that the `transportFactory`-object always has a consistent shape regardless of other options. Also, since `useWorkerFetch` is always true in MOZCENTRAL builds we never need to create `CMapReaderFactory`/`StandardFontDataFactory`-instances there.
Configuration menu - View commit details
-
Copy full SHA for a989244 - Browse repository at this point
Copy the full SHA a989244View commit details -
Fix the rendering of tiling pattern when the steps are lower than the…
… tile dimensions (bug 1837738) It fixes #16038. The idea is to create a pattern having the steps for dimensions and then draw the base tile and the different overlapping parts on it.
Configuration menu - View commit details
-
Copy full SHA for 6d88f9f - Browse repository at this point
Copy the full SHA 6d88f9fView commit details -
Merge pull request #18798 from calixteman/pattern_negative_bbox
Fix the rendering of tiling pattern when the steps are lower than the tile dimensions (bug 1837738)
Configuration menu - View commit details
-
Copy full SHA for 2ff8035 - Browse repository at this point
Copy the full SHA 2ff8035View commit details -
Merge pull request #18785 from Snuffleupagus/transportFactory-init
Slightly re-factor the `transportFactory` initialization in `getDocument`
Configuration menu - View commit details
-
Copy full SHA for 3902a14 - Browse repository at this point
Copy the full SHA 3902a14View commit details -
Remove
trackTransform
arguments fromCachedCanvases.getCanvas
-cal……ls (PR 15281 follow-up) This became unused in PR 15281, however that patch clearly missed some occurrences; sorry about that!
Configuration menu - View commit details
-
Copy full SHA for fa2d7fc - Browse repository at this point
Copy the full SHA fa2d7fcView commit details -
Merge pull request #18799 from Snuffleupagus/rm-more-getCanvas-trackT…
…ransform Remove `trackTransform` arguments from `CachedCanvases.getCanvas`-calls (PR 15281 follow-up)
Configuration menu - View commit details
-
Copy full SHA for 6daaa2f - Browse repository at this point
Copy the full SHA 6daaa2fView commit details -
Add basic support for non-embedded GillSansMT fonts (issue 18801)
Given the following excerpt from the [Wikipedia article](https://en.wikipedia.org/wiki/Gill_Sans), mapping this to Helvetica should hopefully be fine: > It has been described as "the British Helvetica" because of its lasting popularity in British design.
Configuration menu - View commit details
-
Copy full SHA for 7db9941 - Browse repository at this point
Copy the full SHA 7db9941View commit details -
Merge pull request #18802 from Snuffleupagus/issue-18801
Add basic support for non-embedded GillSansMT fonts (issue 18801)
Configuration menu - View commit details
-
Copy full SHA for 7063be9 - Browse repository at this point
Copy the full SHA 7063be9View commit details -
[Editor] Avoid to have a selected stamp annotation on top of the seco…
…ndary toolbar (bug 1911980)
Configuration menu - View commit details
-
Copy full SHA for ec01af6 - Browse repository at this point
Copy the full SHA ec01af6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0382dd0 - Browse repository at this point
Copy the full SHA 0382dd0View commit details -
Merge pull request #18800 from calixteman/popup_deletion
[Editor] When deleting an annotation with popup, then delete the popup too
Configuration menu - View commit details
-
Copy full SHA for c46ac3f - Browse repository at this point
Copy the full SHA c46ac3fView commit details -
Merge pull request #18793 from calixteman/bug1911980
[Editor] Avoid to have a selected stamp annotation on top of the secondary toolbar (bug 1911980)
Configuration menu - View commit details
-
Copy full SHA for 642b9a5 - Browse repository at this point
Copy the full SHA 642b9a5View commit details
Commits on Sep 28, 2024
-
Ensure that the CursorTools-buttons are disabled e.g. during editing …
…(PR 15522 follow-up) We disable any non-default CursorTool in PresentationMode and during Editing, since they don't make sense there and to prevent problems such as e.g. [bug 1792422](https://bugzilla.mozilla.org/show_bug.cgi?id=1792422). Hence it seems like a good idea to *also* disable the relevant SecondaryToolbar-buttons, to avoid the user being surprised that the CursorTools-buttons do nothing if clicked.
Configuration menu - View commit details
-
Copy full SHA for b1df164 - Browse repository at this point
Copy the full SHA b1df164View commit details -
Merge pull request #18812 from Snuffleupagus/pr-15522-followup
Ensure that the CursorTools-buttons are disabled e.g. during editing (PR 15522 follow-up)
Configuration menu - View commit details
-
Copy full SHA for a7e1bf6 - Browse repository at this point
Copy the full SHA a7e1bf6View commit details
Commits on Sep 29, 2024
-
[api-minor] Update the minimum supported Google Chrome version to 103
This patch updates the minimum supported browsers as follows: - Google Chrome 103[1], which was released on 2022-06-21; see https://chromereleases.googleblog.com/2022/06/stable-channel-update-for-desktop_21.html Note that nowadays we usually try, where feasible and possible, to support browsers that are about two years old. By limiting support to only "recent" browsers we reduce the risk of holding back improvements of the *built-in* Firefox PDF Viewer, and also (significantly) reduce the maintenance/support burden for the PDF.js contributors. *Please note:* As always, the minimum supported browser version assumes that a `legacy`-build of the PDF.js library is being used; see https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions#faq-support --- [1] This is consistent with the minimum supported version in the recently updated Google Chrome addon.
Configuration menu - View commit details
-
Copy full SHA for 1267e28 - Browse repository at this point
Copy the full SHA 1267e28View commit details
Commits on Oct 1, 2024
-
Merge pull request #18822 from Snuffleupagus/Chrome-103
[api-minor] Update the minimum supported Google Chrome version to 103
Configuration menu - View commit details
-
Copy full SHA for 783facb - Browse repository at this point
Copy the full SHA 783facbView commit details