ckerr

#54039: test: re-enable missing-file load failure

Merged
Created: Sep 17, 2026, 3:16:28 PM
Merged: Sep 17, 2026, 4:41:13 PM
4 comments
Target: main

Description of Change

Re-enable the missing-file did-fail-load test.

The old file://a.txt URL names a host, not a local file. The test was disabled in Chromium roll #21000 (49b47ee) when navigation reported ERR_FAILED instead of ERR_FILE_NOT_FOUND. The historical failure has not been reproduced.

Use pathToFileURL for a nonexistent file in a fresh temporary directory. Await the rejected load and event together, and assert the exact error, requested URL, and main-frame flag.

Validation:

  • Focused lint and formatting passed.
  • The target and existing-file control passed in three independent Xvfb/X11 runs without retries, using the existing Electron v46.0.0-nightly.20260917 binary.
  • Native Windows validation and the full test suite were not run.

Checklist

Release Notes

Notes: none

Backports

43-x-y
Merged
PR Number
#54055
Merged At
Sep 17, 2026, 7:03:17 PM
Released In
Not yet
Release Date
Not yet
44-x-y
Merged
PR Number
#54054
Merged At
Sep 17, 2026, 6:53:52 PM
Released In
Not yet
Release Date
Not yet
45-x-y
Merged
PR Number
#54053
Merged At
Sep 17, 2026, 7:17:29 PM
Released In
Not yet
Release Date
Not yet

Semver Impact

Major
Breaking changes
Minor
New features
Patch
Bug fixes
None
Docs, tests, etc.

Semantic Versioning helps users understand the impact of updates:

  • Major (X.y.z): Breaking changes that may require code modifications
  • Minor (x.Y.z): New features that maintain backward compatibility
  • Patch (x.y.Z): Bug fixes that don't change the API
  • None: Changes that don't affect using facing parts of Electron