Add a way to inject CodeMirror plugins inside the DevTools Editor component
Categories
(WebExtensions :: Developer Tools, enhancement, P5)
Tracking
(Not tracked)
People
(Reporter: ntim, Unassigned)
References
Details
(Whiteboard: [design-decision-needed] [needs-follow-up])
Comment 1•10 years ago
|
||
Updated•9 years ago
|
Comment 2•7 years ago
|
||
Reporter | ||
Updated•7 years ago
|
Reporter | ||
Updated•7 years ago
|
Comment 3•7 years ago
|
||
Updated•7 years ago
|
Reporter | ||
Comment 4•7 years ago
|
||
Comment 5•7 years ago
|
||
Updated•7 years ago
|
Reporter | ||
Comment 6•7 years ago
|
||
Updated•7 years ago
|
Updated•7 years ago
|
Updated•7 years ago
|
Comment 7•5 years ago
|
||
Besides the sandbox issue (described by ntim in Comment 6), some another "design issues" that we may need to be discussed/solved could be:
- how to make the user aware which extensions are "augmenting" a given DevTools code editor
- how to deal with multiple extensions that all wants to "augment" the same DevTools code editor (and how to deal with potential conflicts)
An even more important "design issue" that we may have to consider is that the API as currently described seems to be too specific to the current implementation ("Firefox DevTools editors all based on codemirror"), and such an API would break if we decide to migrate the Firefox DevTools editors to a different implementation (e.g. let's say as an example that at some point we are evaluating to migrate from codemirror to another code editor library like monaco).
In general, exposing a specific implementation detail would prevent changes to the internal implementation without also introducing breaking changes for the existing extensions, which goes against the design principles of the WebExtensions APIs (and the very reason that pushed Firefox to introduce this new extension framework and deprecate the previous ones, mentioned in the goals listed at https://wiki.mozilla.org/WebExtensions : Changes to Firefox's internal code should be less likely to break add-ons
).
Updated•2 years ago
|
Description
•