Schemas.jsm mangles helper functions in error function
Categories
(WebExtensions :: General, defect, P2)
Tracking
(Not tracked)
People
(Reporter: tcampbell, Assigned: zombie)
References
Details
This passes a function to the choicesMessage argument of error which is marked as receiving string|function but error never calls forceString. This results in the arrow function being stringified here which is nonsense.
The reason I noticed is this triggers (in my local debug build) an extra IPC transaction during startup to fetch the source code of Schemas.jsm in order to do this.
I'm also not quite clear why I have these schema errors during startup? I'm not sure if this will help Bug 1620447 by removing this synchronous load of source code.
| Assignee | ||
Comment 1•5 years ago
|
||
Oops, thanks Ted.
I'm also not quite clear why I have these schema errors during startup? I'm not sure if this will help Bug 1620447 by removing this synchronous load of source code.
Depending on which process this is happening in, it probably comes from starting up (system?) extensions. The android one is specifically about content scripts which they have running in each page for the browser to function.
| Reporter | ||
Comment 2•5 years ago
|
||
I added a printf (of filename) to XPCJSSourceHook to verify this. Still occurs on m-c.
Description
•