polyfills
polyfills copied to clipboard
window.__shady_native_addEventListener is not a function in versions of Chrome and Firefox
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
- 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
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 |
Sounds possibly related to #298
Also seeing this in Firefox 31.6 ESR.
firefox 52 no luck!
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.
Not state, repo needs more attention
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.
still not stale, I wished this bot didn't exist.