Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

Search a content from frames successfully loaded #1264

Merged
merged 5 commits into from
Sep 26, 2021

Conversation

ueokande
Copy link
Owner

Fix #1243.

The previous cross-search tries to all iframe on the page. This can cause an issue "Could not establish connection. Receiving end does not exist." When the browser blocks iframe x-frame options or a content security policy, the background fails to send a message to the frame. This change makes the cross-frame search from frames only successfully loaded.

When a tab switches pages quickly, a disconnect event on top frame is
sometime delivered after second connect event. In addition,
`tabs.onUpdated()` event is independent on port connection event.

Now the background script finds alive frames by only port connection.
@ueokande ueokande force-pushed the fix-establish-connection-issue branch from d9c9a10 to a0f2c3e Compare September 25, 2021 09:58
@ueokande ueokande marked this pull request as ready for review September 26, 2021 02:53
@ueokande ueokande merged commit 9154972 into master Sep 26, 2021
@ueokande ueokande deleted the fix-establish-connection-issue branch September 26, 2021 02:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Could not establish connection. Receiving end does not exist." when doing a search
1 participant