Commit Graph
24631 Commits
Author SHA1 Message Date
dotCooCoo e88e43e8dc Merge main into fix/windows-signing-test-annotation 2026-12-02 07:54:46 -08:00
.CooCoo 9ad67bd067 Merge pull request #10579 from dotCooCoo/fix/checked-save-folder-moved
Save: a checked save refuses a folder moved outside the write root
2026-12-02 07:25:27 -08:00
.CooCoo d4fbb1402e Merge pull request #10260 from dotCooCoo/fix/plugins-tree-audit-in-checks
CI: the plug-in grant call-site audit runs in the checks shard
2026-12-02 07:13:43 -08:00
dotCooCoo 39c0f35f22 Save: a checked save refuses a folder moved outside the write root
A checked save (`write_atomic_checked`, used by the engine's file writes
while automation write roots are set) opens the destination folder once
and puts the file in place through that open folder. A folder moved
after it was opened still received the file, so moving it out of the
write root while the file was written placed the file outside the root.

After the file is written, before it takes the old file's permissions
and again right before it is renamed into place, the folder's current
path is checked again with the same check. The copy fallback checks it
before the target is opened and again before the target is created or
overwritten. A folder moved outside the root, or one whose current path
the system does not report (FreeBSD), is refused: the temporary file
and any copy of the old content are removed, and the error names the
original destination. A move within the root keeps working as before.

Follows the checked-write work in 4cb6f8f152 and 6cf9145890.
2026-12-02 06:44:22 -08:00
.CooCoo 2276de06ca Merge pull request #10458 from dotCooCoo/fix/census-behavior-tables
xtask: test-lint census rule leaves out loops that run each entry through a computation
2026-12-02 06:30:33 -08:00
dotCooCoo fdda57ea8f Merge main into fix/plugins-tree-audit-in-checks 2026-12-02 06:28:35 -08:00
.CooCoo a6bbe09709 Merge pull request #10571 from dotCooCoo/fix/declare-parent-reads
CI: build two paths without the parent-step literals the read check counts as reads
2026-12-02 06:22:44 -08:00
dotCooCoo fffcca5cd2 CI: build paths without parent-step literals the read check counts as reads
The shared gate's undeclared-read check (select legs) reports two reads
on main: crates/text/build.rs reads the workspace root (`.`) and
crates/engine/src/tests/fontfiles.rs reads `crates`. Neither path names
another member's files.

- crates/text/build.rs takes the workspace root as the second ancestor
  of the crate directory instead of joining "../..". A relative
  CRAFT_FONTS_DIR still resolves from the same directory.
- the_fonts_folder_next_to_a_document_is_an_absolute_path builds its
  climb to the filesystem root from ParentDir components instead of
  formatting a repeated "../". The test still opens the document by a
  relative path to its temporary folder.

The check reports 0 problems on the result, down from 2 on main.
2026-12-02 06:20:29 -08:00
dotCooCoo ffa83d3a7f Merge main into fix/plugins-tree-audit-in-checks 2026-12-02 06:09:48 -08:00
dotCooCoo cf51c8894c xtask: test-lint decodes string continuations in cfg_attr paths and keeps census hits for fixed ranges
A path string that continues on the next line with a backslash now
decodes to the joined file name, so the conditional route is kept.
A range argument with two fixed bounds (1..4, 1..=4) no longer counts
as an input, so the round-trip census diagnostic stays; a range with a
variable bound still suppresses it. Adds a test for a bracket in a
cfg_attr path filename keeping its sibling cfg gate.
2026-12-02 05:55:33 -08:00
dotCooCoo 1361bb3b5c Merge main into fix/census-behavior-tables 2026-12-02 05:23:02 -08:00
FredApps fa5c9e9674 Merge pull request #9847 from storytold/rfc52-headless-column
docs: RFC-0052 Headless section and marking rules in UI parity
2026-12-02 13:19:19 +01:00
dotCooCoo 1eb22f6134 xtask: test-lint census entry reads skip path segments, comment gaps and block statements
- An entry name after `::` (`defaults::c`) is a path segment, not a read of the loop binding.
- A `let` initializer scans to the end of its statement, so a block initializer binds its tail
  (`{ prepare(); c }`) and not the earlier statements in the block; `if let` and `while let`
  end at their block.
- A call keeps its name when masked comment whitespace sits before `(`, except after a keyword
  (`if (a)`).
- The argument-guard and alias tests now depend on the logic they cover.
2026-12-02 03:01:11 -08:00
.CooCoo 2498ef4682 Merge pull request #10185 from dotCooCoo/feat/js-object-set-prototype-of
Scripts: ES2015 realms have Object.setPrototypeOf
2026-12-02 02:36:46 -08:00
.CooCoo d100d66a06 Merge pull request #10250 from dotCooCoo/fix/retype-period-font-order
Retype: glyphs drawn alike in several fonts count as one outline in near matching
2026-12-02 02:22:02 -08:00
.CooCoo 9a7ebdd8a2 Merge pull request #10549 from dotCooCoo/fix/test-lint-plain-path-decode
xtask: test-lint decodes escapes in #[path] values
2026-12-02 02:15:50 -08:00
dotCooCoo 70e69a1750 Merge main into fix/plugins-tree-audit-in-checks 2026-12-02 02:13:53 -08:00
.CooCoo fc0b5321f4 Merge pull request #10425 from dotCooCoo/chore/never-run-test-allows
xtask: test-lint catches tests a removed module route compiles out, and narrows two false alarms
2026-12-02 02:12:33 -08:00
.CooCoo ce867b3d23 Merge pull request #10467 from dotCooCoo/fix/sr-art-limit
Step and Repeat: refuse a grid whose copies would hold more than 250,000 objects
2026-12-02 02:02:46 -08:00
.CooCoo 68b01f3a5d Merge pull request #10480 from dotCooCoo/fix/wrap-sources-no-copies
Text Wrap: Make's no-type warning checks the wrap objects without copying their shapes
2026-12-02 02:02:39 -08:00
.CooCoo d753c48d2e Merge pull request #10483 from dotCooCoo/fix/windows-evalfile-uri
Scripts: $.evalFile reads the URI paths File.parent gives, on Windows too
2026-12-02 02:02:31 -08:00
.CooCoo 907db2002f Merge pull request #10487 from dotCooCoo/fix/mark-bounds-tiny-objects
Arrange Tools: Mark Bounds of Each draws no empty group for an object too small for corner legs
2026-12-02 02:02:23 -08:00
.CooCoo 4e554e2c82 Merge pull request #10488 from dotCooCoo/fix/pdf-dialog-trim
Import PDF: a PDF with editing data opens on its trim boxes unless a box is picked
2026-12-02 02:02:15 -08:00
.CooCoo 245af424e0 Merge pull request #10511 from dotCooCoo/fix/print-media-per-printer
Print: the Size list shows the chosen printer's paper sizes
2026-12-02 02:02:07 -08:00
.CooCoo e3e84bd4fb Merge pull request #10539 from dotCooCoo/fix/ai-save-options-compatibility-default
Scripts: new IllustratorSaveOptions reads compatibility as ILLUSTRATOR19
2026-12-02 02:01:50 -08:00
.CooCoo 02ca7c1148 Merge pull request #10538 from dotCooCoo/fix/script-setters-measure-after-activate
Scripts: width, height and position setters measure after the document comes to the front
2026-12-02 01:45:21 -08:00
.CooCoo 1385fed88c Merge pull request #10518 from dotCooCoo/fix/panel-title-strip-corners
Dock: the docked Tools card keeps its rounded top corners
2026-12-02 01:40:36 -08:00
dotCooCoo 859a6b4dd3 xtask: test-lint decodes escapes in #[path] values
A plain #[path = "\x63hild.rs"] after #[cfg_attr(windows, path = "child.rs")]
loads child.rs on Linux and FreeBSD, but test-lint compared the undecoded
spelling with the file name, dropped that route and reported a test in
child.rs as never-run. The plain attribute and the path argument of
cfg_attr now decode the escapes of an ordinary string literal with the
same unescape the cfg values use. Raw string literals are read as written.
2026-12-02 01:33:38 -08:00
.CooCoo b62851f57a Merge pull request #10431 from dotCooCoo/fix/test-lint-hits
Tests: check nightly ids and panel places by behavior
2026-12-02 01:30:08 -08:00
.CooCoo b601a3bf44 Merge pull request #10540 from dotCooCoo/fix/script-write-holds-checked-folder
Save: checked writes go into the folder that was checked
2026-12-02 01:26:46 -08:00
dotCooCoo b65de1d729 Merge main into chore/never-run-test-allows 2026-12-02 01:21:47 -08:00
.CooCoo d94c7477c5 Merge pull request #10544 from dotCooCoo/fix/js-host-class-install-atomic
JavaScript: a failed host class install adds none of its classes
2026-12-02 01:16:03 -08:00
.CooCoo 0c6aaa074d Merge pull request #10448 from dotCooCoo/fix/make-numbers-sequence
Type Tools: Make Numbers Sequence numbers the selected type objects
2026-12-02 01:10:32 -08:00
.CooCoo f3d8dee1d2 Merge pull request #10543 from dotCooCoo/fix/script-save-test-workspace
Tests: script save tests remove their folders when an assertion fails
2026-12-02 00:47:28 -08:00
dotCooCoo 9b40798f6a Merge main into fix/retype-period-font-order 2026-12-02 00:40:20 -08:00
dotCooCoo 125d5dd171 Merge main into fix/panel-title-strip-corners 2026-12-02 00:40:08 -08:00
dotCooCoo 35afebf9dd Merge main into fix/census-behavior-tables 2026-12-02 00:27:33 -08:00
dotCooCoo 0c8fd2021b Save: checked writes keep the file's backup, ACL and grant name
- A path written as a folder (`draft.svg/`, `draft.svg/.`) is refused
  instead of saving `draft.svg`.
- The second check uses the name the file is stored under, so on a
  volume that ignores letter case a grant for `Report.svg` allows a save
  to `report.svg`.
- Where the rename is refused, the copy of the old content is made
  beside the temporary file through the open folder, and in the system's
  temporary folder only when the folder takes no new file.
- The copy of the old content is read from the file that is then
  overwritten: when another file is at the name by then, nothing is
  overwritten and the new content stays in the temporary file.
- On Apple platforms the folder is opened with `O_SEARCH`, so a folder
  that can be written and searched but not listed takes the file.
- On Linux the replaced file's ACL is read through an `O_PATH` handle,
  so a file its owner can write but not read keeps its ACL.
- The moved-folder test expects the original folder in the message on
  FreeBSD, which does not report where an open folder is now.
2026-12-02 00:25:05 -08:00
dotCooCoo da8e9cc197 xtask: test-lint census leaves out loops that run each entry through a computation
A loop over a whole table whose body passes the entry to a call together
with other state (a command run, a file written, a render, a parse of
other input) checks behavior for each entry, so the census rule no
longer reports it. A lookup, a call on the entry alone, literal
arguments and calls in a failure message still count as a census.

The call counts only where it runs whenever the loop's assertions pass:
not after an `||`, not on the right of an `&&` whose result is not
asserted, not inside an `if`, `else`, `match` arm, `while` or async
body, and not inside a closure the loop never calls. A name counts as
the entry from the `let` that binds it from the entry to the end of its
block, and not where a nested loop, a closure parameter or another
`let` rebinds it or where it names a field. An asserting helper keeps a
loop out of the census only where it runs the same way, and a round trip
can read the entry as its receiver (`k.parse()`).
2026-12-02 00:03:36 -08:00
dotCooCoo 8c6ce6d5c9 Tests: read-only fixture test checks it caught its own panic
The test caught any panic from its closure, so a failed set_permissions
would also pass it while the file was still writable. It now asserts
the file is read-only before its panic and checks the caught payload is
that panic's message.
2026-12-01 23:53:39 -08:00
FredApps 27fd569655 Merge main into rfc52-headless-column
Resolve the docs/ui-parity.md conflict by taking main's tables and adding the Headless column to every Summary and behaviour table again (365 rows, all unknown); counts in the Headless section updated.
2026-12-02 08:46:21 +01:00
dotCooCoo 2690d0e133 Merge main into fix/script-write-holds-checked-folder 2026-12-01 23:24:23 -08:00
dotCooCoo 6cf9145890 Save: checked writes check the open folder's path as it is
The second check of a checked write passed the open folder's path as
text and looked it up again. A path that was not valid UTF-8 was refused,
and a folder on that path replaced by a link into an allowed folder
between the two lookups could let a place outside pass.
check_write_real compares the open folder's real path with the write
roots and the script's grants as it is, without looking it up again.

- The folder is opened with O_PATH on Linux, Android and FreeBSD, so a
  folder that can be written and searched but not listed takes the file.
  The folder flush opens it for reading, and an error there still
  reports the completed write.
- The replaced file's permissions are read after the new content is
  written, as write_atomic_with reads them, so permissions taken away
  meanwhile stay taken away. Its ACL is read only from the same file.
- A folder that changed while it was opened is no longer reported as a
  read-only location.
- Errors name the kept temporary file where its folder is now, after
  the folder moved.
- A file already at the name the old content is copied to is left as it
  is: only a copy this save made and could not finish is removed.
2026-12-01 23:24:20 -08:00
dotCooCoo 0a66352e8c JavaScript: a failed host class install adds none of its classes
Realm::define_host_classes registered each class, and defined its global
constructor, before it checked the next one. A batch whose second class
named an unknown parent or a member twice failed with the first class
already installed, so a retry failed with "defined twice". A failed
instance did the same, and could leave an object scripts held with a
class the realm no longer had.

Every class's name, parent and members are now checked before any class
is added, so a child must still follow its parent in the batch. A
failure after that point removes the classes added, puts back each
global the call replaced and the class of each object an instance moved
to a new class. The replaced globals stay rooted until the call ends, so
a collection during the call does not free them.
2026-12-01 23:19:55 -08:00
dotCooCoo 19d9f5af3b Merge main into fix/panel-title-strip-corners 2026-12-01 23:01:55 -08:00
dotCooCoo 615d35f878 Merge main into fix/script-save-test-workspace 2026-12-01 22:54:36 -08:00
dotCooCoo 81c9588b26 Tests: read-only gate test sets up its cleanup before the first assertion
a_script_gate_does_not_write_over_a_read_only_file created its
ReadOnlyFixture guard after two assertions, so a failure in either left
the test folder behind. The guard is now created right after the file
path is made, before the file is written.
2026-12-01 22:54:36 -08:00
dotCooCoo 0338960bc2 Merge main into fix/census-behavior-tables 2026-12-01 22:52:50 -08:00
dotCooCoo c07cc5fdfc Merge main into fix/test-lint-hits
main's c58415b307 already rewrote swatch::tests::default_swatches_parse
to check the built swatches, so the conflict keeps main's version.
2026-12-01 22:50:14 -08:00
.CooCoo 7554b7fc30 Merge pull request #10196 from dotCooCoo/fix/script-module-scan-clock
Tests: the .mjs listing test lists the Scripts folder on a fixed clock
2026-12-01 22:48:46 -08:00