window.open() results in 2 requests (Edge 25.10586)

Fixed Issue #7277069

Details

Author
J S.
Created
Apr 20, 2016
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
25.10586
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

When using the window.open(url,windowname) Javascript function to open an URL in a new browser window/tab, the window/tab opens and loads the requested URL, but the request is sent twice, sometimes resulting - depending on the timing - in the first request being cancelled and leading to an error message in the server log.
The window.open() function should only send the request to load the URL once to avoid “interrupted” error on the server and the avoid performance issues by requesting the same URL twice.
This happens in Edge 25.10586, updating to 34.14295 didn’t improve the situation.

Attachments

Comments and activity

  • Microsoft Edge Team

    Changed Assigned To to “Brad E.”

  • Hello,

    I have not been able to repro this as you describe in your initial report. Would you be able to provide us with a sample of code that demonstrates this?

    Feel free to edit the repro I created:

    http://jsbin.com/defogu/edit?html,output

    I added in the bootstrap library to spice it up a bit.

    All the best,
    The MS Edge Team

  • I havn’t been able to reproduce this using the JS Bin website. The error is very strange, it occurs always under certain conditions but never if the conditions are slightly different.
    I have attached 3 test files I used. test.html has a link that calls a Javascript function with the window.open() call that opens test1.html in a new window (also happens with tabs).
    test1.html uses test.css.

    It is important, that the browser cache is disabled, otherwise, the second request will just load from the cache and is not visible in the server logs.

    What I found is: Using the above constellation and while displaying the F12 tools (and activating the “always load from server” icon!!!) in Edge, clicking the link opens a new Edge window, requests the test1.html page, requests the test.css and then request again the test1.html page (which should not happen).
    I can see this clearly in the Tomcat access logs.
    I have also attached a screenshot of the F12 tools that shows the requests.

    The strange thing is: When I close the F12 tools, the second request for test1.html does not occur; this may be because the browser gets it from the cache.

    But leaving F12 shown (and “always load from server” activated), when I remove the css import part from test1.html, the second request for test1.html does also not occur.

    It seems for me (except I do something horribly wrong in my test files/configuration) that it may have to do with the facts that the new windwo is loaded from the same server as the originating page and that the new page includes parts that must be reloaded the css for example).

    It is very strange.

  • BTW: It works fine in IE11 and FF.

  • Ok, I tried it without window.open() and instead using the tag with the url and target attributes and got the exact same behaviour (double request).

  • I’ve finally managed to get the test file on a server reachabkle from "outside".

    You can try http://legato.gefasoft.de/Legato/test.html and click on the link there to call the window.open function and hopefulyl reproduce the error.

  • Thank you for providing that. When you are checking this are you seeing two requests fire in the Network section or just in the webserver logs?

  • I see two requests in the Network section and in the webserver logs. See attachment edge.png.

  • Hello,

    Thanks for providing that link.  I tested this behavior on two different builds of Windows 10 and Edge.  On 10586 I notice that I am able to repro this behavior as described.

    However, if I test the same link on a later build (specifically 14352.1002.0 and it no longer repros. As far as I can tell this has been fixed in later builds and will be resolved out to reflect this.

    Thanks for the details and patience while we worked towards resolving this item. We look forward to more feedback from you in the future.

    All the best,
    The MS Edge Team

  • Microsoft Edge Team

    Changed Status to “Fixed”

  • I stumbled unto this thread while searching for an answer that appears to be this same problem. Webpages are opening twice per request. I am not a programmer so I will not be able to communicate this in a applicable way. This started happening right after the major update September 2017. It causes errors and web pages to stop responding. It appears to be more repeatable when pages include flash video, but not exclusively.

    Microsoft Edge 40.15063.0.0
    Microsoft EdgeHTML 15.15063

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

Sign in