IE11 BUG caused by MS16-009 Security Update package - showModalDialog() does not return a value

By design Issue #6651041

Details

Created
Feb 23, 2016
Privacy
This issue is public.
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

URL:

Repro Steps:

Any website that uses a showModalDialog() call and returns a value can test this by setting a breakpoint right after the call to showModalDialog()

Run the sample project attached,

It is limited to Internet Explorer, and recently we updated this to work for IE11. However, ever since the Security Package update MS16-009 was released, we’ve had an issue where all .showModalDialog() calls in JavaScript are no longer successfully returning a value. The window.returnValue is still being populated properly on the child page’s JavaScript, but when the child page is closed and the parent page’s JavaScript continues, the variable we’re storing the return value in is ‘undefined.’

Expected Results:

window.showModalDialog() in JavaScript should return a value when the window.returnValue property is being set from child window created by .showModalDialog()

Actual Results:

Dev Channel specific:

No

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Mara P.”

      Changed Assigned To to “Saty B.”

      Changed Assigned To from “Saty B.” to “Vamshi B.”

    • Any updates on the fix to this issue?

    • Option 1:
      use parent.window.returnValue instead of window.returnValue

      Option 2:
      Instead of writing the code to close the window in the iframe page call the parent page and close the window from the parent:
      parent.CloseParent("test’);

      Write the code in the parent window:
      function CloseParent(Returnvalue)
      {
      window.returnValue = Returnvalue;
      window.close();
      }

    • Microsoft Edge Team

      Changed Assigned To from “Vamshi B.” to “IE S.”

      Changed Status to “By design”

    • This issue is by-design as part of a KB3134814. An iframe within the modal window that is created by showModalDialog will not be able to set the returnvalue of the window by using the iframe’s returnvalue. Instead, an iframe must explicitly set the returnvalue of the parent modal window by using parent.returnvalue or top.returnvalue.

      All the best,
      The MS Edge Team

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

    Sign in