browser.webRequest.onBeforeRequest w/ blocking causes blocking indefinitely if host permissions are not specified

Confirmed Issue #9483012 • Assigned to Vasanth C.

Details

Author
Marcus P.
Created
Oct 23, 2016
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
14.14393
Reports
Reported by 2 people

Sign in to watch or report this issue.

Steps to reproduce

Adding a browser.webRequest.onBeforeRequest handler that blocks causes any requests to block indefinitely, and can cause previously opened tabs to close as they try to refresh/reload.

  1. Load the extension files attached
  2. Navigate to any website, including websites other than Facebook

Notice that the site will never load. For Facebook, the desired behavior is that it won’t navigate at all (not pretend to be navigating indefinitely). For any other website, the desired behavior is no observable difference between the extension being on or off.

Additionally:

  1. Enable reopen closed tabs on startup
  2. Open some tabs (to any sites)
  3. Close and Reopen Edge
  4. Enable extension
  5. Click on non-focused tabs

They will be closed as they try to reload. The desired effect here is to cancel the navigation and remain on the cached page (or a blank page).

Attachments

Comments and activity

  • Microsoft Edge Team

    Changed Assigned To to “Ibrahim O.”

    Changed Assigned To to “Sebastian P.”

    Changed Assigned To from “Sebastian P.” to “Sermet I.”

    Changed Assigned To from “Sermet I.” to “Scott L.”

    Changed Status to “Confirmed”

  • Thanks for filing this bug! It actually looks like there are two issues here. The first is the fact that navigating to a blocked resource will cause the tab to appear as if it is loading indefinitely rather than failing gracefully like Chrome does.

    The second is the fact that failing to specify host permissions in the extension manifest file will result in the behavior you’re noticing. If you include "://.facebook.com/*" in the permissions section of the manifest, you should see the indefinite hang/closing existing tab behavior disappear. I’m going to use this bug to track the latter issue, and I’ll create a new issue for the lack of error messaging. Thanks again!  

  • Microsoft Edge Team

    Changed Title from “browser.webRequest.onBeforeRequest w/ blocking causes blocking indefinitely” to “browser.webRequest.onBeforeRequest w/ blocking causes blocking indefinitely if host permissions are not specified”

    Changed Assigned To from “Scott L.” to “Liang Z.”

    Changed Assigned To from “Liang Z.” to “Vasanth C.”

    Changed Status from “Confirmed”

    Changed Status to “Confirmed”

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

Sign in