positron icon indicating copy to clipboard operation
positron copied to clipboard

implement equivalent of WebDocument::registerEmbedderCustomElement in Gecko

Open mykmelez opened this issue 9 years ago • 4 comments

Per the WebIDL spec, document.registerElement requires custom element names to contain a dash. But the Electron <webview> element doesn't contain one, because Electron uses the Blink API WebDocument::registerEmbedderCustomElement to register it. We should implement a similar API for Gecko, so Positron can register <webview> and other elements that don't have dashes in them.

mykmelez avatar May 26 '16 06:05 mykmelez

@brendandahl If you have cycles, this would be useful to tackle.

mykmelez avatar May 26 '16 06:05 mykmelez

Yeah, I'll take a look in a bit. Fixing a bug on spidernode atm.

brendandahl avatar May 26 '16 17:05 brendandahl

Hacky way to do this: https://github.com/brendandahl/positron/commit/78db7db098571898bc4d5fbc06420e3e577b72d7

brendandahl avatar May 27 '16 01:05 brendandahl

Gecko bug https://bugzilla.mozilla.org/show_bug.cgi?id=1276363

brendandahl avatar May 27 '16 21:05 brendandahl