browser.tabs.executeScript for Windows Protocol Program launch works only once until tab reloaded

Confirmed Issue #18351410 • Assigned to Vivek K.

Details

Author
Oleh S.
Created
Jul 21, 2018
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

browser.tabs.executeScript for Windows Protocol Program launching (protolcs steam://, skype://, mailto:// and so on) works only once until tab reloaded

When execute next code from background.js it works only once, if I try again nothing happens, after reloading a tab (where we’re trying to execute it) it works again, but only once

browser.tabs.query( {currentWindow: true, active : true}, function(tabs) {
browser.tabs.executeScript(tabs[0].id, {code: "var url = " + JSON.stringify(“steam://run/271590”) + "; window.open(url, ‘_self’);"});
});

Same code works ok for Firefox and Chrome (only Microsoft Edge has a problem when it’s executed only once)

chrome.tabs.query( {currentWindow: true, active : true}, function(tabs) {
browser.tabs.executeScript(tabs[0].id, {code: "var url = " + JSON.stringify(“steam://run/271590”) + "; window.open(url, ‘_self’);"});
});

Attachments

0 attachments

    Comments and activity

    • p.s. download Steam to test the issue: https://store.steampowered.com/
      or replace “steam” protocol in sample code with some different protocol (skype or mailto) to test with another Windows program

    • Microsoft Edge Team

      Changed Assigned To to “Vivek K.”

      Changed Status to “Confirmed”

    • Can you please share the build details on which you are observing this issue?

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

    Sign in