Redirecting to a Custom URI Scheme doesn't work

Not reproducible Issue #12268941

Details

Author
Guilherme K.
Created
Jun 7, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
40.15063
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

I have registered a custom URI scheme named myextname, according to this guide. What I want my extension to do is open this custom URI scheme. Here’s a sample code of what I intend to do:

bg.js:

browser.contextMenus.create({
    "id": "myextname",
    "title": "Open this page externally",
    "contexts": ["page"],
    "onclick": open_external_protocol
});

function open_external_protocol(info, tab)
{
    var tab_url;

    tab_url = info.pageUrl;

    browser.tabs.update(tab.id, { url: "myextname:" + tab_url })
}

Edge tries to load this page instead:

ms-browser-extension://myextname_932FDE28E206498EA3B1D39B6E856EF4

If I type this manually in the adress bar:

myextname:https://www.example.com/

Edge will successfully ask to open an external program.

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “James M.”

    • Hello,

      Thank you for providing this information about the issue. In order to repro the problem you are facing, please provide us with the full extension, either attach the package or attach the required files (manifest and script).

      Best Wishes,
      The MS Edge Team

    • Microsoft Edge Team

      Changed Status to “Confirmed”

      Changed Status from “Confirmed” to “Not reproducible”

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

    Sign in