Skip to content

Conversation

@karlenDimla
Copy link
Contributor

@karlenDimla karlenDimla commented Aug 3, 2022

Task/Issue URL: https://app.asana.com/0/488551667048375/1202712032214375/f

Description

Another attempt to fix the crashes / anrs related to ServiceWorkerClient. Instead of setting the ServiceWorkerClient on application onStart() which might be too early in the process, we are delaying it to BrowserActivity's onCreate just before any webview is rendered.

Steps to test this PR

  • Smoke test app
  • Load website with videos
  • Go to http://privacy-test-pages.glitch.me/privacy-protections/request-blocking/ and make sure the service worker request is blocked (colour is not green)

@joshliebe joshliebe self-assigned this Aug 3, 2022
Copy link
Contributor

@joshliebe joshliebe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@karlenDimla karlenDimla merged commit e3a9132 into develop Aug 4, 2022
@karlenDimla karlenDimla deleted the fix/karl/move_serviceworker_to_browseractivity branch August 4, 2022 14:48
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.

2 participants