Modal Window Interaction with Parent

By design Issue #7341131

Details

Created
Apr 26, 2016
Privacy
This issue is public.
Found in
  • Microsoft Edge
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

Go to www.web2ria.com and click the “Widgets” tab. Then select the “Popups” submenu item, and try using the “Click to activate 'Modal Window’” button. It should open a modal window rather than a new separate browser window as happens.

Try the same operation in IE11 to see how it should work properly.

As a result of this error, when a message is entered into the “Enter Message Here” text box in the window, and the “Paste Message into Parent” button is clicked in the window, nothing happens in Edge, but in IE11 the message entered in the text box in the modal window is placed in the parent page’s text box below the “Click to activate 'Modal Window’” button.

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Brad E.”

    • Hello,

      Thanks for the feedback. I could be wrong but these modal windows look like they are being generated with window.showModalDialog. If that is the case this is done by design (which would make sense since they work properly in IE11). If you can show me how it is being opened with window.open we would be happy to look into this matter.

      showModalDialog has been deprecated by all major browsers and we won’t change the behavior of this legacy method. If I am reading the code properly, I think that removing the if statement that handles the showModalDialog behavior would produce more consistent behavior between browsers.

      All the best,
      The MS Edge Team

    • Hi Brad,

      Thanks for the feedback on this. Of course you are correct that showModalDialog has been deprecated, and I had been unaware of that, what with it working as expected in IE11!

      I’ll modify the code on www.web2ria.com to take care of this.

      Phil

    • Microsoft Edge Team

      Changed Status to “By design”

    • Happy to help out, Phil.

      Here are the reference materials in case anyone else happens to stumble across this item:

      http://blog.chromium.org/2014/07/disabling-showmodaldialog.html

      https://developer.mozilla.org/en-US/docs/Web/API/Window/showModalDialog

      The item will be closed as By Design to reflect this. We appreciate your input on the matter.

      All the best,
      The MS Edge Team

    You need to sign in to your Microsoft account to add a comment.

    Sign in