aurelia / dialog

A dialog plugin for Aurelia.
MIT License
106 stars 115 forks source link

Aurelia dialog throws Access is denied error in IE11 and Edge when running in iFrame #334

Closed ItWorksOnMyMachine closed 6 years ago

ItWorksOnMyMachine commented 6 years ago

I'm submitting a bug report

Please tell us about your environment:

Current behavior: When using an Aurelia application embedded in an iFrame, when the DialogService's open method is called, then IE11 and Edge throw an Access is denied error inside aurelia-metadata's Origin.get method.

Expected/desired behavior: The expected behavior is that the dialog shows itself. This works fine in Chrome and Firefox, it only fails in IE11 and Edge.

StrahilKazlachev commented 6 years ago

Since you've pinpointed the problem, why not submit the issue in aurelia-metadata? I can dig into the issue, but I'll need the version of aurelia-metadata you are using.

StrahilKazlachev commented 6 years ago

You are probably opening a dialog passing a class for viewModel? If so a work around will be to use a app root relative moduleId.

ItWorksOnMyMachine commented 6 years ago

@StrahilKazlachev, you rock! The switch to moduleId fixes this issue for me.