Clicking OK or Cancel in Preferences ended the app with an uncaught
NSRangeException from -[_NSTouchBarFinderObservation invalidate]
whenever the Touch Bar server runs (any Mac with a Touch Bar). When a
window closes, accesskit_macos 0.27.1 put the content view's original
class back, which removed the key-value observing subclass AppKit's
Touch Bar support had installed on the view. AppKit then failed to
remove its observer.
accesskit_macos 0.27.2 leaves the class alone when key-value observing
has subclassed the view (AccessKit/accesskit#835). Cargo.lock moves to
it, with accesskit 0.25.2 and accesskit_consumer 0.39.2, which it
requires.
Fixes#10473
textFrames.removeAll() and the removeAll() of a group's pageItems,
groupItems and compoundPathItems checked only clip groups whose mask
they release. Deleting the type or art below an image in an ordinary
group named Image Trace left the image first, so the group was read as
a tracing and the image dropped out of pageItems. Both now throw
"Only Image Trace can make a tracing" and delete nothing, checking the
whole set being deleted at once.
The folder sits in a guard that removes it on drop, so a panic in the
write or the search no longer leaves the 41 MiB file in the temporary
directory. The normal path still removes it explicitly and fails on an
error.
- rules_parse_by_id_and_label reads a few shown labels back through
parse(label(h)). The labels are written in vectorcraft-color and the
ids come from craft-libs, so a label that drifts from its id no longer
parses.
- units_choose_the_default_scale covers $INSUNITS 3 (miles) and
7 (kilometers), which have no unit of their own and read as
millimeters at their scale.
- A rectangle bent along a circle keeps its corners at the ends of its
step, its baseline edge on the circle and its other edge on the circle
its height along the normal, with and without a rise off the path. A
straight path and a glyph with no advance leave the outline as it is.
- The file search for a character no loaded font covers loads a font
that covers it, and skips the same font padded to 41 MiB.
Add tests that fail when these PDF import paths break:
- Optional content membership dictionaries: AllOn, AnyOff, AllOff and
the default AnyOn decide which marked art the page walk skips, with
groups given as an array or a single reference. Each shown path keeps
the spot ink the walk found it painted in.
- Tiling patterns and soft masks nested more than 8 levels deep open
with their "nested too deeply" warnings.
- The ink-space scan stops 32 levels into an object and after 4,096
spaces.
- A one-ink image of more than 2^26 pixels is refused before its
samples are decoded.
remove(), the document's pageItems.removeAll() and textFrames.removeAll()
release the mask of a clip group whose clipping path they delete. A clip
group named Image Trace with an image next above its clipping path then
became an ordinary group named as a tracing with an image first, which
reads as a tracing. They now throw "Only Image Trace can make a tracing"
and delete nothing in that case.
docs/mcp.md names the removeAll() collections that release a mask and
the ones that refuse to delete a clipping path instead.
- Layer.zOrderPosition reads the sibling list through the cached layer
lists, so reading it for every layer of a loop lists the layers once.
Each read is still charged for the search through the list.
- TextFrames.removeAll releases the mask of a group or layer whose
clipping path is one of the type objects it deletes, as
PageItems.removeAll and remove() do, so the object above the type is
not made the clipping path.
- GroupItems.createFromFile checks that its collection is still there
first, so a collection whose group was deleted throws "Stale page item"
instead of the not-available message. docs/mcp.md says so.
A file.new step replayed from a journal or the Actions panel rounded
artboardLayout.rows and then refused a result over 1000, so a step with
rows 1000.5 or 5000 stopped the playback. The rows count now follows the
columns rule: it is rounded, must be 1 or more, and is kept to at most
1000. Recent stores the kept count. docs/mcp.md says the same.
A `CUPS_SERVER` or `ServerName` of `localhost`, `127.0.0.1` or `::1` counts
as this machine's scheduler only with no port or port 631. On another port
(a second CUPS instance) the dialog no longer reads `/etc/cups/ppd`, whose
queues belong to the default scheduler, and asks `lpoptions` and IPP
instead.
When the named server is one of CUPS's own domain sockets and neither the
PPD nor `lpoptions` lists sizes, the IPP lookup asks `localhost` on the IPP
default port, as it already does when no server is named. `ipptool` rejects
a URI whose host is a socket path (`httpSeparateURI` in CUPS's
`cups/http-support.c`), so another socket path is not asked.
stream_length took the last "obj" substring in the text as the object
header, so a stream dictionary name such as /Tag/obj moved the scan past
the outer dictionary and lost its /Length. The keyword now counts only at
the start of the text or after PDF white space.