I'm trying to write a Chrome Extension to support more powerful tabs (color-coded, split view, floating, background, etc.), but Chrome Extensions don't support the majority of those features, so I was attempting to create a prototype that utilizes IFrames instead, but there are so many safeguards on IFrames these days it's incredibly problematic.
Is there any way to force an iframe to load a page and be treated just as if it were a window? I've already addressed the X-Frame-Options
issue, but doing something like loading Gmail from the iframe causes all sorts of JS errors because it's referencing the top window.
If there were some way of embedding a window to be used similarly to an iframe, that would also suffice, but I don't see any way to accomplish that.
I've even tried injecting a script:
window.parent = window;
window.top = window;
But that doesn't seem to resolve the issues either.