Skip to content

Conversation

@pavelsavara
Copy link
Member

@pavelsavara pavelsavara commented Dec 29, 2025

  • get rid of 404 error for icon file - which appears in our test logs
  • the icon is actually just minimal PNG magic, not valid icon.
  • Credits: https://stackoverflow.com/a/13416784
  • For the default WASM template it's real dotnet icon

@pavelsavara pavelsavara added this to the 11.0.0 milestone Dec 29, 2025
@pavelsavara pavelsavara self-assigned this Dec 29, 2025
@pavelsavara pavelsavara added area-Build-mono os-browser Browser variant of arch-wasm labels Dec 29, 2025
@pavelsavara pavelsavara marked this pull request as ready for review December 29, 2025 14:13
Copilot AI review requested due to automatic review settings December 29, 2025 14:13
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a dummy favicon to HTML files across WebAssembly browser tests, samples, and templates to eliminate 404 errors that appear in test logs when browsers automatically request /favicon.ico.

Key Changes

  • Added inline base64-encoded favicon to all WASM/browser HTML files using a data URI
  • Standardized favicon placement in the <head> section across all files
  • Fixed trailing whitespace issues in several HTML files

Reviewed changes

Copilot reviewed 25 out of 25 changed files in this pull request and generated 25 comments.

Show a summary per file
File Description
src/tests/FunctionalTests/WebAssembly/Browser/StartupHook/index.html Added favicon link to test page
src/tests/FunctionalTests/WebAssembly/Browser/RuntimeConfig/index.html Added favicon link to test page
src/tests/FunctionalTests/WebAssembly/Browser/HotReload/index.html Added favicon link to test page
src/tests/Common/wasm-test-runner/index.html Added favicon link to minified test runner
src/native/corehost/browserhost/sample/index.html Added favicon link to browser host sample
src/mono/wasm/testassets/WasmOnAspNetCore/WasmBrowserClient/wwwroot/index.html Added favicon link to test asset
src/mono/wasm/testassets/WasmOnAspNetCore/BlazorClient/wwwroot/index.html Added favicon link to Blazor test client
src/mono/wasm/testassets/WasmBrowserRunMainOnly/wwwroot/index.html Added favicon link and fixed trailing whitespace
src/mono/wasm/testassets/WasmBasicTestApp/App/wwwroot/index.html Added favicon link and fixed trailing whitespace
src/mono/wasm/testassets/LibraryMode/wwwroot/index.html Added favicon link and fixed trailing whitespace
src/mono/wasm/templates/templates/browser/wwwroot/index.html Added favicon link to WASM browser template and fixed trailing whitespace
src/mono/sample/wasm/simple-raytracer/wwwroot/index.html Added favicon link and fixed trailing whitespace
src/mono/sample/wasm/browser/wwwroot/index.html Added favicon link to browser sample
src/mono/sample/wasm/browser-threads/wwwroot/index.html Added favicon link to threads sample
src/mono/sample/wasm/browser-shutdown/wwwroot/index.html Added favicon link and fixed trailing whitespace
src/mono/sample/wasm/browser-profile/wwwroot/index.html Added favicon link to profiler sample
src/mono/sample/wasm/browser-logprofile/wwwroot/index.html Added favicon link to log profiler sample
src/mono/sample/wasm/browser-eventpipe/wwwroot/index.html Added favicon link, fixed <br> formatting, and trailing whitespace
src/mono/sample/wasm/browser-bench/wwwroot/index.html Added favicon link to benchmark sample
src/mono/sample/wasm/browser-bench/wwwroot/appstart-frame.html Added favicon link to benchmark frame
src/mono/sample/wasm/browser-advanced/wwwroot/index.html Added favicon link and fixed trailing whitespace
src/mono/sample/mbr/browser/wwwroot/index.html Added favicon link to hot reload sample
src/mono/browser/test-index.html Added favicon link to minified test index
src/coreclr/pal/tests/palsuite/wasm/index.html Added favicon link to PAL tests
src/coreclr/hosts/corerun/wasm/corerun.html Added favicon link to corerun page

@pavelsavara pavelsavara enabled auto-merge (squash) December 29, 2025 16:55
@pavelsavara pavelsavara changed the title [browser] provide dummy icon [browser] [browser] provide dummy icon and template icon Dec 29, 2025
@pavelsavara pavelsavara merged commit 9d56330 into dotnet:main Dec 29, 2025
149 of 151 checks passed
@pavelsavara pavelsavara deleted the icon_404 branch December 29, 2025 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-Build-mono os-browser Browser variant of arch-wasm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants