Bug 248154
| Summary: | browser.runtime.getManifest() returns 1/0 instead true/false for background.persistent | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Timothy Hatcher <timothy> |
| Component: | WebKit Extensions | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | achristensen, timothy, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Local Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Timothy Hatcher
Input:
{ manifest_version: 3, background: { persistent: false, scripts: ['background.js'] } }
Output:
{ manifest_version: 3, background: { persistent: 0, scripts: ['background.js'] } }
The boolean should not be converted to a number. I suspected this is a bug in NSJSONSerialization or JSValue type ObjC conversion.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Timothy Hatcher
See: https://github.com/w3c/webextensions/issues/281
Radar WebKit Bug Importer
<rdar://problem/102694631>
Alex Christensen
Fixing in https://github.com/WebKit/WebKit/pull/15385
Alex Christensen
*** This bug has been marked as a duplicate of bug 258647 ***