@brendandahl This branch enables mozbrowser for specific origins instead of giving the system principal to all top-level docshell loads, per comments from @bz and @jryans in bug 1290272.
In theory, it should enable us to expose mozbrowser to BrowserWindow instances without giving them the system principal. But in practice, some of the code we load in BrowserWindow instances needs that principal in order to access Components, so we'd need to disentangle that code from the code that doesn't. So this isn't ready to land yet.
@brendandahl This branch enables mozbrowser for specific origins instead of giving the system principal to all top-level docshell loads, per comments from @bz and @jryans in bug 1290272.
In theory, it should enable us to expose mozbrowser to BrowserWindow instances without giving them the system principal. But in practice, some of the code we load in BrowserWindow instances needs that principal in order to access Components, so we'd need to disentangle that code from the code that doesn't. So this isn't ready to land yet.