Edge raises "blur" event while "keydown" event processing is not completed

Confirmed Issue #15480916 • Assigned to Sanket J.

Details

Author
Blaine P.
Created
Jan 16, 2018
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
41.16299
Reports
Reported by 2 people

Sign in to watch or report this issue.

Steps to reproduce

This issue appears very similar to https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/5891473/

The expected behavior is that calling window.open within a 'click’, 'dblclick’, or ‘keydown’ event would have the same behavior. They do not, and the ‘blur’ event is triggered in the middle of the ‘keydown’ event despite the field not being blurred.

###Repro Steps

Please see the following fiddle http://jsfiddle.net/5cc3jxn3/ and/or code.

JS:

(function() {
  var input = document.getElementById("editor1");
  var result = document.getElementById("results");

  input.addEventListener("blur", function(evt) {
    result.innerHTML += "blur|";
  }, true);
  input.addEventListener("keydown", function(evt) {
    if(evt.which == 13) {
      result.innerHTML += "evt start|";
      window.open('https://google.com');
      result.innerHTML += "evt done|";
    }
  }, true);
  input.addEventListener("dblclick", function(evt) {
    result.innerHTML += "evt start|";
    window.open('https://google.com');
    result.innerHTML += "evt done|";
  }, true);
})()

HTML

<div id="wrapper">
  <label for="editor1">Label for editor1</label>
  <input type="text" id="editor1" name="editor1" />
</div>
<p style="padding: 10px; border: 1px solid red;" id="results"></p>

If you focus the input and double click the input a new window/tab will open and the events will fire in the expected order once you focus the window/tab again.

If you focus the input and press enter a new window/tab will open and the events fire in an unexpected order

Please see other feedbacks in userfeedback VSO for feedbacks that are tracked by this work item.

h3 {
color:#2f5496;
font-family:Segoe UI;
font-size:small;
padding-left:3%;
}

table {
font-size:small;
width:95%;
}

th, td {
font-size:small;
padding:5px;
}

td {
border:0.5px solid white;
}

th {
background-color:#8B8989;
color:white;
}

.feedback-leftcell {
width:20%;
color:#004d8b;
}

.feedback-row:hover {
background-color:#C4C4C4;
}

#feedback-banner, #feedback-footer {
background-color:#0078D7;
color:white;
width:100%;
}

#feedback-banner td, #feedback-footer td {
border:0;
font-size:larger;
padding:10px;
}

#feedbacksection-v5 {
font-family:Segoe UI;
border:5px solid #0078D7;
border-collapse:collapse;
}

#feedbackdetails-table, #feedbackanalysis-table, #feedbacklinks-table {
font-family:Calibri Light;
background-color:#f5f5f5;
}

            
        

        This Bug was created from feedback triage by Geoffrey Trousdale

    



Report Details



    
        Feedback Details

        Description

    

    
        Title

        Can't add more than one person to a Facebook conversation


    

    
        Description

        When typing in names to add to a Facebook conversation, Facebook gives you a dropdown to select which friend you want to include.  In Edge, this only works for the first name you type, and not subsequent names.  This works in Chrome.


    

    
        Area Path

        UIF\Microsoft Edge\Website issues

    

    
        [Feedback Hub](https://aka.ms/feedbackhuburi/?ContextId=356&amp;feedbackId=91c9a30c-5e27-4188-a142-806390140064&amp;form=1&amp;src=1)

        View this Customer Feedback details and comments in the Feedback Hub app.

    

    
        [Feedback VSO](../6936860/)

        View this Customer Feedback in Feedback VSO.

    

    
        [Upvoted By](https://aka.ms/feedbackinternalupvoters?vsoId=6936860)

        Contact selfhosters that upvoted this issue.

    

    
            Metadata

            {"Metadata":[{"url":"https://www.facebook.com/"},{"ua":""},{"browserType":"Microsoft Edge"}]}


          



Analysis and Diagnostics


    
        Tool

        Description

    

    
        [Feedback Cabs](http://aka.ms/FeedbackViewer/?txtUifId=91c9a30c-5e27-4188-a142-806390140064&amp;section=Cabs)

        
            
                Looking For CAB files related to feedback?

All CABs for
this feedback can be accessed in the Feedback Viewer.

                Note:

CABs may take up to 12 hours
to process through the
telemetry pipeline. CABs age out and are removed after 60 days
due
to Watson retention policies.

        [Feedback Analysis](http://aka.ms/FeedbackViewer/?txtUifId=91c9a30c-5e27-4188-a142-806390140064)

        
            
                Want to understand how this feedback is trending across various pivots?

                With the Feedback Viewer, you can view trending information for this feedback,
                including upvotes by build, region, time, device, and more. Try out the prototype
                version of our [WAAS Lightspeed](https://aka.ms/waaslightspeed/?txtUifId=91c9a30c-5e27-4188-a142-806390140064)

that includes intelligent auto analyzed
insights, dimensional, detailed diagnostic and telemetry analysis

        [Related Watson Crashes](http://watson/User?Identifier=g:6896133790744144&amp;Expand=true&amp;StartDate=23-Mar-2018&amp;EndDate=23-Mar-2018&amp;DateTimeFormat=UTC&amp;EventCategory=All)

        
            
                
                    Want to view Watson crashes that occurred on the same day from the user who
                    filed feedback?

The Watson Viewer will let you dive into crash data.

        [Device Drill](http://devicedrill/EventBrowser?dataSet=ALL&amp;deviceId=g:6896133790744144&amp;focusTimeStamp=2018-03-23T21:44:07&amp;durationAfterMin=10)

        
            
                Want to view telemetry events from this customer's device?

Device Drill lets
you dive into the telemetry of the device this from which this feedback was filed.

Other Links


    
        Link

        Description

    

    
        [Feedback FAQ](http://aka.ms/FeedbackFaq)

        
            
                See the Feedback FAQ for more information about subjective user feedback.
            

        

    

    
        [Where's my CAB? Wiki](http://aka.ms/whereismycabwiki)

        
            
                If you were expecting a CAB but it does not appear in the viewer, please
                see the wiki for more information.
            

        

    

    
        [Translation Volunteers](https://aka.ms/feedbacktranslationvolunteers)

        
            
                For translation assistance, please see the translation volunteers wiki.
            

        

    

    
        [Reporting child pornography](http://aka.ms/FeedbackReportAbuseAndChildPornographyWiki)

        
            
                If attached screenshot(s) is child pornography you must report it using
                instructions listed at the link.
            

        

    






    
        
            Be Heard.
        

        
            [
                //aka.ms/feedback
            ](https://aka.ms/feedback)

Attachments

0 attachments

    Comments and activity

    • I have found this to be an issue also using Edge.

    • Microsoft Edge Team

      Changed Assigned To to “James M.”

      Changed Assigned To to “Travis L.”

      Changed Assigned To from “Travis L.” to “Sanket J.”

      Changed Steps to Reproduce

      Changed Status to “Confirmed”

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

    Sign in