Skip to content

[BUG] Firefox crash with SVG favicon on Win10 #5977

@faulpeltz

Description

@faulpeltz

Context:

  • Playwright Version: v1.10, v1.9.x
  • Operating System: Windows 10 64bit
  • Node.js version: 14.16 (not relevant for this bug)
  • Browser: Firefox
  • Extra: Works on Ubuntu 20.04

Describe the bug

The bundled firefox version (firefox-1238, and earlier) crashes when using a SVG favicon:

<!doctype html>
<html>
  <head>
    <meta charset="utf-8">
    <link rel="icon" type="image/svg+xml" href="/favicon.svg">
    <title>SVG ICON TEST</title>
  </head>
<body>
  NO TEXT
</body>
</html>
<svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
  <style>
  @media (prefers-color-scheme: dark) {
    .dummy { fill: #f22 }
  }
  </style>
  <circle fill="red" cx="16" cy="16" r="12" />
</svg>

Windows event log

Faulting application name: firefox.exe, version: 87.0.0.7746, time stamp: 0x6051c457
Faulting module name: xul.dll, version: 87.0.0.7746, time stamp: 0x6051c464
Exception code: 0xc0000005
Fault offset: 0x00000000034e8512

Notes

  • This happens when running the bundled FF instance manually or from PW
  • Does not happen with various "stock" FF nightly/beta/release versions
  • Reproducible on multiple Win10 machines with different hardware
  • Safe mode does not help
  • Headless also does not work
  • When running manually the cached svg favicon causes a crash when opening history

edit: only crashes with the "prefers-color-scheme" media query, this might be uncommon in favicons - but it does cause a hard crash

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions