Question before I go down this Troubleshooting rabbit hole

Well you are creating an iFrame to load pregenerated HTML inside your extension.

So since it’s all static, you can use CSS visiblity switches to “navigate” instead.