| Index: ext/background.js |
| =================================================================== |
| --- a/ext/background.js |
| +++ b/ext/background.js |
| @@ -163,16 +163,18 @@ |
| let frames = framesOfTabs.get(tabId); |
| let parentFrame = frames.get(parentFrameId); |
| if (!parentFrame && parentFrameId > 0) |
| parentFrame = frames.get(0); |
| if (parentFrame) |
| frame.parent = parentFrame; |
| + |
| + frame.injectedStyleSheets = null; |
| } |
| browser.webRequest.onHeadersReceived.addListener(details => |
| { |
| // We have to update the frame structure when switching to a new |
| // document, so that we process any further requests made by that |
| // document in the right context. Unfortunately, we cannot rely |
| // on webNavigation.onCommitted since it isn't guaranteed to fire |