webNavigation.onBeforeNavigate does not fire after tabs.create()

Not reproducible Issue #8234458

Details

Author
Alexander B.
Created
Jul 21, 2016
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
14
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

  1. Open “Developer Tools” of any extension that has the permission ‘webNavigation’
  2. Add a handler:
browser.webNavigation.onBeforeNavigate.addListener(function(a) {
    console.log('onBeforeNavigate', a.url);
});
  1. Run the code (open URL in new tab):
browser.tabs.create({url: 'https://www.msn.com', active: true});

I expect in the console:

> onBeforeNavigate  https://www.msn.com/

But nothing happens

  1. Run the code (open URL in the current tab):
browser.tabs.query({
    active: true,currentWindow: true
}, function(event) {
    browser.tabs.update(event[0].id, { url: 'https://www.msn.com' });
});

I see in the console:

> onBeforeNavigate  https://www.msn.com/
  1. Refresh the current page (F5):
    I see in the console:
> onBeforeNavigate  https://www.msn.com/

Attachments

1 attachment

Comments and activity

  • Microsoft Edge Team

    Changed Assigned To to “Brad E.”

  • Hello,

    Thanks for the feedback on Edge. When I test this out on internal builds I do see onBeforeNavigate messages inside the console as expected.  

    Please review the screenshot showing the output from our internal build when following your repro steps.

    All the best,
    The MS Edge Team

  • Microsoft Edge Team

    Changed Status to “Not reproducible”

  • This item of feedback is now closed due to inactivity. Please feel free to reactivate at your earliest convenience. 

    All the best,
    The MS Edge Team

  • This item of feedback is now closed due to inactivity. Please feel free to reactivate at your earliest convenience. 

    All the best,
    The MS Edge Team

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

Sign in