Skip to content

Fix error property propagation from background pages

Created by: felixfbecker

Currently, errors that go through the background-content-page boundary lose their error name: https://github.com/mozilla/webextension-polyfill/issues/210. This means we need to use hacky string message assertion and cannot include any other context. This has caused multiple bugs (e.g. #9411 (closed), #7599 (closed), ...) and many hours of engineering time lost.

names could always be propagated, custom properties are a bit more tricky because they may not be cloneable.

  • Fix in comlink: @felixfbecker
  • Fix in webextension-polyfill: @lguychard has a branch to fix this