| Index: ext/background.js |
| =================================================================== |
| --- a/ext/background.js |
| +++ b/ext/background.js |
| @@ -246,20 +246,20 @@ |
| updatePageFrameStructure(details.frameId, details.tabId, details.url, |
| details.parentFrameId); |
| }, |
| {types: ["main_frame", "sub_frame"], urls: ["http://*/*", "https://*/*"]}, |
| ["responseHeaders"]); |
| browser.webNavigation.onBeforeNavigate.addListener(details => |
| { |
| - // Requests can be made by about:blank frames before the frame's |
| - // onCommitted event has fired, so we update the frame structure |
| - // for those now. |
| - if (details.url.startsWith("about:")) |
| + // Requests can be made by about: and data: frames before the frame's |
|
Manish Jethani
2018/09/22 15:56:51
Oh, I think I should update this comment. The real
Manish Jethani
2018/09/25 16:07:19
Done.
|
| + // onCommitted event has fired, so we update the frame structure for those |
| + // now. |
| + if (details.url.startsWith("about:") || details.url.startsWith("data:")) |
| { |
| updatePageFrameStructure(details.frameId, details.tabId, details.url, |
| details.parentFrameId); |
| } |
| }); |
| browser.webNavigation.onCommitted.addListener(details => |
| { |