Get icon > Automatic looked for the site's icon from the base URL and kept
that base URL as the picture's address (iconFrom). The editor then opened
with the base URL in the Image URL box, and picking a built-in icon left the
box asking: Save flushed the "typed" address first, fetched the base URL as
a picture over the built-in one, and the built-in pick never stuck.
Now only icons/url's own address is kept as iconFrom, and picking a built-in
icon or choosing a file closes the address box and clears what was typed,
so nothing is fetched over the user's pick. A provider saved before with
the base URL as its address is fixed the first time a built-in icon (or a
file) is picked: the backend drops iconFrom with a non-file icon already.
Test: internal/gui/tests/icon-builtin-over-address.test.cjs (the reporter's
saved state: a file icon with iconFrom = base URL; pick github, Save, open
again; Automatic then Save; built-in over Automatic's), Chromium and WebKit,
420 and 1100 wide, en/zh/zh-TW/ja/de.
Run on mote (mote-run), at this tree:
- icon-builtin-over-address, icon-url-saved, icon-url: 60 of 60 pass.
- Broken by hand: the old app.js put back, the new test fails 20 of 20
with "the base URL is still in the Image URL box" (1 !== 0).
- go test -tags nogui -run Budget ./internal/gui: ok (core scripts
1,533,742 <= 1,533,802, paid for by one comment cut, no raise).
Not tried: the real app with a real provider's favicon; the full GUI suite
(runs once after the three fixes).