The background load of the plug-in store read the grants file directly and
counted its grants whether or not the file was signed, so a grants file
changed outside VectorCraft, or an earlier copy put back, still let its
plug-ins load. It now takes the grants through the same check as the other
reads (signed_grants), and an unsigned file grants nothing.
The three load tests that expect a grant in the store now write a signed
grants file and read it back in the signed format.
A click on a Document Info value copies the whole value to the clipboard
and the status bar shows "Copied the value". Dragging across a value still
selects part of it, a Shift-click still extends the selection, and a double
click copies the value once and selects a word. Part of #8432.
The contrast row, its menu rows and its tests move to the craft UI framework,
as main's Color Wheel panel now uses it:
- The row is a Row with a Swatch named Background (a color well whose value is
the background's hex value) and Text for the ratio and the AA and AAA
results, each with the WCAG minimums as its tooltip.
- Show Contrast, Contrast For and Contrast Background are rows of the panel
menu's items (ui.colorWheel.contrast, contrastFor.<id>,
contrastBackground.below and contrastBackground.current), after Show
Opacity. Current Color is gray, and its row answers an error, while the
active proxy has no solid color.
- The kept background and ratio answer are fields of WheelUi instead of panel
state. The answer's key also holds whether the Live Paint Bucket paints,
which changes the proxies' paint without a document revision.
- The row's tests run in the panel's Fixture by accessible name; the drag test
runs an interaction whose previews set the fill, as the Show Document Colors
drag test does.
- The settings lists in the params text, docs/mcp.md and the tests take both
opacity and the contrast keys.
Export… in the Print Presets, PDF Presets, Transparency Flattener Presets
and Perspective Grid Presets dialogs suggested the document's name
(Untitled.vcprintpresets). It now suggests the selected preset's name with
the format's extension, made safe as a file name the way Export Library…
makes a library's. A built-in preset's file is named without its brackets
([Default] gives Default.vcprintpresets). The four dialogs share one
helper, preset_manager::export, and the web downloads the file under the
same name.
The panel's style browser used one id for every document, and styles
are keyed by name. A rename field left open in one document moved to
the next document's style of the same name, with the text typed so far,
and Enter renamed that document's style. The browser id now includes
the document's uid, so the open rename field and the scroll position
are kept per document.
The new test types into a style's rename field, switches documents,
types again and presses Enter. Without the change the second
document's style is renamed to "XY".
The test paints a dashed Overlay::Line that runs far past both sides of
the canvas through paint and checks that only the dashes near the canvas
are drawn, all on the line.
The Align panel's buttons, and the Object > Align and Object > Distribute
items that run the same commands, are UI commands. Their enabled check
returned only true or false, so a dimmed button was described as "command
`Vertical Distribute Top` is not available right now", in its tooltip and
to screen readers.
They now give the reason of the engine command the button runs: "select at
least two objects" for Distribute with fewer than two objects, "nothing
selected" for Align, "no document open". With the Artboard tool chosen
they say how many artboards Distribute needs ("select at least three
artboards", or two with Align to Artboard).
A dimmed menu item's reason is now shown in the interface language, as
the fallback text already was.
The Stylus Wheel and Pressure widths are at least 0.1 pt. A drag keeps the
size when Size is set to Stylus Wheel, or to Pressure after a Fixed start; a
drag that started on Stylus Wheel follows its recorded pen pressure after a
change to Pressure.
In one column the Tools rail shows a single drawing-mode button, named
for the current mode, that cycles the modes. It took the selected look
whenever the mode was not Draw Normal, so a screen reader read "Draw
Normal (Shift+D), toggle button, not pressed" while Draw Normal was the
current mode. The button now has no pressed state: it reads as a button
named for the current mode, and it no longer takes the selected look in
Draw Behind or Draw Inside. In two columns each of the three buttons
still reads pressed when it is the current mode.
With Run Startup Scripts on, ui.runScript and ui.runInstalledScript
return script.run's reply, or its error when the chosen script cannot
start, with the startup run's reply under startup. While a startup
script runs first, the reply is {running: true, queued: true}.
The panel kept one start for Shift-click ranges on selection squares, so a
click in another document replaced it, and a Shift-click back in the first
document toggled one row instead of selecting the range. The starts are now
kept per open document, and closed documents' starts are dropped.
Transform Each and Effect > Distort & Transform > Transform named both
the Scale and the Move slider and number field "Horizontal:" and
"Vertical:", so only the unit in the value told them apart. Each
control's accessible name now starts with its row ("Scale Horizontal:",
"Move Vertical:"), and the visible label describes it, as Split Into
Grid names its Gutter and Total fields. The visible labels are
unchanged.
script.grants.revoke matched a path both as given and with its links
followed, so revoking a grant whose path is now a link to another
granted path removed both grants. The spellings are now tried in order,
the path as given first, and only the first script and path pair that
some grant holds is removed.
A paragraph style's hyphenation, justification, tab stops and list, and a
character style's stroke dash, now refuse a key they don't read, naming the
field, as the style's own keys already did. A misspelled nested key no longer
leaves that setting unchanged without an error.
Hosts from before api 3 refuse the manifest. A host at api 3 without writes
installs the filter, ignores the key and refuses an output that changes the
objects it was given.
A selection of plain shapes (rectangles, bars) no longer starts a
background search of the installed fonts, which would read no font for
them. The command runs at once, as it does with `installed` false.
The double-triangle button at the left end of a panel's tab strip ran
window.panel.cycleOptions with no label of its own. No menu item runs
that command, so it has no command definition, and the button took the
command id as its accessible name: screen readers read
"window.panel.cycleOptions" and the button showed no tooltip. The button
now carries the "Cycle Display Sizes" label, which names it and gives it
its tooltip. The string is already in the word catalogs.
A test opens the Stroke panel, reads the access tree and checks that the
button is named "Cycle Display Sizes" and that no button in the window
is named by a command id.
With Real-time Drawing off, typing in progress is kept as its own step before
the run is prepared, in plugin.run, a plug-in command and the app's background
start, so the plug-in is given the typed text. A run whose typing started after
it was prepared, with its text still out of the document, is refused, and a
background run that finishes then asks to be run again.
Typing whose text is already in the document is kept only after every check
that can refuse the output has passed, so a refused output leaves the
document, the history and the typing in progress as they were. When keeping it
changes the document, the output is applied to the document as kept.
Follow-up to #8800. The Learn panel's skill and tutorial lists keep their
selection, and a click on the row that is already selected reports
CollectionEvent::Picked rather than a selection change, so after Back a
click on the skill or tutorial opened before did nothing. Enter on that
row reports Activate, which the lists also ignored.
The lists now open the item on Picked and Activate as well as on a
selection change, as every row click did before the port.
Each test that expects a shape to stay an outline now passes
`"installed": false`, so the fonts on the test machine do not change its
result or its run time. With the installed fonts searched at tolerance
0.05, overlapping_exact_glyphs_stay_an_outline_when_near_matches_are_allowed
ran past the CI job's limit.
A plug-in folder load checks each file against the automation roots and,
in a command a script runs, the script's read gate. A file whose name
isn't valid text cannot be checked by name, and without automation roots
it loaded unchecked, also in a script's command. A link with such a name,
in a folder the script may read, loaded a module from anywhere.
Such a file is now refused in a script's command, as it already was under
automation roots. Outside both, it still loads.