Return value is not passed to callback of executeScript

Duplicate Issue #11440824 • See Issue #8504764

Details

Author
One L.
Created
Mar 29, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Duplicates
See progress on Bug #8504764
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

sample background script code:

var testCode = 'console.log("code executed"); "result from content";';

browser.tabs.executeScript({
    code: testCode
}, function(result) {
    console.log('executeScript result: ' + JSON.stringify(result));
});

logged information in the background script console:
executeScript result: [null]

The script is correctly executed in the content page, but the return value is not passed to the callback.

Attachments

0 attachments

    Comments and activity

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

    Sign in