Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Update from upstream #1

Merged
merged 10,000 commits into from
Oct 1, 2024
Merged

Update from upstream #1

merged 10,000 commits into from
Oct 1, 2024
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Aug 8, 2024

  1. Merge pull request #18568 from timvandermeij/css-findbar

    Group and scope the findbar rules using CSS nesting
    timvandermeij authored Aug 8, 2024
    Configuration menu
    Copy the full SHA
    4569e88 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bad214f View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2024

  1. [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.
    Snuffleupagus committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    c0bf3d3 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #18584 from calixteman/preview_background

    [Editor] Change the background color of the image preview in the new alt text dialog
    calixteman authored Aug 9, 2024
    Configuration menu
    Copy the full SHA
    36dc666 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #18586 from Snuffleupagus/editor-AbortSignal-any

    [Editor] Remove event listeners with `AbortSignal.any()`
    Snuffleupagus authored Aug 9, 2024
    Configuration menu
    Copy the full SHA
    b7198d3 View commit details
    Browse the repository at this point in the history
  4. Check that AbortSignal.any() is supported in PDFViewer 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.
    Snuffleupagus committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    da9cfe7 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #18587 from Snuffleupagus/PDFViewer-check-AbortSig…

    …nal-any
    
    Check that `AbortSignal.any()` is supported in `PDFViewer` too (PR 18586 follow-up)
    timvandermeij authored Aug 9, 2024
    Configuration menu
    Copy the full SHA
    daabc7a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    31727cc View commit details
    Browse the repository at this point in the history
  7. 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"
    calixteman authored Aug 9, 2024
    Configuration menu
    Copy the full SHA
    b6b99a7 View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2024

  1. Configuration menu
    Copy the full SHA
    723c769 View commit details
    Browse the repository at this point in the history
  2. Use a few local variables in PDFSidebar.#addEventListeners

    This, ever so slightly, shortens the code for a couple of repeatedly accessed class fields.
    Snuffleupagus committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    984deba View commit details
    Browse the repository at this point in the history
  3. 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.
    Snuffleupagus committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    7619171 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    be685a2 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    debcb22 View commit details
    Browse the repository at this point in the history
  6. Remove the enableHighlightEditor preference

    This 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.
    Snuffleupagus committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    b9f5e78 View commit details
    Browse the repository at this point in the history
  7. Merge pull request #18581 from calixteman/new_alt_text_test_1

    [Editor] Add a first test to test the new alt text flow
    timvandermeij authored Aug 10, 2024
    Configuration menu
    Copy the full SHA
    4367fc1 View commit details
    Browse the repository at this point in the history
  8. Merge pull request #18592 from Snuffleupagus/firefoxcom-AbortSignal-any

    [Firefox] Remove the "loadaiengineprogress" listener with `AbortSignal.any()`
    timvandermeij authored Aug 10, 2024
    Configuration menu
    Copy the full SHA
    ec48602 View commit details
    Browse the repository at this point in the history
  9. Merge pull request #18593 from Snuffleupagus/PDFSidebar-AbortController

    Remove the sidebar resizing event listeners with an `AbortController`
    timvandermeij authored Aug 10, 2024
    Configuration menu
    Copy the full SHA
    6e4b347 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    0030518 View commit details
    Browse the repository at this point in the history
  11. Merge pull request #18589 from calixteman/new_alt_text_telemetry

    [Editor] Add the telemetry for the new alt text (bug 1912500)
    calixteman authored Aug 10, 2024
    Configuration menu
    Copy the full SHA
    e44e4db View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2024

  1. 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 <[email protected]>
    timvandermeij and calixteman committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    97b761d View commit details
    Browse the repository at this point in the history
  2. 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
    timvandermeij authored Aug 11, 2024
    Configuration menu
    Copy the full SHA
    efe00cf View commit details
    Browse the repository at this point in the history
  3. Remove the secondaryToolbarButton CSS class

    Secondary 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 <[email protected]>
    timvandermeij and calixteman committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    2a22424 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #18596 from timvandermeij/css-secondary-toolbar-pa…

    …rt-2
    
    Remove the `secondaryToolbarButton` CSS class
    timvandermeij authored Aug 11, 2024
    Configuration menu
    Copy the full SHA
    aa2337f View commit details
    Browse the repository at this point in the history
  5. 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 <[email protected]>
    timvandermeij and calixteman committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    5193adf View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2024

  1. 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.
    Snuffleupagus committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    aebb853 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #18597 from timvandermeij/css-secondary-toolbar-pa…

    …rt-3
    
    Group and scope the secondary toolbar rules using CSS nesting
    timvandermeij authored Aug 12, 2024
    Configuration menu
    Copy the full SHA
    9103cf0 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #18598 from Snuffleupagus/base-class-init-TESTING-…

    …check
    
    Limit base-class initialization checks to development and TESTING modes
    timvandermeij authored Aug 12, 2024
    Configuration menu
    Copy the full SHA
    d0fbfe1 View commit details
    Browse the repository at this point in the history
  4. Merge the duplicate .editorParamsToolbar CSS blocks

    Now 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 <[email protected]>
    timvandermeij and calixteman committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    2a982e7 View commit details
    Browse the repository at this point in the history
  5. 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 <[email protected]>
    timvandermeij and calixteman committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    68bda90 View commit details
    Browse the repository at this point in the history
  6. 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 <[email protected]>
    timvandermeij and calixteman committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    9fd23d8 View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2024

  1. Merge pull request #18594 from Snuffleupagus/rm-enableHighlightEditor…

    …-pref
    
    Remove the `enableHighlightEditor` preference
    Snuffleupagus authored Aug 13, 2024
    Configuration menu
    Copy the full SHA
    17b2463 View commit details
    Browse the repository at this point in the history
  2. 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.
    nicolo-ribaudo committed Aug 13, 2024
    Configuration menu
    Copy the full SHA
    f051597 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #18549 from nicolo-ribaudo/custom-find-matcher-sub…

    …class
    
    [api-minor] Allow specifying custom match logic in PDFFindController
    Snuffleupagus authored Aug 13, 2024
    Configuration menu
    Copy the full SHA
    a999b34 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    af03894 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #18604 from Snuffleupagus/version-4.6

    Bump library version to `4.6`
    Snuffleupagus authored Aug 13, 2024
    Configuration menu
    Copy the full SHA
    14f6cbe View commit details
    Browse the repository at this point in the history
  6. Merge pull request #18601 from timvandermeij/css-cleanup

    Improve the viewer CSS after nesting the findbar and secondary toolbar rules
    Snuffleupagus authored Aug 13, 2024
    Configuration menu
    Copy the full SHA
    038e482 View commit details
    Browse the repository at this point in the history
  7. Use the local eventBus in the AnnotationEditorUIManager constructor

    This shortens the code ever so slightly, which cannot hurt.
    Snuffleupagus committed Aug 13, 2024
    Configuration menu
    Copy the full SHA
    8273553 View commit details
    Browse the repository at this point in the history
  8. 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.
    Snuffleupagus committed Aug 13, 2024
    Configuration menu
    Copy the full SHA
    9e0c6ef View commit details
    Browse the repository at this point in the history
  9. Merge pull request #18605 from Snuffleupagus/issue-18196

    Handle the "switchannotationeditorparams" event in the editor-code (issue 18196)
    timvandermeij authored Aug 13, 2024
    Configuration menu
    Copy the full SHA
    8446d3a View commit details
    Browse the repository at this point in the history

Commits on Aug 15, 2024

  1. 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.
    Snuffleupagus committed Aug 15, 2024
    Configuration menu
    Copy the full SHA
    4caa309 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9bd0085 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #18610 from Snuffleupagus/bug-report-version-descr…

    …iption
    
    Link to official releases and the demo viewer in the bug report template
    Snuffleupagus authored Aug 15, 2024
    Configuration menu
    Copy the full SHA
    17f387b View commit details
    Browse the repository at this point in the history
  4. Merge pull request #18611 from calixteman/fix_telemetry

    Fix the telemetry for the new alt-text flow
    calixteman authored Aug 15, 2024
    Configuration menu
    Copy the full SHA
    b60261e View commit details
    Browse the repository at this point in the history
  5. Shorten the PDFViewerApplication._parseHashParams method

    The 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.
    Snuffleupagus committed Aug 15, 2024
    Configuration menu
    Copy the full SHA
    ee7441d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    75e5236 View commit details
    Browse the repository at this point in the history
  7. Merge pull request #18613 from calixteman/enable_tests

    Enable disabled integration tests for Firefox
    timvandermeij authored Aug 15, 2024
    Configuration menu
    Copy the full SHA
    73bae55 View commit details
    Browse the repository at this point in the history
  8. Merge pull request #18612 from Snuffleupagus/_parseHashParams-shorten

    Shorten the `PDFViewerApplication._parseHashParams` method
    timvandermeij authored Aug 15, 2024
    Configuration menu
    Copy the full SHA
    d8d9cff View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    140dd3c View commit details
    Browse the repository at this point in the history
  10. Fix vulnerability in the axios dependency

    This 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.
    timvandermeij committed Aug 15, 2024
    Configuration menu
    Copy the full SHA
    44f7e3c View commit details
    Browse the repository at this point in the history
  11. Fix the repository URLs in the importl10n script

    We 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.
    timvandermeij committed Aug 15, 2024
    Configuration menu
    Copy the full SHA
    f6c2860 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    0aada51 View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2024

  1. Merge pull request #18615 from timvandermeij/updates

    Update dependencies and translations to the most recent versions
    timvandermeij authored Aug 16, 2024
    Configuration menu
    Copy the full SHA
    f7d3add View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2024

  1. 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.
    calixteman committed Aug 18, 2024
    Configuration menu
    Copy the full SHA
    5e49480 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #18617 from calixteman/early_event_handler

    Set the event handlers in the integration tests before any event is triggered
    timvandermeij authored Aug 18, 2024
    Configuration menu
    Copy the full SHA
    b47c7ec View commit details
    Browse the repository at this point in the history
  3. [Editor] Move setting window.uiManager back to the test code

    In 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.
    timvandermeij committed Aug 18, 2024
    Configuration menu
    Copy the full SHA
    db06011 View commit details
    Browse the repository at this point in the history
  4. 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.
    timvandermeij committed Aug 18, 2024
    Configuration menu
    Copy the full SHA
    5cc77d3 View commit details
    Browse the repository at this point in the history

Commits on Aug 19, 2024

  1. Merge pull request #18623 from timvandermeij/uimanager-test

    [Editor] Move setting `window.uiManager` back to the test code
    timvandermeij authored Aug 19, 2024
    Configuration menu
    Copy the full SHA
    79dce53 View commit details
    Browse the repository at this point in the history
  2. 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
    timvandermeij authored Aug 19, 2024
    Configuration menu
    Copy the full SHA
    88ea60d View commit details
    Browse the repository at this point in the history
  3. 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
    Snuffleupagus committed Aug 19, 2024
    Configuration menu
    Copy the full SHA
    6dd3118 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #18628 from Snuffleupagus/issue-18208

    Use standard glyph mapping for non-embedded and non-composite Calibri fonts (issue 18208)
    timvandermeij authored Aug 19, 2024
    Configuration menu
    Copy the full SHA
    e0fc1a3 View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2024

  1. Configuration menu
    Copy the full SHA
    b0c239a View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2024

  1. 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) committed Aug 21, 2024
    Configuration menu
    Copy the full SHA
    a67b9ae View commit details
    Browse the repository at this point in the history
  2. 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
    Snuffleupagus authored Aug 21, 2024
    Configuration menu
    Copy the full SHA
    908f453 View commit details
    Browse the repository at this point in the history
  3. 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
    Snuffleupagus committed Aug 21, 2024
    Configuration menu
    Copy the full SHA
    2c34b64 View commit details
    Browse the repository at this point in the history

Commits on Aug 23, 2024

  1. 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).
    Snuffleupagus committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    fabbe54 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8728f7f View commit details
    Browse the repository at this point in the history
  3. Merge pull request #18646 from Snuffleupagus/issue-18645

    Support an odd number of digits in hexadecimal strings (issue 18645)
    Snuffleupagus authored Aug 23, 2024
    Configuration menu
    Copy the full SHA
    584fef5 View commit details
    Browse the repository at this point in the history
  4. Use HTMLCanvasElement.toBlob() unconditionally in PDFPrintService

    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
    Snuffleupagus committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    502a429 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6a1b1ae View commit details
    Browse the repository at this point in the history
  6. Merge pull request #18635 from calixteman/avoid_print_dialog

    Don't show the print dialog when printing in some integration tests
    timvandermeij authored Aug 23, 2024
    Configuration menu
    Copy the full SHA
    5f7637b View commit details
    Browse the repository at this point in the history
  7. Merge pull request #18636 from Snuffleupagus/PDFDocumentProperties-#g…

    …etL10nStr
    
    Introduce a helper method for fetching l10n-data in `PDFDocumentProperties`
    timvandermeij authored Aug 23, 2024
    Configuration menu
    Copy the full SHA
    f025cec View commit details
    Browse the repository at this point in the history
  8. Merge pull request #18643 from Snuffleupagus/l10n-translateOnce

    Introduce a `L10n`-method to translate an element once, and use that in `PDFLayerViewer`
    timvandermeij authored Aug 23, 2024
    Configuration menu
    Copy the full SHA
    f11baea View commit details
    Browse the repository at this point in the history
  9. Merge pull request #18644 from Snuffleupagus/PDFPrintService-uncondit…

    …ional-toBlob
    
    Use `HTMLCanvasElement.toBlob()` unconditionally in `PDFPrintService`
    timvandermeij authored Aug 23, 2024
    Configuration menu
    Copy the full SHA
    037c181 View commit details
    Browse the repository at this point in the history

Commits on Aug 25, 2024

  1. Configuration menu
    Copy the full SHA
    5d31fda View commit details
    Browse the repository at this point in the history
  2. Fix vulnerability in the micromatch dependency

    This 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.
    timvandermeij committed Aug 25, 2024
    Configuration menu
    Copy the full SHA
    c26aac0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bf778b0 View commit details
    Browse the repository at this point in the history
  4. 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`.
    Snuffleupagus committed Aug 25, 2024
    Configuration menu
    Copy the full SHA
    d965588 View commit details
    Browse the repository at this point in the history
  5. 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`.
    Snuffleupagus committed Aug 25, 2024
    Configuration menu
    Copy the full SHA
    6ce9f97 View commit details
    Browse the repository at this point in the history
  6. Merge pull request #18648 from timvandermeij/updates

    Update dependencies and translations to the most recent versions
    timvandermeij authored Aug 25, 2024
    Configuration menu
    Copy the full SHA
    de365b6 View commit details
    Browse the repository at this point in the history
  7. Merge pull request #18638 from Snuffleupagus/PDFDocumentProperties-l1…

    …0n-functions
    
    Utilize Fluent to format numbers and dates in `PDFDocumentProperties`/`AnnotationLayer`
    timvandermeij authored Aug 25, 2024
    Configuration menu
    Copy the full SHA
    cd99be0 View commit details
    Browse the repository at this point in the history
  8. 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.
    timvandermeij committed Aug 25, 2024
    Configuration menu
    Copy the full SHA
    54eead7 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    e8763a0 View commit details
    Browse the repository at this point in the history
  10. [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.
    Rob--W committed Aug 25, 2024
    Configuration menu
    Copy the full SHA
    683b511 View commit details
    Browse the repository at this point in the history
  11. [CRX] Remove obsolete extension API calls

    These work arounds are no longer relevant to the latest Chrome versions.
    Rob--W committed Aug 25, 2024
    Configuration menu
    Copy the full SHA
    1d54538 View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2024

  1. Merge pull request #18650 from calixteman/bug1914480

    [Editor] Add a missing parameter in the telemetry for the new alt text flow (bug 1914480)
    calixteman authored Aug 26, 2024
    Configuration menu
    Copy the full SHA
    b58c24a View commit details
    Browse the repository at this point in the history
  2. [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.
    Snuffleupagus committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    ac75a05 View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2024

  1. Merge pull request #18649 from Snuffleupagus/resizers-fluent

    [Editor] Utilize Fluent "better" when localizing the resizer DOM-elements
    Snuffleupagus authored Aug 27, 2024
    Configuration menu
    Copy the full SHA
    e9a319b View commit details
    Browse the repository at this point in the history
  2. [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.
    Snuffleupagus committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    d70f5a1 View commit details
    Browse the repository at this point in the history
  3. 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
    Snuffleupagus authored Aug 27, 2024
    Configuration menu
    Copy the full SHA
    ab052db View commit details
    Browse the repository at this point in the history
  4. 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.
    nicolo-ribaudo committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    229ad1b View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2024

  1. Configuration menu
    Copy the full SHA
    1658b0a View commit details
    Browse the repository at this point in the history
  2. Merge pull request #18661 from calixteman/bug1915434

    [Editor] Fix few telemetry issues with the new alt text flow (bug 1915434)
    calixteman authored Aug 28, 2024
    Configuration menu
    Copy the full SHA
    a41cd38 View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2024

  1. Simplify the PDFDocumentProperties.#updateUI method

    We 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.
    Snuffleupagus committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    a5d0e41 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #18590 from timvandermeij/puppeteer-23

    Upgrade Puppeteer to version 23.1.1
    timvandermeij authored Aug 29, 2024
    Configuration menu
    Copy the full SHA
    ea090fe View commit details
    Browse the repository at this point in the history
  3. Merge pull request #18651 from Rob--W/crx-mv3-prep-drop-manifest

    [CRX] Remove obsolete manifest features
    timvandermeij authored Aug 29, 2024
    Configuration menu
    Copy the full SHA
    ce65623 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #18655 from Snuffleupagus/PDFDocumentProperties-up…

    …dateUI-rm-param
    
    Simplify the `PDFDocumentProperties.#updateUI` method
    timvandermeij authored Aug 29, 2024
    Configuration menu
    Copy the full SHA
    044e761 View commit details
    Browse the repository at this point in the history
  5. Use "full" localization ids in the PDFDocumentProperties class

    It 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.
    Snuffleupagus committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    a6e5416 View commit details
    Browse the repository at this point in the history
  6. 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.
    Snuffleupagus committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    39ac3ef View commit details
    Browse the repository at this point in the history
  7. Merge pull request #18657 from nicolo-ribaudo/url

    Use the URL global instead of the deprecated url.parse
    timvandermeij authored Aug 29, 2024
    Configuration menu
    Copy the full SHA
    5d94047 View commit details
    Browse the repository at this point in the history
  8. Merge pull request #18663 from Snuffleupagus/PDFDocumentProperties-fu…

    …ll-l10n-ids
    
    Use "full" localization ids in the `PDFDocumentProperties` class
    timvandermeij authored Aug 29, 2024
    Configuration menu
    Copy the full SHA
    f6216df View commit details
    Browse the repository at this point in the history
  9. 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.
    Snuffleupagus committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    a94e8ba View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2024

  1. [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.
    calixteman committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    36c5d19 View commit details
    Browse the repository at this point in the history
  2. 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
    calixteman authored Aug 30, 2024
    Configuration menu
    Copy the full SHA
    7494dbc View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2024

  1. Update l10n files

    Given the recent l10n-id changes, let's do one more update before the next release to avoid "broken" translations.
    Snuffleupagus committed Aug 31, 2024
    Configuration menu
    Copy the full SHA
    bcc5111 View commit details
    Browse the repository at this point in the history
  2. 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.
    Snuffleupagus committed Aug 31, 2024
    Configuration menu
    Copy the full SHA
    044f1c9 View commit details
    Browse the repository at this point in the history
  3. 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.
    Snuffleupagus committed Aug 31, 2024
    Configuration menu
    Copy the full SHA
    b01df28 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #18671 from Snuffleupagus/update-l10n

    Update l10n files
    Snuffleupagus authored Aug 31, 2024
    Configuration menu
    Copy the full SHA
    ff76217 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1b0bfca View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2024

  1. Merge pull request #18674 from Snuffleupagus/full-l10n-ids

    Use "full" localization ids throughout the code-base
    Snuffleupagus authored Sep 1, 2024
    Configuration menu
    Copy the full SHA
    2a68aa6 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #18665 from Snuffleupagus/PDFNodeStream-createRequest

    Add a helper function for http/https requests in `src/display/node_stream.js`
    timvandermeij authored Sep 1, 2024
    Configuration menu
    Copy the full SHA
    4a13222 View commit details
    Browse the repository at this point in the history
  3. 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
    timvandermeij authored Sep 1, 2024
    Configuration menu
    Copy the full SHA
    bde7a84 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #18675 from calixteman/nofirefox

    Add an option (i.e. --noFirefox) to only use Chrome when running tests
    timvandermeij authored Sep 1, 2024
    Configuration menu
    Copy the full SHA
    9b54191 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4220116 View commit details
    Browse the repository at this point in the history
  6. Merge pull request #18678 from timvandermeij/bump

    Bump the stable version in `pdfjs.config`
    timvandermeij authored Sep 1, 2024
    Configuration menu
    Copy the full SHA
    0676ea1 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    ec7d0f6 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    8084ae2 View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2024

  1. Use Headers consistently in the different IPDFStream implementations

    The `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.
    Snuffleupagus committed Sep 2, 2024
    Configuration menu
    Copy the full SHA
    d3a94f1 View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2024

  1. [Editor] Make highlight annotations editable (bug 1883884)

    The goal of this patch is to be able to edit existing highlight annotations.
    calixteman committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    a62ceed View commit details
    Browse the repository at this point in the history
  2. [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.
    calixteman committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    843fde3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    deedbd1 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #18664 from calixteman/bug1911994

    [Editor] Make the focused stamp annotation more clear from a screen reader point of view (bug 1911994)
    calixteman authored Sep 3, 2024
    Configuration menu
    Copy the full SHA
    5d8d9ef View commit details
    Browse the repository at this point in the history
  5. Merge pull request #18427 from calixteman/edit_highlight

    [Editor] Make highlight annotations editable (bug 1883884)
    calixteman authored Sep 3, 2024
    Configuration menu
    Copy the full SHA
    a61f4b0 View commit details
    Browse the repository at this point in the history
  6. Merge pull request #18679 from timvandermeij/updates

    Update dependencies and translations to the most recent versions
    timvandermeij authored Sep 3, 2024
    Configuration menu
    Copy the full SHA
    da99f5d View commit details
    Browse the repository at this point in the history
  7. Merge pull request #18673 from Snuffleupagus/use-Headers

    Use `Headers` consistently in the different `IPDFStream` implementations
    timvandermeij authored Sep 3, 2024
    Configuration menu
    Copy the full SHA
    082ad95 View commit details
    Browse the repository at this point in the history
  8. Merge pull request #18658 from calixteman/bug1912001

    [Editor] Make the stamp annotations alt text readable by either VO or NVDA (bug 1912001)
    calixteman authored Sep 3, 2024
    Configuration menu
    Copy the full SHA
    d369822 View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2024

  1. [Editor] Remove the disclaimer when the user is editing the alt-text …

    …in the new alt-text modal (bug 1911764)
    calixteman committed Sep 4, 2024
    Configuration menu
    Copy the full SHA
    4aea51b View commit details
    Browse the repository at this point in the history
  2. Improve the StructTreeLayerBuilder.render method

    In 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.
    Snuffleupagus committed Sep 4, 2024
    Configuration menu
    Copy the full SHA
    4b86286 View commit details
    Browse the repository at this point in the history
  3. 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)
    calixteman authored Sep 4, 2024
    Configuration menu
    Copy the full SHA
    1cdaaad View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5d622ad View commit details
    Browse the repository at this point in the history
  5. Merge pull request #18689 from Snuffleupagus/StructTreeLayerBuilder-r…

    …ender-caching
    
    Improve the `StructTreeLayerBuilder.render` method
    calixteman authored Sep 4, 2024
    Configuration menu
    Copy the full SHA
    4fb045b View commit details
    Browse the repository at this point in the history
  6. Merge pull request #18690 from calixteman/print_test_afterprint

    In the autoprint integration test, resolve the promise on 'afterprint' event
    calixteman authored Sep 4, 2024
    Configuration menu
    Copy the full SHA
    e3fd62d View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2024

  1. Configuration menu
    Copy the full SHA
    350e3e7 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #18697 from calixteman/issue18696

    [Editor] Avoid to throw when an highlight annotation is resetted
    calixteman authored Sep 5, 2024
    Configuration menu
    Copy the full SHA
    4b906ad View commit details
    Browse the repository at this point in the history
  3. 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".
    calixteman committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    ddba096 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #18692 from calixteman/bug1708040

    Make tagged images visible for screen readers (bug 1708040)
    calixteman authored Sep 5, 2024
    Configuration menu
    Copy the full SHA
    77c7ec6 View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2024

  1. Use response-Headers in the different IPDFStream implementations

    Given 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.
    Snuffleupagus committed Sep 7, 2024
    Configuration menu
    Copy the full SHA
    840cc5e View commit details
    Browse the repository at this point in the history
  2. Use the _headersCapability name in PDFNetworkStreamFullRequestReader

    This improves consistency in the code-base since the implementations with the Fetch API respectively Node.js uses that name.
    Snuffleupagus committed Sep 7, 2024
    Configuration menu
    Copy the full SHA
    2a01931 View commit details
    Browse the repository at this point in the history
  3. Use "full" localization ids in the ColorPicker class (PR 18674 foll…

    …ow-up)
    
    Apparently I missed these in PR 18674.
    Snuffleupagus committed Sep 7, 2024
    Configuration menu
    Copy the full SHA
    9310903 View commit details
    Browse the repository at this point in the history
  4. Use "full" localization ids in the AltText class (PR 18674 follow-up)

    Apparently I missed these in PR 18674.
    Snuffleupagus committed Sep 7, 2024
    Configuration menu
    Copy the full SHA
    0ffd99a View commit details
    Browse the repository at this point in the history
  5. 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.
    calixteman committed Sep 7, 2024
    Configuration menu
    Copy the full SHA
    68332ec View commit details
    Browse the repository at this point in the history
  6. Merge pull request #18698 from calixteman/issue18694

    Avoid to have a white line around the canvas
    calixteman authored Sep 7, 2024
    Configuration menu
    Copy the full SHA
    5369a24 View commit details
    Browse the repository at this point in the history
  7. Merge pull request #18705 from Snuffleupagus/ColorPicker-full-l10n-ids

    Use "full" localization ids in the `ColorPicker` class (PR 18674 follow-up)
    Snuffleupagus authored Sep 7, 2024
    Configuration menu
    Copy the full SHA
    7274546 View commit details
    Browse the repository at this point in the history
  8. Merge pull request #18706 from Snuffleupagus/AltText-full-l10n-ids

    Use "full" localization ids in the `AltText` class (PR 18674 follow-up)
    Snuffleupagus authored Sep 7, 2024
    Configuration menu
    Copy the full SHA
    5d0c82c View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2024

  1. 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.
    Snuffleupagus committed Sep 8, 2024
    Configuration menu
    Copy the full SHA
    b681ea6 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #18682 from Snuffleupagus/responseHeaders

    Use response-`Headers` in the different `IPDFStream` implementations
    timvandermeij authored Sep 8, 2024
    Configuration menu
    Copy the full SHA
    c159cb1 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #18707 from Snuffleupagus/pr-18596-followup

    Prevent `.visibleMediumView` from overriding already hidden elements (issue 18704, PR 18596 follow-up)
    timvandermeij authored Sep 8, 2024
    Configuration menu
    Copy the full SHA
    5785494 View commit details
    Browse the repository at this point in the history
  4. [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.
    Rob--W committed Sep 8, 2024
    Configuration menu
    Copy the full SHA
    bd3d993 View commit details
    Browse the repository at this point in the history
  5. [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.
    Rob--W committed Sep 8, 2024
    Configuration menu
    Copy the full SHA
    b23829f View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    23bc46d View commit details
    Browse the repository at this point in the history
  7. [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.
    Rob--W committed Sep 8, 2024
    Configuration menu
    Copy the full SHA
    bc4890d View commit details
    Browse the repository at this point in the history
  8. [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.
    Rob--W committed Sep 8, 2024
    Configuration menu
    Copy the full SHA
    7017d82 View commit details
    Browse the repository at this point in the history
  9. [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.
    Rob--W committed Sep 8, 2024
    Configuration menu
    Copy the full SHA
    3fe256c View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    4327502 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    b3a0ad0 View commit details
    Browse the repository at this point in the history
  12. [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.
    Rob--W committed Sep 8, 2024
    Configuration menu
    Copy the full SHA
    4bf7be6 View commit details
    Browse the repository at this point in the history
  13. Merge pull request #18681 from Rob--W/crx-mv3-migration

    [CRX] Migrate Chrome extension to Manifest Version 3
    timvandermeij authored Sep 8, 2024
    Configuration menu
    Copy the full SHA
    a1b45d6 View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2024

  1. [CRX] Detect availability of DNR responseHeaders before use

    Critical fix for old but recent Chrome versions; all requests are
    otherwise redirected to the viewer.
    Rob--W committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    9705169 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ae13b4a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2f2d74b View commit details
    Browse the repository at this point in the history
  4. Merge pull request #18711 from Rob--W/crx-mv3-fallback-detect

    [CRX] Detect availability of DNR responseHeaders before use
    timvandermeij authored Sep 9, 2024
    Configuration menu
    Copy the full SHA
    8e5f06d View commit details
    Browse the repository at this point in the history
  5. [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.
    calixteman committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    bae32b4 View commit details
    Browse the repository at this point in the history
  6. Merge pull request #18708 from timvandermeij/updates

    Update dependencies and translations to the most recent versions
    timvandermeij authored Sep 9, 2024
    Configuration menu
    Copy the full SHA
    5f39b59 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    3f23bcb View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    6e4b7ee View commit details
    Browse the repository at this point in the history
  9. Merge pull request #18718 from calixteman/bug1916714

    [JS] Let AFSpecial_KeystrokeEx match a format without 'decoration' (bug 1916714)
    calixteman authored Sep 9, 2024
    Configuration menu
    Copy the full SHA
    95cd848 View commit details
    Browse the repository at this point in the history
  10. Merge pull request #18719 from calixteman/bug1917543

    [Editor] Avoid to have the ML disclaimer when the ML engine isn't ready (bug 1917543)
    calixteman authored Sep 9, 2024
    Configuration menu
    Copy the full SHA
    f98e604 View commit details
    Browse the repository at this point in the history
  11. Merge pull request #18716 from calixteman/stamp_auto_resize

    [Editor] Avoid to have a stamp editor resizing itself
    calixteman authored Sep 9, 2024
    Configuration menu
    Copy the full SHA
    5b4c2fe View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2024

  1. Configuration menu
    Copy the full SHA
    2883a94 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #18724 from Snuffleupagus/highlight-rm-l10nPromise

    Remove ununsed static `HighlightEditor._l10nPromise` field
    Snuffleupagus authored Sep 10, 2024
    Configuration menu
    Copy the full SHA
    66ed4b9 View commit details
    Browse the repository at this point in the history
  3. [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+.
    Rob--W committed Sep 10, 2024
    Configuration menu
    Copy the full SHA
    a91ba11 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    518b776 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #18726 from calixteman/issue18058

    Consume any pending path before drawing an annotation
    calixteman authored Sep 10, 2024
    Configuration menu
    Copy the full SHA
    0ac7f29 View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2024

  1. Consider foo-\nBar as a compound word

    Fixes #18693.
    calixteman committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    06f9d80 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #18730 from calixteman/issue18693

    Consider foo-\nBar as a compound word
    calixteman authored Sep 11, 2024
    Configuration menu
    Copy the full SHA
    870394d View commit details
    Browse the repository at this point in the history
  3. 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.
    Snuffleupagus committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    5b3d3c7 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #18731 from Snuffleupagus/TextLayer-ensureCtxFont

    Ensure that textLayers can be rendered in parallel, without interfering with each other
    Snuffleupagus authored Sep 11, 2024
    Configuration menu
    Copy the full SHA
    c52e848 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ca95264 View commit details
    Browse the repository at this point in the history
  6. Merge pull request #18737 from calixteman/bug1918115

    [JS] Correctly format floating numbers when they're close to an integer (bug 1918115)
    calixteman authored Sep 11, 2024
    Configuration menu
    Copy the full SHA
    cb20d1b View commit details
    Browse the repository at this point in the history
  7. Bump dset from 3.1.3 to 3.1.4

    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] <[email protected]>
    dependabot[bot] authored Sep 11, 2024
    Configuration menu
    Copy the full SHA
    edd1dfb View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2024

  1. Merge pull request #18738 from mozilla/dependabot/npm_and_yarn/dset-3…

    ….1.4
    
    Bump dset from 3.1.3 to 3.1.4
    Snuffleupagus authored Sep 12, 2024
    Configuration menu
    Copy the full SHA
    1ab9ab6 View commit details
    Browse the repository at this point in the history
  2. [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.
    calixteman committed Sep 12, 2024
    Configuration menu
    Copy the full SHA
    85e8bac View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6e1b4d6 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #18740 from calixteman/bug1897909

    [Editor] Avoid an extra new line when serializing a FreeText annotation (bug 1897909)
    calixteman authored Sep 12, 2024
    Configuration menu
    Copy the full SHA
    4275424 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #18741 from flodolo/fluent_number

    Fluent: use explicit NUMBER() in plural variants
    calixteman authored Sep 12, 2024
    Configuration menu
    Copy the full SHA
    b915a9c View commit details
    Browse the repository at this point in the history
  6. 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).
    Snuffleupagus committed Sep 12, 2024
    Configuration menu
    Copy the full SHA
    d86f94a View commit details
    Browse the repository at this point in the history
  7. Merge pull request #18742 from Snuffleupagus/pageColorsBackground-unl…

    …oaded-pages
    
    Use the "pageColorsBackground" option as background-color for non-loaded pages (issue 18680)
    Snuffleupagus authored Sep 12, 2024
    Configuration menu
    Copy the full SHA
    c72fb9b View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2024

  1. [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.
    Rob--W committed Sep 15, 2024
    Configuration menu
    Copy the full SHA
    3170bf3 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #18748 from Rob--W/crx-mv3-enable-wasm

    [CRX] Enable WebAssembly in Chrome extension
    timvandermeij authored Sep 15, 2024
    Configuration menu
    Copy the full SHA
    bf5c987 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #18728 from Rob--W/crx-mv3-fallback-detect-fixup

    [CRX] Fix feature detect of DNR responseHeaders option
    timvandermeij authored Sep 15, 2024
    Configuration menu
    Copy the full SHA
    014ce7c View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2024

  1. Configuration menu
    Copy the full SHA
    46fac8b View commit details
    Browse the repository at this point in the history
  2. Merge pull request #18749 from calixteman/issue18626

    [Editor] Take into account the device pixel ratio when drawing an added image
    calixteman authored Sep 16, 2024
    Configuration menu
    Copy the full SHA
    f68310b View commit details
    Browse the repository at this point in the history

Commits on Sep 17, 2024

  1. 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.
    Snuffleupagus committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    f77a29d View commit details
    Browse the repository at this point in the history
  2. Merge pull request #18756 from Snuffleupagus/api-NetworkStream

    Simplify the code that picks the appropriate NetworkStream-implementation
    timvandermeij authored Sep 17, 2024
    Configuration menu
    Copy the full SHA
    a58cd68 View commit details
    Browse the repository at this point in the history
  3. 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.
    calixteman committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    ee89bd1 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #18757 from calixteman/rename_toolbar_buttons

    Rename the toolbar buttons in order to free their current names
    calixteman authored Sep 17, 2024
    Configuration menu
    Copy the full SHA
    19151fe View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2024

  1. Configuration menu
    Copy the full SHA
    78dd354 View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2024

  1. Merge pull request #18760 from calixteman/bug1919513

    Read a signed integer when using PUSHW in sanitizing a font (bug 1919513)
    calixteman authored Sep 19, 2024
    Configuration menu
    Copy the full SHA
    652e3e0 View commit details
    Browse the repository at this point in the history
  2. 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.
    calixteman committed Sep 19, 2024
    Configuration menu
    Copy the full SHA
    b29278e View commit details
    Browse the repository at this point in the history
  3. Merge pull request #18761 from calixteman/fix_separator_color

    Fix the rendering of the different separators we've in the UI
    calixteman authored Sep 19, 2024
    Configuration menu
    Copy the full SHA
    6222359 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9e001f8 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #18763 from Snuffleupagus/readme-update-issue-link

    Link to the new issue templates from the README (PR 18308 follow-up)
    Snuffleupagus authored Sep 19, 2024
    Configuration menu
    Copy the full SHA
    96cdff4 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    67af371 View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2024

  1. Merge pull request #18766 from Snuffleupagus/issue-18765

    Ignore non-existing /Shading resources during parsing (issue 18765)
    Snuffleupagus authored Sep 21, 2024
    Configuration menu
    Copy the full SHA
    ea2172e View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2024

  1. 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
    Snuffleupagus committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    0a621ba View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1a1dfe6 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #18772 from Snuffleupagus/Node-unit-test-fs-promise

    Use `fs/promises` in the Node.js unit-tests (PR 17714 follow-up)
    timvandermeij authored Sep 22, 2024
    Configuration menu
    Copy the full SHA
    ddd7b63 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3753387 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ed100f2 View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2024

  1. [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.
    Snuffleupagus committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    bb302dd View commit details
    Browse the repository at this point in the history
  2. Merge pull request #18771 from timvandermeij/updates

    Update dependencies and translations to the most recent versions
    Snuffleupagus authored Sep 23, 2024
    Configuration menu
    Copy the full SHA
    6aa02ed View commit details
    Browse the repository at this point in the history
  3. Merge pull request #18776 from Snuffleupagus/api-CanvasFactory-Filter…

    …Factory
    
    [api-minor] Pass `CanvasFactory`/`FilterFactory`, rather than instances, to `getDocument`
    Snuffleupagus authored Sep 23, 2024
    Configuration menu
    Copy the full SHA
    bbef99f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    be60ca6 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #18777 from Snuffleupagus/version-4.7

    Bump library version to `4.7`
    Snuffleupagus authored Sep 23, 2024
    Configuration menu
    Copy the full SHA
    b65b774 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d35a20a View commit details
    Browse the repository at this point in the history
  7. Update typescript to version 5.6.2

    This is unblocked because in commit bb302dd the default value for the
    constructor got removed, which apparently confused TypeScript before.
    
    Fixes #18770.
    timvandermeij committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    c8af3f1 View commit details
    Browse the repository at this point in the history
  8. Merge pull request #18779 from calixteman/bug1920515

    [Editor] Don't show the ml toggle button when the ml is disabled (bug 1920515)
    calixteman authored Sep 23, 2024
    Configuration menu
    Copy the full SHA
    c90ce5d View commit details
    Browse the repository at this point in the history
  9. 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.
    calixteman committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    6f40ed7 View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2024

  1. Merge pull request #18385 from calixteman/remove_tabindex

    Refactor the toolbar html & css to improve its overall accessibility (bug 1171799, bug 1855695)
    calixteman authored Sep 24, 2024
    Configuration menu
    Copy the full SHA
    313ab9a View commit details
    Browse the repository at this point in the history
  2. Merge pull request #18781 from timvandermeij/typescript

    Update `typescript` to version 5.6.2
    Snuffleupagus authored Sep 24, 2024
    Configuration menu
    Copy the full SHA
    45fef4c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e9b10ae View commit details
    Browse the repository at this point in the history
  4. Merge pull request #18783 from calixteman/rm_useless_css

    Remove useless css variable --editor-toolbar-base-offset
    calixteman authored Sep 24, 2024
    Configuration menu
    Copy the full SHA
    cc63941 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    50517b8 View commit details
    Browse the repository at this point in the history
  6. Merge pull request #18784 from calixteman/rm_useless_css

    Remove duplicated --toolbar-height definition in the css
    calixteman authored Sep 24, 2024
    Configuration menu
    Copy the full SHA
    529906c View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2024

  1. Correctly compute the font size when printing a text field with an au…

    …to font size (bug 1917734)
    calixteman committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    fc1564f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e23159c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5c407a2 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #18790 from calixteman/bug1917734

    Correctly compute the font size when printing a text field with an auto font size (bug 1917734)
    calixteman authored Sep 25, 2024
    Configuration menu
    Copy the full SHA
    4575810 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #18786 from calixteman/update_toolbar_height

    Increase the size of the toolbar depending on the uidensity (bug 1171799)
    calixteman authored Sep 25, 2024
    Configuration menu
    Copy the full SHA
    4ab381f View commit details
    Browse the repository at this point in the history
  6. Merge pull request #18791 from sylvestre/patch-1

    Add Calixte to the list of authors
    marco-c authored Sep 25, 2024
    Configuration menu
    Copy the full SHA
    9735a84 View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2024

  1. Configuration menu
    Copy the full SHA
    135ee03 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f765b5a View commit details
    Browse the repository at this point in the history
  3. Merge pull request #18795 from Snuffleupagus/rm-splitToolbarButton

    Remove the unused `splitToolbarButton` CSS class (PR 18385 follow-up)
    Snuffleupagus authored Sep 26, 2024
    Configuration menu
    Copy the full SHA
    17008dd View commit details
    Browse the repository at this point in the history
  4. Merge pull request #18796 from Snuffleupagus/unify-toolbarContainer

    Unify separate `#toolbarContainer`-blocks in the CSS (PR 18385 follow-up)
    Snuffleupagus authored Sep 26, 2024
    Configuration menu
    Copy the full SHA
    a128378 View commit details
    Browse the repository at this point in the history
  5. 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.
    Snuffleupagus committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    a989244 View commit details
    Browse the repository at this point in the history
  6. 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.
    calixteman committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    6d88f9f View commit details
    Browse the repository at this point in the history
  7. 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)
    calixteman authored Sep 26, 2024
    Configuration menu
    Copy the full SHA
    2ff8035 View commit details
    Browse the repository at this point in the history
  8. Merge pull request #18785 from Snuffleupagus/transportFactory-init

    Slightly re-factor the `transportFactory` initialization in `getDocument`
    Snuffleupagus authored Sep 26, 2024
    Configuration menu
    Copy the full SHA
    3902a14 View commit details
    Browse the repository at this point in the history
  9. Remove trackTransform arguments from CachedCanvases.getCanvas-cal…

    …ls (PR 15281 follow-up)
    
    This became unused in PR 15281, however that patch clearly missed some occurrences; sorry about that!
    Snuffleupagus committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    fa2d7fc View commit details
    Browse the repository at this point in the history
  10. Merge pull request #18799 from Snuffleupagus/rm-more-getCanvas-trackT…

    …ransform
    
    Remove `trackTransform` arguments from `CachedCanvases.getCanvas`-calls (PR 15281 follow-up)
    Snuffleupagus authored Sep 26, 2024
    Configuration menu
    Copy the full SHA
    6daaa2f View commit details
    Browse the repository at this point in the history
  11. 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.
    Snuffleupagus committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    7db9941 View commit details
    Browse the repository at this point in the history
  12. Merge pull request #18802 from Snuffleupagus/issue-18801

    Add basic support for non-embedded GillSansMT fonts (issue 18801)
    Snuffleupagus authored Sep 26, 2024
    Configuration menu
    Copy the full SHA
    7063be9 View commit details
    Browse the repository at this point in the history
  13. [Editor] Avoid to have a selected stamp annotation on top of the seco…

    …ndary toolbar (bug 1911980)
    calixteman committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    ec01af6 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    0382dd0 View commit details
    Browse the repository at this point in the history
  15. Merge pull request #18800 from calixteman/popup_deletion

    [Editor] When deleting an annotation with popup, then delete the popup too
    calixteman authored Sep 26, 2024
    Configuration menu
    Copy the full SHA
    c46ac3f View commit details
    Browse the repository at this point in the history
  16. Merge pull request #18793 from calixteman/bug1911980

    [Editor] Avoid to have a selected stamp annotation on top of the secondary toolbar (bug 1911980)
    calixteman authored Sep 26, 2024
    Configuration menu
    Copy the full SHA
    642b9a5 View commit details
    Browse the repository at this point in the history

Commits on Sep 28, 2024

  1. 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.
    Snuffleupagus committed Sep 28, 2024
    Configuration menu
    Copy the full SHA
    b1df164 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #18812 from Snuffleupagus/pr-15522-followup

    Ensure that the CursorTools-buttons are disabled e.g. during editing (PR 15522 follow-up)
    Snuffleupagus authored Sep 28, 2024
    Configuration menu
    Copy the full SHA
    a7e1bf6 View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2024

  1. [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.
    Snuffleupagus committed Sep 29, 2024
    Configuration menu
    Copy the full SHA
    1267e28 View commit details
    Browse the repository at this point in the history

Commits on Oct 1, 2024

  1. Merge pull request #18822 from Snuffleupagus/Chrome-103

    [api-minor] Update the minimum supported Google Chrome version to 103
    Snuffleupagus authored Oct 1, 2024
    Configuration menu
    Copy the full SHA
    783facb View commit details
    Browse the repository at this point in the history