- A middle-click on a link opens the link in a new tab. Scrolling
starts at once, as before. The new engine command linkAt reads the
link under the pointer in an isolated world. When it finds a web
link, the tab stops the scroll and opens the link.
- The image menu of a page starts with Open image in new tab.
A new tab opens in front, like Open link in new tab. The engine smoke
test checks linkAt, and the interaction test checks both actions with
the real engine. Cards 333909d1 and f7ee842d.
The engine applied device emulation at did-finish-load. Each new
document gets a renderer widget without emulation. Google replaces its
first document with ?zx=... before that document finishes. Thus the
first document kept a scale of 1, and the page grew by the display
scale when the second document finished.
The engine now also applies emulation when a main-frame document
commits. In the real app at 125%, Google keeps the same size before and
after its second document. Card 40a8db13.
A browser puts only the first frame of an image on the clipboard, with
HTML that names the image address.
- Documents and cards download the original of a GIF, WebP, or AVIF
address. The host commands workspace_save_image_url and
workspace_download_image read the format from the file contents and
refuse other data. A failed download keeps the first frame and shows
a message.
- Copy image in the RuneStone browser keeps the bytes that the page
loaded. The engine reads them through the DevTools Protocol, so the
website gets no second request. The new copiedImage command gives
them in parts below the line limit of the host. A paste uses them
first.
- An empty dropped image file shows a message. Firefox gives such a
file when the website refuses its download.
Copy image needs a new browser engine build. Card 0d5c18f7.
The engine ZIP is the release browser-engine-v0.1.8 of the public
RuneStone_Releases repository: 163632595 bytes, SHA-256
d704003bf5fe047b100a3cf0ab84f3321fd272510cf287a229e50d1653d0856b.
The installer no longer bundles the engine, and the installer script
stops when the bundle names it or when the setup file is over 30 MB.
pnpm build:browser-engine packages the engine, writes a deterministic
ZIP and its record to releases/browser-engine/<version>/, and pins the
ZIP in the host. The installer hooks remove the engine folder that 0.1.48
leaves behind, and uninstall removes the downloaded engine.
Each host build pins one engine version in src-tauri/browser-engine.json.
The new engine manager downloads that ZIP over HTTPS, makes sure that its
size and SHA-256 match the pin, extracts it safely to the local app data
folder, and marks the installation last. It can also install a local
ZIP, cancel, report progress, and remove the engine. The host refuses an
engine that sends another protocol with its ready event.
The browser data moves from the roaming app data folder to the local
app data folder before the engine starts. A failed rename falls back
to a copy. The old folder stays when the copy fails or when the new
folder exists.
The built-in browser looked blurry at Windows display scaling above 100%.
The engine rendered sharp frames, but the host stretched each frame to the
surface. The stretch resampled every pixel and blended text and images.
- The engine crops the extra frame edge and sends the frame scale.
- The view shows each frame at its CSS size, at a device pixel edge, on its
own compositor layer, with nearest-pixel sampling.
- Pointer input subtracts the frame offset.
- The view sends a new scale when the display scale changes.
- A new smoke test, browser/scale, measures stripe contrast at 100%, 125%,
150%, and 200%, and after a scale change. It also tests click positions.
Measured contrast at 150%: 92 of 255 before, 255 after.
(cherry picked from commit e98a65de536111b5365d1c6f863a897a8e38e505)