browser.webNavigation.onHistoryStateUpdated is fired for the frame
browser.webNavigation.onCommitted is fired for the frame:
Somehow previouslyLoaded is coming back as true: my debug logging might have messed this up. It's confusing that wasPreviouslyLoaded mutates the state
There's something fishy going on with the frameIds/variable namespace. Somehow https://www.linkedin.com first appears as being in a frame, and then the top-level inject fails due to wasPreviouslyLoaded coming back as true
The bug appears to be fixed if I pass tabId and frameId in the wasPreviouslyLoaded check
Step to Reproduce
https://www.linkedin.com/*
Discussion/Investigation
browser.webNavigation.onHistoryStateUpdated
is fired for the framebrowser.webNavigation.onCommitted
is fired for the frame:Somehow: my debug logging might have messed this up. It's confusing thatpreviouslyLoaded
is coming back as truewasPreviouslyLoaded
mutates the statehttps://www.linkedin.com
first appears as being in a frame, and then the top-level inject fails due towasPreviouslyLoaded
coming back as trueOther History
Related