executeScript does not correctly return results in its callback

Confirmed Issue #8504764 • Assigned to Scott S.

Details

Created
Aug 16, 2016
Privacy
This issue is public.
Reports
Reported by 2 people

Sign in to watch or report this issue.

Steps to reproduce

Background script:

browser.browserAction.onClicked.addListener(function() {
    browser.tabs.query({ active: true, lastFocusedWindow: true }, function(tabs) {
        var tab = tabs[0];
        browser.tabs.executeScript(tab.id, {code: "var x = 10; x"}, function(result) {
            alert(result);
        });
    });
});

This results in an empty alert in Edge, but does not in Chrome

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Sermet I.”

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

      Changed Status to “Confirmed”

    • Hi,

      is there any plan, when this problem will be fixed?

      Thanks.

      Svatopluk Ordelt

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

    Sign in