onUpdated - duplicated complete event

Confirmed Issue #11373164 • Assigned to Venkat K.

Details

Author
One L.
Created
Mar 23, 2017
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

The ‘complete’ event is fired twice when page is redirecting.

Create an extension with background script:

browser.tabs.onUpdated.addListener(function(tabId, changeInfo, tabInfo) {
    console.log("Updated tab: " + tabId +
        "\nChanged attributes: " + JSON.stringify(changeInfo)+
        "\nNew tab Info: " + JSON.stringify(tabInfo));
});

    
browser.webNavigation.onBeforeNavigate.addListener(function(data) {
    console.log('TABs onBeforeNavigate: ' + JSON.stringify(data));
});

Open URL: https://cloud2.sumtotalsystems.com/meus

Background script console output (the duplicated event is marked with “*** duplicated event ***”):

TABs onBeforeNavigate: {"tabId":3,"url":"https://cloud2.sumtotalsystems.com/meus","frameId":0,"parentFrameId":-1,"timeStamp":1490216854802}
background.js (254,2)

TABs onBeforeNavigate: {"tabId":3,"url":"about:blank","frameId":14,"parentFrameId":0,"timeStamp":1490216855334}
background.js (254,2)

Updated tab: 3
Changed attributes: {"url":"https://cloud2.sumtotalsystems.com/meus","status":"loading"}
New tab Info: {"id":3,"index":1,"windowId":1,"active":true,"status":"loading","inPrivate":false,"pinned":false,"title":"403 - Forbidden: Access is denied.","url":"https://cloud2.sumtotalsystems.com/meus"}
background.js (248,2)

Updated tab: 3
Changed attributes: {"status":"complete"}
New tab Info: {"id":3,"index":1,"windowId":1,"active":true,"status":"complete","inPrivate":false,"pinned":false,"title":"cloud2.sumtotalsystems.com","url":"https://cloud2.sumtotalsystems.com/meus"}
background.js (248,2)

TABs onBeforeNavigate: {"tabId":3,"url":"http://talentcloud1.sumtotalsystems.com/scripts/lightyearisapi.dll?outputresource&resource=login/login.htm&clientnm=meus&clientcd=100217&sdatacookie=LightYearSession%3d560179e9%2d7b66%2d8d42%2d6ee7%2d005056bf6b98&clientcd=100217","frameId":0,"parentFrameId":-1,"timeStamp":1490216855407}
background.js (254,2)

*** duplicated event ***
Updated tab: 3
Changed attributes: {"status":"complete"}
New tab Info: {"id":3,"index":1,"windowId":1,"active":true,"status":"complete","inPrivate":false,"pinned":false,"title":"cloud2.sumtotalsystems.com","url":"https://cloud2.sumtotalsystems.com/meus"}
background.js (248,2)

Updated tab: 3
Changed attributes: {"url":"https://talentcloud1.sumtotalsystems.com/scripts/lightyearisapi.dll?outputresource&resource=login/login.htm&clientnm=meus&clientcd=100217&sdatacookie=LightYearSession%3d560179e9%2d7b66%2d8d42%2d6ee7%2d005056bf6b98&clientcd=100217","status":"loading"}
New tab Info: {"id":3,"index":1,"windowId":1,"active":true,"status":false,"inPrivate":false,"pinned":false,"title":"cloud2.sumtotalsystems.com","url":"https://talentcloud1.sumtotalsystems.com/scripts/lightyearisapi.dll?outputresource&resource=login/login.htm&clientnm=meus&clientcd=100217&sdatacookie=LightYearSession%3d560179e9%2d7b66%2d8d42%2d6ee7%2d005056bf6b98&clientcd=100217","favIconUrl":"https://talentcloud1.sumtotalsystems.com/ly/images/favicon.ico"}
background.js (248,2)

Updated tab: 3
Changed attributes: {"status":"complete"}
New tab Info: {"id":3,"index":1,"windowId":1,"active":true,"status":true,"inPrivate":false,"pinned":false,"title":"cloud2.sumtotalsystems.com","url":"https://talentcloud1.sumtotalsystems.com/scripts/lightyearisapi.dll?outputresource&resource=login/login.htm&clientnm=meus&clientcd=100217&sdatacookie=LightYearSession%3d560179e9%2d7b66%2d8d42%2d6ee7%2d005056bf6b98&clientcd=100217","favIconUrl":"https://talentcloud1.sumtotalsystems.com/ly/images/favicon.ico"}
background.js (248,2)

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Steven K.”

      Changed Status to “Confirmed”

      Changed Assigned To to “Venkat K.”

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

    Sign in