browser.windows.getAll() throws exception when getInfo param is undefined

Confirmed Issue #11176979 • Assigned to Akshay P.

Details

Author
Adolf D.
Created
Mar 6, 2017
Privacy
This issue is public.
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

The browser.windows.getAll() (https://developer.chrome.com/extensions/windows#method-getAll - chrome.windows.getAll(object getInfo, function callback) API was in Chrome and Firefox browsers when we call as below.
browser.windows.getAll(undefined, function(windows) {});

When we tried it in the 15046 insider build it is not working. We are needed to pass an empty object if we don’t want to pass any value for getInfo.
browser.windows.getAll({}, function(windows) {}
Is this change expected? The document calls out that this is an optional parameter and so it should accept and undefined/null value as parameter.

NOTE: chrome.windows.getAll(undefined, function(windows) {});

Attachments

Comments and activity

  • Changed Steps to Reproduce

    Changed Steps to Reproduce

    Changed Steps to Reproduce

  • Microsoft Edge Team

    Changed Assigned To to “James M.”

    Changed Status to “By design”

  • Hello,

    Thank you for providing this information about the issue. This appears to be the normal result for getInfo() and getAll() when the value is undefined. Please reopen this case if you have new information for us to consider, such as a code sample which gives different results in the tested browsers.

    Best Wishes,
    The MS Edge Team

  • Microsoft Edge Team

    Changed Assigned To to “James M.”

    Changed Status from “By design”

  • It looks like browser.windows.getAll(function(windows){}); is supported, but browser.windows.getAll(null, function(windows){}); is not. This is a minor interop issue that we should track.

  • Microsoft Edge Team

    Changed Assigned To from “James M.” to “Sebastian P.”

    Changed Status to “Confirmed”

    Changed Assigned To from “Sebastian P.” to “Akshay P.”

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

Sign in