Skip to content
This repository was archived by the owner on Sep 20, 2019. It is now read-only.

Commit e6a0d18

Browse files
qwteladdyosmani
authored andcommitted
Quick fix #617 (#618)
* Quick fix #617 * More specific fix for #617
1 parent 9387b12 commit e6a0d18

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/ShadowDOM/wrappers.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,11 @@ window.ShadowDOMPolyfill = {};
182182

183183
function getDescriptor(source, name) {
184184
try {
185+
// getOwnPropertyDescriptor in Safari on iOS 10.0.1 returns
186+
// undefined for these values, which would cause an exception later.
187+
if (source === window && name === 'showModalDialog') {
188+
return dummyDescriptor;
189+
}
185190
return Object.getOwnPropertyDescriptor(source, name);
186191
} catch (ex) {
187192
// JSC and V8 both use data properties instead of accessors which can

0 commit comments

Comments
 (0)