Commit graph

15546 commits

Author SHA1 Message Date
Abe Jellinek
eeb94aea48 fx140: Fix more broken code 2025-07-30 22:18:36 -04:00
Abe Jellinek
a080b7c9c6 fx140: Give require()'d modules a window context 2025-07-30 22:18:36 -04:00
Abe Jellinek
f8826a9e8a fx140: Restore support for synchronous XHR in system code 2025-07-30 22:18:36 -04:00
Abe Jellinek
ece2b59700 fx140: More progress toward startup 2025-07-30 22:18:36 -04:00
Abe Jellinek
845b5a9006 migrate-fx140: Use native Promise.try(), fix Components.utils.import() 2025-07-30 22:18:36 -04:00
Abe Jellinek
c506e41072 fx140: Add working require.js, more progress toward startup 2025-07-30 22:18:36 -04:00
Abe Jellinek
14f4881d04 migrate-fx140: Assume all Firefox JSMs are ESMified 2025-07-30 22:18:35 -04:00
Abe Jellinek
741940dd9a migrate-fx140: Run jscodeshift on all JS files
This is probably why it wasn't doing much.
2025-07-30 22:18:35 -04:00
Abe Jellinek
e94ed24e20 Add Promise.defer() to Bluebird shim 2025-07-30 22:18:35 -04:00
Abe Jellinek
05d19fc6aa Replace Bluebird with async in xpcom/ 2025-07-30 22:18:35 -04:00
Abe Jellinek
8d0923f119 fx140: Remove Bluebird
All module code runs in strict mode, and that breaks Bluebird.

And add a partial shim for the simplest and most useful methods. Not
sure if we actually want that, or if we should just replace it entirely
with native methods.
2025-07-30 22:18:35 -04:00
Abe Jellinek
ee512680ac fx140: Rename esmify to migrate-fx140, add asyncify migration
See README.txt for run instructions.
2025-07-30 22:18:35 -04:00
Abe Jellinek
cd9f90da8d fx140: Add esmify script
This seems to produce decent output on many of our files, but it totally
misses some import statements. Not sure why that is yet.
2025-07-30 22:18:34 -04:00
Dan Stillman
163ed14f92 Add removed-files_linux-arm64 2025-07-30 22:18:34 -04:00
Dan Stillman
e6cd5f322f TEMP: Disable Linux updater
Since we haven't yet build an ARM64 updater
2025-07-30 22:18:34 -04:00
Dan Stillman
0f7590ad13 fx140: Comment out some lines that were failing
I didn't check to see which of these have just moved.
2025-07-30 22:18:34 -04:00
Dan Stillman
e715593eb7 fx140: browser-custom-element.js → browser-custom-element.mjs 2025-07-30 22:18:34 -04:00
Dan Stillman
fd4dde300d fx140: Remove obsolete AppConstants modifications 2025-07-30 22:18:29 -04:00
Dan Stillman
832575b7c0 Update build scripts for Linux ARM64
This doesn't include an ARM updater, so those lines in build.sh need to
be commented out for the build to succeed.

Addresses #3515
2025-07-30 22:15:31 -04:00
Tom Najdek
f5907ed3b2
Expose tag split option in item tags box (#5366) 2025-07-30 22:13:19 -04:00
Abe Jellinek
78534ff2d2 FileHandlers: Infer PDF pageIndex from annotation key
And:

- Update createAnnotation() test support function to create valid EPUB
  and snapshot annotations
- Add more FileHandlers tests
2025-07-30 11:37:52 -04:00
abaevbog
c3f8ba8eb1
Fix glitchy menupopups in dialogs opened from a context menu (#5409)
Opening a dialog window via a command from a menupopup leads to
unexpected glitches in the dialog's popups (e.g., collections menu
in newCollection dialog on macOS won't go away when you click away,
and on Windows, child collections don't appear when a parent is hovered).
This is due to some kind of race condition that arises when the dialog
appears when the popup is still closing.

This workaround captures command events from menupopups, closes the popup,
stops propagation of those events, and then dispatches a copy of
that event after a delay. This gives the popup enough time to close.

Fixes: #5408
Fixes: #4891
2025-07-30 01:56:11 -04:00
Abe Jellinek
735922a2bf
If custom file handler is set to Zotero itself, use reader (#5407) 2025-07-24 12:07:27 -04:00
Abe Jellinek
27affb9f14
Cache CSL Engine for item pane header (#5405)
Once styles are initialized.
2025-07-24 12:06:49 -04:00
Adomas Venčkauskas
11014be449 Server: Add support for UTF in server headers (RFC2047) 2025-07-24 13:26:23 +03:00
Dan Stillman
b31b71304d ZFS: Don't retry download for canceled redirect with mtime/hash match
This was a regression from the switch to `Zotero.HTTP.download()`. 302
wasn't a success code, so `HTTP.download()` would throw, and since the
status wasn't set correctly on the `XMLHttpRequest` within
`HTTP.UnexpectedStatusException`, it would think it was an interrupted
S3 connection and trigger another download after a delay.
2025-07-24 01:31:25 -04:00
Dan Stillman
a370ec8979 HTTP.download(): Don't save file for non-2xx response 2025-07-24 01:28:13 -04:00
Dan Stillman
cc0b1ad0c9 HTTP.request(): Return proper status for canceled redirect 2025-07-24 01:28:12 -04:00
Abe Jellinek
8041d7d4df Complain when Notifier/Prefs observer leaks window 2025-07-23 12:03:53 -04:00
Abe Jellinek
1eb248553a Unregister Zotero_Tabs observers when window is unloaded 2025-07-23 12:03:53 -04:00
Abe Jellinek
5e1541c5ee Extract activateZoteroPane(), try different activeness check
This should hopefully fix intermittent CI failures.
2025-07-23 11:23:36 -04:00
Abe Jellinek
d4a5fbbefe
Cache CiteProc Engine instances, pre-cache for Quick Copy (#5399) 2025-07-23 10:47:23 -04:00
Tom Najdek
cc691abeee
Add missing icons in context menus on Windows/Linux
* Add missing icon for "My Library" in the "Copy To" menu in cases where there are no other libraries in that menu
* Add icon to the "New Collection..." option in the item context menu
2025-07-23 12:56:06 +02:00
Dan Stillman
9b1950c9ea Clear HTTP.mock at end of ZFS tests 2025-07-22 22:12:52 -04:00
Dan Stillman
d1ea8a397b Use BrowserDownload for 403 when enforcing type in downloadFile()
Fixed regression (probably in 1f401f0897) causing Find Full Text not to
use BrowserDownload for a 403

https://forums.zotero.org/discussion/125581/zotero-suddenly-fails-to-retrieve-full-text-although-i-have-access
2025-07-22 22:12:00 -04:00
Tom Najdek
9698927d22
Fix unreadable tooltips in dark mode. Close #5397 2025-07-22 17:19:28 +02:00
Northword
e2a96e512a
Clear plugin cache on re-install (#5395) 2025-07-21 23:55:02 -04:00
Tom Najdek
2d4a086819
Fix picking a type for the creator removes the entry. Close #5396 2025-07-21 13:03:41 +02:00
SSCC
162fb4d51b
fix the missing "yield" in line 158 of storageEngine.js (#5394)
Fix the issue where Zotero.Sync.Runner.sync({background: true}) cannot obtain the itemIDs
2025-07-20 01:07:29 -04:00
windingwind
ce6c27ae7e
Fix tabs menu filtering out empty title (#5392) 2025-07-18 00:46:20 -04:00
Tom Najdek
9c82fed152
Add missing icons to the collections context menu (#5386)
Co-authored-by: yexingsha <yexingsha@gmail.com>
2025-07-16 12:18:58 +02:00
Tom Najdek
0e3b695a85
Use a more universal method of checking the element name 2025-07-15 19:25:41 +02:00
Tom Najdek
c945afb2e1
Fix auto-completion typo toLocaleLowerCase -> toLowerCase 2025-07-15 19:18:30 +02:00
Tom Najdek
248ddf05d2
Fix incorrect context menu when renaming collection #5374 2025-07-15 17:38:49 +02:00
Martynas Bagdonas
057c798202 Ignore reader and note-editor error when Fluent file is missing 2025-07-15 16:00:12 +03:00
Dan Stillman
59730c0fca Move "Show My Publications" localized string from .dtd to .ftl
Added to .dtd by mistake in #5367
2025-07-15 02:53:57 -04:00
Dan Stillman
dd10111e5d Close all tabs before item tags box tests to try to fix CI failures 2025-07-15 01:01:54 -04:00
Dan Stillman
42e21d4fa1 Disable citeproc-rs tests, which are failing after Chicago style update
Note sure why
2025-07-15 00:46:10 -04:00
Dan Stillman
01683b6ccb More chicago-note-bibliography → chicago-shortened-notes-bibliography 2025-07-15 00:46:10 -04:00
Dan Stillman
845361bdbc Update default Chicago style after upstream id changes 2025-07-15 00:46:10 -04:00