| 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 |
| + // onCommitted event has fired, so we update the frame structure for those |
| + // now. |
| + if (/^(about|data):/.test(details.url)) |
|
Sebastian Noack
2018/09/17 16:02:31
Nit: I'm not sure if a regular expression is justi
Manish Jethani
2018/09/21 20:32:24
Changed to String.startsWith.
I have a hunch that
|
| { |
| updatePageFrameStructure(details.frameId, details.tabId, details.url, |
| details.parentFrameId); |
| } |
| }); |
| browser.webNavigation.onCommitted.addListener(details => |
| { |