Trying to store undefined throws an error in Edge extensions

Issue #12297858 • Assigned to Akshay P.

Details

Author
Ben M.
Created
Jun 9, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
15.15063
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

Running

chrome.storage.local.set({ k: undefined })

in the extension context causes

Unable to get property 'length' of undefined or null reference

Non-repro in Chrome/Firefox, both browsers gracefully fail.

UPDATED REPRO STEPS
In Edge use… browser.storage.local.set({ k: undefined });

Attachments

Comments and activity

  • Microsoft Edge Team

    Changed Assigned To to “James M.”

    Changed Steps to Reproduce

  • Hello,

    Thank you for providing this information about the issue. We find your sample exhibits the same behavior in other browsers (see attached screenshot). Please update this case when you can provide your sample extension and steps for how to compare the errors among all 3 browsers.

    Best Wishes,
    The MS Edge Team

  • Hi James,

    Please see attached screenshot repro.png. The code needs to be ran on the console that is in the extension context as it being a webextension API.

    MS Edge throws an error which causes code execution to stop, whereas Chrome gracefully fails.

  • I’ve attached two repro extensions. Browse to reddit.com with them loaded. An alert will appear on error.

  • Microsoft Edge Team

    Changed Assigned To to “Akshay P.”

    Changed Title from “Trying to store undefined throws an error in Edge extensions” to “Trying to store undefined throws an error in Edge extensions”

    Changed Assigned To to “Akshay P.”

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

Sign in