Tab info received by tabs.get with onCommitted event handler is not up to date

Confirmed Issue #12591965 • Assigned to Steven K.

Details

Author
Jason B.
Created
Jul 1, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
15.15063
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

With this code in a background page:

chrome.webNavigation.onCommitted.addListener(function (details) {
  console.log("onCommitted - " + details.url);
  chrome.tabs.get(details.tabId, function(d) { console.log("tabs.get - " + details.url) });
});

If you watch the console while browsing around, you will see the onCommitted message have the correct URL for the new site you are visiting, while the tabs.get line will have the URL of the site you were on previously.

In Chrome 59, the two lines always return the same URL - that of the new page you are visiting.

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Steven K.”

      Changed Status to “Confirmed”

    • Hi Jason,

      Are you running this extension in the Edge browser?  You will need to convert chrome extensions to Edge extensions before using them in Edge.  Here is a link to details about performing this migration and a tool to help to do the conversion.

      https://docs.microsoft.com/en-us/microsoft-edge/extensions/guides/porting-chrome-extensions

      Let me know if I misunderstood this bug report,

      Steve

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

    Sign in