MicrosoftEdge / MicrosoftEdge/WebView2Feedback
localStorage JavaScript API missing
Open
@champnic is already working on this.
Since Mar 23, 2022.
bug
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
Description
The localStorage JavaScript API seems to be completely missing. Using either DevTools console or CoreWebView2.ExecuteScriptAsync always results in the error saying localStorage is undefined.
Version
SDK: 1.0.1150.38
Runtime: Stable 99.0.1150.39
Framework: WPF
OS: Windows 11 Insider Build 22572
Repro Steps
- Open DevTools, go to Console tab, and try to execute
localStorage.
Expected result: DevTools shows the JSON implementation oflocalStorage.
Actual result: DevTools throwsUncaught ReferenceError: localStorage is not defined. - Execute
CoreWebView2.ExecuteScriptAsync("javaScript:localStorage");
Expected result: The function returns the JSON implementation oflocalStorage.
Actual result: The function returns null.
Screenshots
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.