Queued palette events keep the file access scope of the pass that gave
them, and update() runs only the events whose scope the running script
already has. update() on a removed container throws an error the script
can catch. The palette dialog returns its events from the Dialog body,
and the palette and script window tests run their frames through
testing::part_frame.