Commit graph

16857 commits

Author SHA1 Message Date
Adomas Venčkauskas
ea2e511d55
Merge 3d1ece74e4 into cc951f9916 2026-09-24 21:10:23 -04:00
Dan Stillman
cc951f9916 Rebuild Windows zotero.exe/updater.exe stubs from Firefox 153.3.0esr
Some checks are pending
CI / Detect changes (push) Waiting to run
CI / Test () (push) Blocked by required conditions
CI / Test (macOS NFS) (push) Blocked by required conditions
CI / Test (Windows arm64) (push) Blocked by required conditions
CI / Test (Windows x64) (push) Blocked by required conditions
CI / Utilities Tests (push) Waiting to run
CI / Build, Upload (push) Waiting to run
153.3.0esr updated the Chromium sandbox, changing the TargetConfig
interface that xul.dll calls into the launcher's sandbox broker
through. The stubs were still built from 153.0esr, so the 153.3.0esr
xul.dll called the wrong methods and crashed on startup with
"config->SetProcessMitigations(initialMitigations) failed".
2026-09-24 13:37:25 -04:00
Dan Stillman
5237f27060 Update builds to Firefox 153.3.0esr 2026-09-24 09:37:15 -04:00
Martynas Bagdonas
3ff64b658d Fix virtualized table scrollbar width oscillation
The item table mixed fractional and integer widths to calculate scrollbar
padding. At certain pane sizes, changing that padding changed the table
width, causing ResizeObserver to measure and update it again. The loop made
the Info pane and PDF tab flicker and kept CPU busy while idle.

Calculate scrollbar width from matching integer measurements to stop the
feedback loop.

Cause of the reproduced loop: 7df21ed introduced the mixed-width
calculation; f3328b0 made ResizeObserver rerender the table immediately.

Potentially fixes these reports:
- https://forums.zotero.org/discussion/133865/pdf-reader-flickers-shakes-trembles-macos
- https://forums.zotero.org/discussion/133718/bug-after-updating-to-zotero-10-0-2-64-bit-on-windows
- https://forums.zotero.org/discussion/133764/zotero-10-0-2-high-cpu-usage-with-pdf-right-sidebar-open
2026-09-24 09:22:16 +01:00
Abe Jellinek
ed8ca1bfce Item merging: Don't merge web link attachments with different URLs
Some checks are pending
CI / Detect changes (push) Waiting to run
CI / Test () (push) Blocked by required conditions
CI / Test (macOS NFS) (push) Blocked by required conditions
CI / Test (Windows arm64) (push) Blocked by required conditions
CI / Test (Windows x64) (push) Blocked by required conditions
CI / Utilities Tests (push) Waiting to run
CI / Build, Upload (push) Waiting to run
https://forums.zotero.org/discussion/133795
2026-09-23 13:53:08 -04:00
Dan Stillman
22a26bb483 Local API: Fix object writes with API-client-supplied keys
Requests that included a key got a 400 with `'primaryData' not
loaded for item`
2026-09-23 13:21:52 -04:00
Dan Stillman
4e3b208e4a Don't log an error when no bibliography locale is set
Some checks are pending
CI / Detect changes (push) Waiting to run
CI / Test () (push) Blocked by required conditions
CI / Test (macOS NFS) (push) Blocked by required conditions
CI / Test (Windows arm64) (push) Blocked by required conditions
CI / Test (Windows x64) (push) Blocked by required conditions
CI / Utilities Tests (push) Waiting to run
CI / Build, Upload (push) Waiting to run
In the error console in https://forums.zotero.org/discussion/133857/
2026-09-22 16:31:42 -04:00
Dan Stillman
5245b6cf5e Bundle Safari App Extension in release builds
The release script never set SAFARI_APP_EXTENSION, so 10.0 through
10.0.3 shipped with only the web extension, which doesn't run on Big Sur
or Monterey. Only beta builds have been including both.

https://forums.zotero.org/discussion/133871/
2026-09-22 16:14:03 -04:00
Dan Stillman
e061e565b7 Update release script to 10.0 branch 2026-09-22 16:07:56 -04:00
Dan Stillman
8e7639d73d Show virtual rows (e.g., Trash) matching the collection filter
https://forums.zotero.org/discussion/133833/cant-show-trash-via-collections-search
2026-09-21 23:26:03 -04:00
windingwind
7c7560bad1
Fix fcntl() flags not being passed by Subprocess on macOS (#6051)
Some checks are pending
CI / Detect changes (push) Waiting to run
CI / Test () (push) Blocked by required conditions
CI / Test (macOS NFS) (push) Blocked by required conditions
CI / Test (Windows arm64) (push) Blocked by required conditions
CI / Test (Windows x64) (push) Blocked by required conditions
CI / Utilities Tests (push) Waiting to run
CI / Build, Upload (push) Waiting to run
This showed up as devtools failing to start in a -d build on some machines, but any Subprocess.call() could fail because of it.

---------

Co-authored-by: Dan Stillman <dstillman@zotero.org>
2026-09-21 15:05:34 -04:00
Dan Stillman
b6f0f6c0ba Show login manager error when a credential write fails outside the keystore
Some checks failed
CI / Detect changes (push) Has been cancelled
CI / Utilities Tests (push) Has been cancelled
CI / Build, Upload (push) Has been cancelled
CI / Test () (push) Has been cancelled
CI / Test (macOS NFS) (push) Has been cancelled
CI / Test (Windows arm64) (push) Has been cancelled
CI / Test (Windows x64) (push) Has been cancelled
The login manager can fail to store a value even when the OS keystore
works -- e.g., if key4.db is read-only, which Firefox 153 triggers
because NSS now creates a new AES key on the first write. Show the
existing corrupted-logins instructions instead of the keystore alert or
the unencrypted-storage offer, neither of which can help.

Also update the corrupted-logins dialog to add an "Open Profile
Directory" button
2026-09-17 10:37:04 -04:00
Adomas Venčkauskas
213b0d7d76 Update Word for Mac submodule 2026-09-17 12:24:16 +03:00
Dan Stillman
acc4fd5ad2 Pass a temp copy of dragged attachment files on Windows
Allowing only 'copy' for file attachment drags kept File Explorer from
moving files out of 'storage' but locked the cursor at '+' even for
moves within Zotero. Instead, provide the file via a flavor data
provider that copies it to the temp directory when a target asks for it,
so the drag can allow 'copyMove' again and Explorer's move only touches
the copy. A copy's directory is removed once Explorer has moved the file
out of it, at the next drag, or with the temp directory at shutdown.
2026-09-16 22:39:03 -04:00
Dan Stillman
bdb656ad5c Fix dragging file attachments to and from parent items on Windows
Since 56eb77b704, drags of file attachments allow only 'copy' so that
File Explorer doesn't move the file out of storage, but the trees set
dropEffect to 'move' in onDragOver() for drops within Zotero, and OLE
refuses a drop whose dropEffect isn't among the drag's allowed effects.
Have setDropEffect() fall back to an allowed effect and have onDrop()
act on the effect the tree chose, kept in
Zotero.DragDrop.currentDropEffect, rather than on the drop event's
dropEffect.

https://forums.zotero.org/discussion/133765/
2026-09-16 22:38:23 -04:00
Dan Stillman
c30163ed90 Fix row contents shifting when showing a between-rows drop indicator
Some checks are pending
CI / Detect changes (push) Waiting to run
CI / Utilities Tests (push) Waiting to run
CI / Build, Upload (push) Waiting to run
CI / Test () (push) Blocked by required conditions
CI / Test (macOS NFS) (push) Blocked by required conditions
CI / Test (Windows arm64) (push) Blocked by required conditions
CI / Test (Windows x64) (push) Blocked by required conditions
The drop indicator span was inserted before the cells, so the first
cell stopped matching :first-child and picked up inline-start padding.
Insert it after the cells instead.

Regression from 5ca1fbb167, which replaced the .first-column class with
:first-child.
2026-09-16 15:44:05 -04:00
Dan Stillman
1d4b8bc89a Fix WebDAV auth for passwords containing '%' followed by two hex digits
fd812070b6 made _parseURI() decode the URL credentials so that
download() could build its own Basic Auth header from the decoded
values, but request() passed the decoded credentials to xmlhttp.open(),
which percent-decodes them again, so a password like "example%41pass"
was sent as "exampleApass". Re-encode the credentials before passing
them to open().

Fixes #6048
2026-09-16 10:04:14 -04:00
Dan Stillman
3c959e1012 Pass a triggering principal when launching non-HTTP URLs
Some checks failed
CI / Detect changes (push) Has been cancelled
CI / Utilities Tests (push) Has been cancelled
CI / Build, Upload (push) Has been cancelled
CI / Test (macOS NFS) (push) Has been cancelled
CI / Test (Windows x64) (push) Has been cancelled
CI / Test () (push) Has been cancelled
CI / Test (Windows arm64) (push) Has been cancelled
Gecko 140.15 made nsIExternalProtocolService.loadURI()'s triggering
principal mandatory, so Zotero.launchURL() threw NS_ERROR_ILLEGAL_VALUE
for any scheme handled by an external app.

https://forums.zotero.org/discussion/133709/
2026-09-11 14:31:51 -04:00
Dan Stillman
ab34e9031a Handle overlong filenames in getClosestDirectory()
Some checks are pending
CI / Test (Windows arm64) (push) Blocked by required conditions
CI / Test (Windows x64) (push) Blocked by required conditions
CI / Build, Upload (push) Waiting to run
CI / Detect changes (push) Waiting to run
CI / Test () (push) Blocked by required conditions
CI / Test (macOS NFS) (push) Blocked by required conditions
CI / Utilities Tests (push) Waiting to run
relinkAttachment() calls getClosestDirectory() before showing the file
picker, and a too-long filename caused the OS.File.stat() in
getClosestDirectory() to throw, which prevented the file picker from
appearing after clicking Locate.

https://forums.zotero.org/discussion/133685/
2026-09-10 09:53:46 -04:00
Dan Stillman
913aff342d Say a keyring service may need to be installed on Linux
Some checks are pending
CI / Detect changes (push) Waiting to run
CI / Test (macOS NFS) (push) Blocked by required conditions
CI / Build, Upload (push) Waiting to run
CI / Test () (push) Blocked by required conditions
CI / Test (Windows arm64) (push) Blocked by required conditions
CI / Test (Windows x64) (push) Blocked by required conditions
CI / Utilities Tests (push) Waiting to run
https://forums.zotero.org/discussion/133599/
2026-09-09 14:34:11 -04:00
Dan Stillman
cc700a1e11 Add a More Information link to keystore failures on Linux
https://forums.zotero.org/discussion/133599/
2026-09-09 14:34:10 -04:00
Dan Stillman
e03920890a Start HiddenBrowser loads from the parent process
Some checks are pending
CI / Build, Upload (push) Waiting to run
CI / Detect changes (push) Waiting to run
CI / Test () (push) Blocked by required conditions
CI / Test (macOS NFS) (push) Blocked by required conditions
CI / Test (Windows arm64) (push) Blocked by required conditions
CI / Test (Windows x64) (push) Blocked by required conditions
CI / Utilities Tests (push) Waiting to run
Firefox ESR 140.15 rejects loads from a content process for URLs that
process couldn't load on its own, including blob: URLs created by chrome
code. Full-text indexing loads HTML attachments through such a URL, so
indexing crashed Zotero with "Illegal load attempt of blob: URL from
web". Loads started by the parent are exempt, so start the load there
and use the child actor only to disable content retargeting.

https://forums.zotero.org/discussion/133661/
2026-09-08 17:08:55 -04:00
Dan Stillman
26988646bf Include the error message in startup error dialogs
SpiderMonkey stacks contain only frames, so the startup error messages
that showed just the stack didn't say what had failed. 9b3d7a32e3 added
the message to one of the three, where a ternary-precedence bug then
dropped the surrounding text instead. Format all three the same way.
2026-09-08 16:12:47 -04:00
Dan Stillman
bdaecbb5cc Detect database corruption reported by a transaction's commit
We only ever checked for corruption errors from transactions in
queryAsync(), so a corruption error raised by the COMMIT that mozStorage
runs itself bypassed the check. A 10.0 schema upgrade -- which heavily
exercises the database -- that failed due to corruption showed "Database
upgrade error" and a single Sqlite.sys.mjs frame instead of the prompt
offering to restore from a backup.

Two users reported this, but it's not clear what triggered it --
corruption usually occurs during a statement, which we did catch. There
may have been some statement transaction whose corruption error was
caught and ignored rather than being left to abort the transaction,
causing SQLite to then block the commit. That's what the test does, and
it fails without the fix.

https://forums.zotero.org/discussion/133611/
2026-09-08 16:01:23 -04:00
Dan Stillman
a43c1d5ad5 Update reader submodule 2026-09-08 09:37:42 -04:00
Adomas Venčkauskas
3d1ece74e4 Citation Explorer: i18n 2026-09-07 16:21:16 +03:00
Adomas Venčkauskas
9d4b1d5995 Fix weird virtualized-table header border rules 2026-09-07 16:21:16 +03:00
Adomas Venčkauskas
f37d75f178 Add wizard for managing document items 2026-09-07 16:21:16 +03:00
Adomas Venčkauskas
de6ed1a8f2 Citation Explorer: extract item tree into its own file
Move the shared row classes, row provider, and ItemTree subclass out
of citationExplorer.js without changing their behavior.
2026-09-07 16:21:16 +03:00
Adomas Venčkauskas
a7df23cdb8 Move cross-library item copying to Zotero.Items 2026-09-07 16:21:16 +03:00
Adomas Venčkauskas
af5ab8427b Citation Explorer: show suggested items when relinking an unlinked item 2026-09-07 16:21:16 +03:00
Adomas Venčkauskas
06eb70abda Citation Explorer: preserve group open state 2026-09-07 16:21:16 +03:00
Adomas Venčkauskas
580b9cf5bb Citation Explorer: restrict relinking to one item 2026-09-07 16:21:16 +03:00
Adomas Venčkauskas
ad90d4b76f Citation Explorer: snapshot rows before async actions 2026-09-07 16:21:16 +03:00
Adomas Venčkauskas
80b82fc953 Duplicates: allow to search for duplicates by specific item 2026-09-07 16:21:14 +03:00
Adomas Venčkauskas
5977f1c917 Duplicates: allow to run duplicate queries on multiple libraries 2026-09-07 16:18:51 +03:00
Adomas Venčkauskas
14495b5982 Citation Explorer: enable add to button on any row 2026-09-07 16:18:51 +03:00
Adomas Venčkauskas
cf058891c1 Citation Explorer: misc renaming/cleanup 2026-09-07 16:18:51 +03:00
Adomas Venčkauskas
ab849085d7 Citation Explorer: Restrict multi-select to item rows within one group 2026-09-07 16:18:51 +03:00
Adomas Venčkauskas
926305899c Citation Explorer: Group unlinked items in a pseudo-library
Remove the isLinked item-list column and introduce an Unlinked Items
container row, with a localized label in zotero.properties.

Grouped mode now activates when unlinked items are present, and selection/
activation logic explicitly targets item rows while allowing container-row
navigation.
2026-09-07 16:18:51 +03:00
Adomas Venčkauskas
7f7ccd172b Citation Explorer: adjust for refactored item tree 2026-09-07 16:18:51 +03:00
Adomas Venčkauskas
da6389ed93 Citation Explorer: Rewrite with ItemTreeRow subclasses
Replace Proxy-wrapped items and hacky rendering overrides
with proper ItemTreeRow subclasses and a custom
ItemTreeRowProvider.

- LibraryItemTreeRow: expandable container for library
  grouping with sortChildren opt-in
- CitationExplorerItemTreeRow: row with citation metadata,
  explicit id for CSL-only items, isContainer/
  isContainerEmpty overrides to suppress twisties
- CitationExplorerRowProvider: groups items by library,
  delegates sorting to base class via _sort()/_compareRows()
- CitationExplorerItemTree: custom tree with row provider

- Enable all standard columns (hidden by default) with
  column picker and persistence
- isLinked column excluded from picker via
  showInColumnPicker: false
- Remove persistColumns from citationDialog (consolidated
  into columnPicker in prior commit)
- Add .library-container-row styling
2026-09-07 16:18:51 +03:00
Adomas Venčkauskas
155d2ef75e Don't double-invalidate the windowed list
E.g. when the item count changes due to toggling open state of elements
2026-09-07 16:18:51 +03:00
Adomas Venčkauskas
68b9499bc0 Citation Explorer: Disable buttons when no selection 2026-09-07 16:18:51 +03:00
Adomas Venčkauskas
4fd753f822 Citation Explorer: minor styling changes 2026-09-07 16:18:51 +03:00
Adomas Venčkauskas
87f9173c2d Citation Explorer: Uncited item display change 2026-09-07 16:18:51 +03:00
Adomas Venčkauskas
a0735fdb2c Citation Explorer: Fix highlighting inconsistencies 2026-09-07 16:18:51 +03:00
Adomas Venčkauskas
41e0c15f04 Citation Explorer: Various styling adjustments 2026-09-07 16:18:51 +03:00
Adomas Venčkauskas
8c91198eb4 Citation Explorer: Change Date column out for Year 2026-09-07 16:18:51 +03:00
Adomas Venčkauskas
2fb4c61064 Citation Explorer: Fix item tree menu view 2026-09-07 16:18:51 +03:00