Closed josteph closed 2 years ago
For now I can trigger reload the page for workaround:
await Promise.all([
page.waitForURL(url, {
waitUntil: 'networkidle'
}),
// Trigger reload as workaround
page.reload({
waitUntil: 'networkidle'
})
])
// `chrome.runtime` will be defined after reload
We are prioritizing the bugs based on the upvotes, recency and our ability to act. It looks like this issue only has a handful of upvotes, has not been touched recently and/or we lack sufficient feedback to act on it. We are closing issues like this one to keep our bug database maintainable. Please feel free to open a new issue and link this one to it if you think this is a mistake.
@pavelfeldman I'm still encountering the same issue, even using v1.45.3 and Chrome v127. Do you have any ideas why this might happen? Unfortunately, using Page.reload
is not a option in my case.
Closing an issue using vote numbers as excuse does not make the community any better, it's similar to rejecting public's opinion. Considering that the issue was closed without any effort to reproduce while the steps are clearly stated in the issue description.
Context:
Code Snippet
Describe the bug
It seems the
chrome.runtime
will not be present unless a new tab is opened manually.https://user-images.githubusercontent.com/13672022/163166378-f06833c0-98c7-4edc-ad31-8d9e7978db6d.mov
Also, if a new tab opened due to
page
event called bywindow.open('https://www.google.com', '_blank')
, thechrome.runtime
will also beundefined
too.