On Mon, Oct 13, 2014 at 11:00 AM, Daniel Veditz <dved...@mozilla.com> wrote: > On 10/13/2014 9:15 AM, Jonas Sicking wrote: >> This will only be exposed to privileged and certified apps, right? >> Other content that does createElement("webview") will simply get a >> HTMLUnknownElement, right? > > What does an unprivileged app get if it tries to use <iframe > mozbrowser>? Probably not an HTMLUnknownElement. Why not treat it as a > synonym for an unprivleged iframe in that case?
Because that means that we're adding a new <webview> element to the wider web platform that we'd have to support for ever and ever. Also keep in mind that you aren't likely to get a "useful" fallback if you simply treat <webview> as an <iframe>. So we're not really doing anyone any favors anyway. By leaving the wider web platform unchanged, we'll have much more ability to modify this feature in the future in order to align with other implementations or a future standard. > (OK, so I sort of answered my own question: because then people might > accidentally start using it as a synonym for iframe in the unprivileged > case and that broken use might leak into the desktop context.) Exactly. / Jonas _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform