polyfills icon indicating copy to clipboard operation
polyfills copied to clipboard

window.__shady_native_addEventListener is not a function in versions of Chrome and Firefox

Open rattai opened this issue 5 years ago • 8 comments

Description

Simply trying to load the webcomponents polyfills in Firefox 30 throws this error: TypeError: window.__shady_native_addEventListener is not a function

Since windows.EventTarget exists in FF30, this if-check results in __shady_native_addEventListener not getting set on window. However, there are attempts to call it subsequently.

Live Demo

https://jsbin.com/gajugarere/1/edit?html,console,output

Steps to Reproduce

  1. Try to load webcomponents polyfills in Firefox 30.

Expected Results

Polyfills load without error.

Actual Results

Error is thrown and polyfills fail.

Browsers Affected

  • [x] Chrome
  • [x] Firefox
  • [ ] Edge
  • [ ] Safari 9
  • [ ] Safari 8
  • [ ] IE 11

Versions

  • webcomponents: v2.4.2

rattai avatar Mar 06 '20 17:03 rattai

We see the same in these browsers :

Some of these user agents might not be honest.

Browser Versions Browser Name
31.0.0 Firefox
53.0.0 Firefox
54.0.0 Firefox
55.0.0 Firefox
56.0.0 Firefox
59.0.3074 Chrome
59.0.3076 Chrome
59.0.3090 Chrome
59.0.3096 Chrome
59.0.3101 Chrome
60.0.3149 Chrome
60.0.3152 Chrome
61.0.3164 Chrome
61.0.3170 Chrome
61.0.3178 Chrome
61.0.3185 Chrome
62.0.3190 Chrome
62.0.3193  Chrome

romainmenke avatar Mar 11 '20 06:03 romainmenke

Sounds possibly related to #298

aomarks avatar May 04 '20 22:05 aomarks

Also seeing this in Firefox 31.6 ESR.

matthias-ccri avatar Feb 11 '21 01:02 matthias-ccri

firefox 52 no luck!

devalexqt avatar Mar 22 '21 23:03 devalexqt

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Mar 30 '22 05:03 stale[bot]

Not state, repo needs more attention

romainmenke avatar Mar 30 '22 06:03 romainmenke

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 02 '23 18:04 stale[bot]

still not stale, I wished this bot didn't exist.

romainmenke avatar Apr 02 '23 18:04 romainmenke