mozilla / positron

a experimental, Electron-compatible runtime on top of Gecko
Other
562 stars 64 forks source link

implement equivalent of WebDocument::registerEmbedderCustomElement in Gecko #58

Open mykmelez opened 8 years ago

mykmelez commented 8 years ago

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 commented 8 years ago

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

brendandahl commented 8 years ago

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

brendandahl commented 8 years ago

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

brendandahl commented 8 years ago

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