Commit graph

15689 commits

Author SHA1 Message Date
Abe Jellinek
7e706354f9 Don't try to reject last feed item when FeedReader terminates
As the comment says, this hasn't been useful (and isn't used anywhere),
and I honestly don't understand how the test ever passed - process()
would've resolved all the feed item promises already.

Fixes #5412
2025-07-30 22:31:08 -04:00
Abe Jellinek
c8aff336b3 Migrate Bluebird methods in Zotero.Utilities.Internal.saveDocument()
Fixes #5415
2025-07-30 22:31:08 -04:00
Dan Stillman
26ffaf0ad3 Update translate module
Fixes test failure in fx140
2025-07-30 22:31:08 -04:00
Dan Stillman
f81763b173 Remove Chai as Promised
A test using `assert.eventually` was failing after the Bluebird removal
but worked with just `await`, and since there hasn't really been much
point to Chai as Promised since the introduction of `async`/`await` ages
ago, just remove the library instead of figuring out why.
2025-07-30 22:31:08 -04:00
Dan Stillman
26b6c70b96 Fix Libraries test after Bluebird removal 2025-07-30 22:31:07 -04:00
Dan Stillman
6809aa50ad Fix item tree tests after Bluebird removal
Remove uses of PromiseInspection.value()
2025-07-30 22:31:07 -04:00
Dan Stillman
dc80fb2d50 fx140: nsIStringInputStream#setData() → setByteStringData() 2025-07-30 22:31:07 -04:00
Dan Stillman
1500fb9fa3 ConcurrentCaller: Revert to Promise.delay()
We're shimming it, and we override it with a stub in a syncAPIClient
test.
2025-07-30 22:31:07 -04:00
Dan Stillman
0bf4fc54c4 Remove uses of Promise.isFulfilled() in connector server tests 2025-07-30 22:31:07 -04:00
Dan Stillman
c2b6a9cc12 fx140: Fix NetUtil import in server tests 2025-07-30 22:31:03 -04:00
Dan Stillman
c4cfee1807 fx140: Fix additional mendeleyImport.mjs imports 2025-07-30 22:30:58 -04:00
Dan Stillman
b7c2002b63 Fix another Bluebird removal bug
Use of `Promise.map()`
2025-07-30 22:30:58 -04:00
Dan Stillman
e07ac6243c Fix bug from Bluebird removal
Bluebird had a `Promise.filter` method

Fixes failing data directory tests
2025-07-30 22:30:58 -04:00
Abe Jellinek
9f038891ef Set name for Zotero.DBConnection.TimeoutError
Fixes failing timeout test in dbTest.js.
2025-07-30 22:30:57 -04:00
Abe Jellinek
97dbcc6870 Restore timeout in dataObjectTest.js, fix test
OK, the timeout removed in 05e8da wasn't actually useless, but this test
was.

41706a changed erase() so it no longer forwards skipNotifier when
deleting child items. That means that we *would* get a notify() call for
the deleted child, so the test should have been failing.

However! Because of a bug in Bluebird's filtered catch() implementation,
Promise.TimeoutError wasn't recognized as an Error subclass, and it was
instead used as a predicate function, which would always pass.

So all errors were caught as "timeouts" and suppressed, making this test
always pass. Now it no longer always passes (but does pass with the
current behavior).
2025-07-30 22:30:57 -04:00
Abe Jellinek
6203b9712d Fully asyncify feedTest.js 2025-07-30 22:30:57 -04:00
Abe Jellinek
b87bdeea41 Update asyncify script to handle more Mocha hooks 2025-07-30 22:30:57 -04:00
Abe Jellinek
20e75c3251 Remove Bluebird methods in concurrentCallerTest.js
This is really messy and not ideal, but these tests were written for
Bluebird Promise state inspection, and it's difficult to make them look
nice without that being available.
2025-07-30 22:30:57 -04:00
Abe Jellinek
2bc0afa830 Remove useless timeout() in dataObjectTest.js 2025-07-30 22:30:57 -04:00
Abe Jellinek
d9341bbf1a Use alternate method to test feed check delay 2025-07-30 22:30:56 -04:00
Abe Jellinek
2b7535cd83 Fix test runner
By restoring ZOTERO_TEST=1 in runtests.sh after 711b336.
2025-07-30 22:30:56 -04:00
Tom Najdek
7e1f4b8dbf fx140: ESMify errorReport.xhtml 2025-07-30 22:30:56 -04:00
Abe Jellinek
52b4fc0b9d Preferences: Fix sandbox destructor 2025-07-30 22:30:56 -04:00
windingwind
519c4cb518 fx140: Fix scaffold missing menubar 2025-07-30 22:30:56 -04:00
windingwind
db29ed6501 fx140: Fix Linux window control button position 2025-07-30 22:30:56 -04:00
windingwind
331ed31b1c fx140: Fix Linux titlebar appearance 2025-07-30 22:30:56 -04:00
windingwind
2562871424 fx140: Fix menu icon overlap
Fix after #5343
2025-07-30 22:30:55 -04:00
Tom Najdek
4eae5bc658 Fix incorrect MendeleyImporter import path after ESMify 2025-07-30 22:30:55 -04:00
Abe Jellinek
f4a5ee0c7e fx140: ESMify about.xhtml 2025-07-30 22:30:55 -04:00
Abe Jellinek
e4878052aa fx140: Add draft macOS native-like textarea style
Firefox doesn't use any native textareas anymore, so I guess they just
removed/broke native textarea rendering.
2025-07-30 22:30:55 -04:00
Dan Stillman
072b2e3285 Force Firefox refetch when switching to older branch 2025-07-30 22:30:55 -04:00
Dan Stillman
ac32c0fd8b Add Firefox build script for Linux 2025-07-30 22:30:55 -04:00
Dan Stillman
233cfb80ea Update Word for Windows submodule for fx140 2025-07-30 22:30:55 -04:00
Abe Jellinek
964b5a0e88 fx140: Fix remaining bare ChromeUtils.import() calls 2025-07-30 22:30:54 -04:00
Abe Jellinek
1dd60c948b Fix export translation
Restore Zotero.Promise.method() wrapper on getCodeForTranslator()
because the translation framework needs it to return a synchronously
resolved promise, unfortunately.
2025-07-30 22:30:54 -04:00
Dan Stillman
04e03478a9 Update version to 8.0 2025-07-30 22:30:54 -04:00
Dan Stillman
b50d87a6f4 Fix stderr output in build script 2025-07-30 22:30:54 -04:00
Dan Stillman
12354bd23b Include Linux ARM64 in build_and_deploy 2025-07-30 22:30:54 -04:00
Dan Stillman
69963dce2c Re-enable packaging of the updater on Linux 2025-07-30 22:30:54 -04:00
Dan Stillman
38cfc233cf Fix various bugs in the build scripts on Linux
After the arch-specific-builds overhaul
2025-07-30 22:30:54 -04:00
Dan Stillman
f31dde4a1b Take path to Firefox source on command line for Windows Firefox builds 2025-07-30 22:30:53 -04:00
Dan Stillman
93edf4e099 Use SHA256 for custom Firefox components on macOS
(Not currently necessary)
2025-07-30 22:30:53 -04:00
Dan Stillman
44bba85ce8 Use custom xul.dll on Windows
Necessary for non-Mozilla C:\ProgramData folder now that we can no
longer do a string replace on the official DLL

The custom component ZIPs are currently stored in S3 and referenced by
SHA-256 hashes, which get committed. This is basically the same as Git
LFS, but since we now support per-arch fetch_xulrunner and building,
this avoids the need to download large xul.dll files for other
architectures. (Git LFS files also can't ever be removed, so
particularly while we're testing this, we don't necessarily want to
permanently store every copy.)
2025-07-30 22:30:53 -04:00
Dan Stillman
3e0d2c06f1 Support arch-specific builds on Windows and Linux
`fetch_xulrunner`, `dir_build`, and `build.sh` now take an optional `-a`
argument on Windows and Linux to specify the architecture to
fetch/build. If `-a` is omitted for `dir_build` (as in `build_and_run`),
it defaults to the current architecture.

xulrunner hashes are now computed for each architecture. This changes
some filenames in xulrunner/, so you may want to clean out some old
folders/files.

This removes the custom handling for CI, since it will now default to
the architecture of the test runner.
2025-07-30 22:30:53 -04:00
Abe Jellinek
67d2e1cead fx140: Asyncify/ESMify tests
They seem to be succeeding when run individually, but failing when
run as a whole. Not sure why yet.
2025-07-30 22:30:53 -04:00
Abe Jellinek
d3419ed124 fx140: Update asyncify script to handle it() calls 2025-07-30 22:30:53 -04:00
Abe Jellinek
6fc1726da7 fx140: Fix folderImport import in fileInterface.js 2025-07-30 22:30:53 -04:00
Dan Stillman
ae83e01923 Update Mozilla patch for Firefox 140 for Windows
With ROOT_UPDATE_DIR_NAME change
2025-07-30 22:30:52 -04:00
Zotero
581157ca75 Set RUST_TARGET for Windows build 2025-07-30 22:30:52 -04:00
Dan Stillman
363383363d Disable some services for the Windows build
Unclear if these affect the launcher or xul.dll, but no need to build
them either way
2025-07-30 22:30:52 -04:00