WebExtensions: EphyWebView needs to be unified with extension views
This is just to track a TODO item. The whole split of the WebKitExtensions into "regular" and extension views needs to be undone.
How it should behave is that on window-object-cleared
we detect if the URI is ephy-webextension://
or not and base the installed APIs on that. Epiphany will also change its behavior based on the current site being an extension or not.
There are probably some complications that will be hit by this. For one EphyWebView in a few places assumes that it is located inside of the normal Epiphany structure (inside an EphyTabView and EphyEmbed) which won't be true for some extension views.
There may be other security considerations but I don't think they will be a big problem. In general WebKit already properly does isolation by host and the only risks are the APIs we expose.