Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved C2P Script Injection #528

Merged
merged 11 commits into from Apr 28, 2020
Merged

Improved C2P Script Injection #528

merged 11 commits into from Apr 28, 2020

Conversation

christophertino
Copy link
Contributor

@christophertino christophertino commented Apr 21, 2020

Fixes an issue where the click_to_play.js content script can be injected N times per page, where N equals the number of matched C2P elements. This PR tracks C2P load status per tab and queues C2P messages until the content script has loaded.

@christophertino christophertino added this to the 8.5.0 milestone Apr 21, 2020
@christophertino christophertino requested a review from a team April 21, 2020 22:05
@christophertino christophertino changed the base branch from master to develop April 21, 2020 22:05
@christophertino christophertino merged commit 1f1c85e into develop Apr 28, 2020
@christophertino christophertino deleted the GH-2017 branch April 28, 2020 14:44
chrmod pushed a commit that referenced this pull request Jul 28, 2022
* better handling of C2P script injection by tab

* fixing bugs in c2p social icons. Pass entire queue to content script after injection

* set c2p queue as hashmap to prevent duplicates

* remove early return when iterating through social icons

* add unit testing for src/utils/click2play

* add c2p data to queue when inject status is 'none'. Proper use of setTabInfo. Updated unit tests

* more code coverage

* add unit tests for buildRedirectC2P()

* add units tests for allowAllwaysC2P
chrmod pushed a commit that referenced this pull request Jul 29, 2022
* better handling of C2P script injection by tab

* fixing bugs in c2p social icons. Pass entire queue to content script after injection

* set c2p queue as hashmap to prevent duplicates

* remove early return when iterating through social icons

* add unit testing for src/utils/click2play

* add c2p data to queue when inject status is 'none'. Proper use of setTabInfo. Updated unit tests

* more code coverage

* add unit tests for buildRedirectC2P()

* add units tests for allowAllwaysC2P
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants