Calling browser.cookies.getAllCookieStores() throws an error

Not reproducible Issue #8093773


Olivier B.
Jul 6, 2016
This issue is public.
Found in
  • Microsoft Edge
Found in build #
Reported by 2 people

Sign in to watch or report this issue.

Steps to reproduce

Consistently, calling browser.cookies.getAllCookieStores(callback) from an extensions’ background page that has the cookie permissions enabled returns an error:

Unable to get property map of undefined of null reference

Additionally, while logged in on multiple websites, calling browser.cookies.getAll({}, callback) returns undefined, as if I didn’t have any cookies.


0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Ibrahim O.”

    • Could you please provide us your sample? This will help our investigation.

      All the best,
      The MS Edge Team

    • I cannot share the full code, but essentially here are the steps, you should be able to reproduce it with any unpacked extension:

      1. Open Edge
      2. Via the extensions menu, load an unpacked extension
      3. Open the extension’s background debugger
      4. In the console, paste this browser.cookies.getAllCookieStores(a => console.log(a))

      You should get this error:

      SCRIPT5007: Unable to get property 'map' of undefined or null reference
      Unknown script code (1) (1,28856)
    • Thank you for the update. I see the issue. We will look into that keep you posted.

      Best regards,
      The MS Edge Team

    • Microsoft Edge Team

      Changed Assigned To to “Sermet I.”

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

      Changed Status to “Confirmed”

      Changed Status from “Confirmed” to “Not reproducible”

    • Hi Olivier,

      I’m not able to reproduce either of the described issues on the latest Windows Insider Preview build, nor the latest Anniversary Release build (14393.480). I see that this was found on 14352, which I believe was a build from May. Are you still seeing this on later builds?

      It’s worth noting that we had an issue where cookies.getAll() would return undefined if a tab that was open before the extension making the API call was installed was still present in the user’s tab bar. This has been addressed and the fix should be available in both the latest WIP build as well as the latest Anniversary Update.

      Please let me know if you’re still running into issues after upgrading to the latest builds and we can reopen this issue and investigate further.

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

    Sign in