Skip to content

Bug 2007071 - Align MIDI errors with the web-midi-api spec#14

Closed
nikelborm wants to merge 1 commit into
mozilla-firefox:mainfrom
nikelborm:main
Closed

Bug 2007071 - Align MIDI errors with the web-midi-api spec#14
nikelborm wants to merge 1 commit into
mozilla-firefox:mainfrom
nikelborm:main

Conversation

@nikelborm
Copy link
Copy Markdown

Deprecated SecurityError and InvalidAccessError in favor of NotAllowedError.

InvalidAccessError replaced by NotAllowedError:

The change in spec: WebAudio/web-midi-api@3795f22
According PR: WebAudio/web-midi-api#278
MDN update PR: mdn/content#42334

Affected APIs

  1. .send method of output MIDI ports
  2. .open method of MIDI ports

SecurityError replaced by NotAllowedError:

The change in spec: WebAudio/web-midi-api@b7806b8
According PR: WebAudio/web-midi-api#267
MDN update PR: mdn/content#41956

Affected APIs

  1. navigator.requestMIDIAccess method

…d `SecurityError` and `InvalidAccessError` in favor of `NotAllowedError` r?gsvelto,bholley

= `InvalidAccessError` replaced by `NotAllowedError`:

The change in spec: [WebAudio/web-midi-api@3795f22](WebAudio/web-midi-api@3795f22)
According PR: [WebAudio/web-midi-api#278](WebAudio/web-midi-api#278)
MDN update PR: [mdn/content#42334](mdn/content#42334)

== Affected APIs

1. `.send` method of output MIDI ports
2. `.open` method of MIDI ports

= `SecurityError` replaced by `NotAllowedError`:

The change in spec: [WebAudio/web-midi-api@b7806b8](WebAudio/web-midi-api@b7806b8)
According PR: [WebAudio/web-midi-api#267](WebAudio/web-midi-api#267)
MDN update PR: [mdn/content#41956](mdn/content#41956)

== Affected APIs

1. `navigator.requestMIDIAccess` method
@github-actions
Copy link
Copy Markdown
Contributor

(Automated Close) Please do not file pull requests here, see https://firefox-source-docs.mozilla.org/contributing/how_to_submit_a_patch.html

@github-actions github-actions Bot closed this Dec 19, 2025
@github-actions github-actions Bot locked and limited conversation to collaborators Dec 19, 2025
feder-cr pushed a commit to feder-cr/invisible-firefox that referenced this pull request May 20, 2026
…ad (fixes mozilla-firefox#14)

scripts/make_release.sh was previously running `tar -czf firefox` directly
against obj-*/dist/bin/firefox — preserving the ~6,900 symlinks that the
in-tree build scatters across the source tree. The published Linux
tarballs for firefox-3 and firefox-4 were dangling-symlink graveyards
that could not boot Firefox; 265 downloads were affected.

This replaces the broken script with a pipeline that:

  1. linux_release.sh — runs `cp -aL` (dereference), strips debug,
     scrubs `/home/feder` build-host paths, removes dev-only binaries
     (xpcshell/certutil/pk12util/rapl that leaked build paths), and
     produces a tarball with anonymized owner + fixed mtime.

  2. validate_release.py — extracts BOTH archives to clean temp dirs and
     verifies: 0 symlinks, 0 path-style leaks (/home/feder, Users\Feder),
     critical files present (firefox, application.ini, dependentlibs.list),
     and `firefox --version` actually runs. Linux smoke runs through WSL
     when invoked from Windows. Exits non-zero on any failure.

  3. make_release.sh — drives both, then refuses to upload if the
     validator rejects either archive. The validator step is mandatory,
     not advisory: this is the gate that was missing.

Confirmed locally:
  - validator against the broken firefox-4 tarball -> exit 1 (6897 symlinks)
  - validator against the rebuilt firefox-4 tarball -> exit 0 (firefox 150.0.1 runs)

The firefox-4 and firefox-3 release assets on feder-cr/invisible_playwright
have already been replaced with the rebuilt content.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant