Skip to content

Conversation

dconeybe
Copy link
Contributor

The method [FTAViewController viewDidLoad] was incorrectly calling [UIApplication openURL] on a non-main thread. This resulted in the "main thread checker" in xcode always flagging this as an issue. It's also technically undefined behavior.

This PR fixes the bug by scheduling the [UIApplication openURL] to run on the main thread instead of calling it directly in a worker thread.

@dconeybe dconeybe self-assigned this Jun 11, 2021
@google-cla google-cla bot added the cla: yes label Jun 11, 2021
@dconeybe dconeybe added the tests-requested: quick Trigger a quick set of integration tests. label Jun 11, 2021
@github-actions github-actions bot added tests: in-progress This PR's integration tests are in progress. and removed tests-requested: quick Trigger a quick set of integration tests. labels Jun 11, 2021
@github-actions
Copy link

github-actions bot commented Jun 11, 2021

✅  Integration test succeeded!

Requested by @dconeybe on commit e073a19
Last updated: Fri Jun 11 08:42:28 PDT 2021
View integration test results

@github-actions github-actions bot added the tests: succeeded This PR's integration tests succeeded. label Jun 11, 2021
@firebase-workflow-trigger firebase-workflow-trigger bot removed the tests: in-progress This PR's integration tests are in progress. label Jun 11, 2021
@dconeybe dconeybe requested a review from jonsimantov June 11, 2021 15:51
@dconeybe dconeybe assigned jonsimantov and unassigned dconeybe Jun 11, 2021
@dconeybe dconeybe enabled auto-merge (squash) June 11, 2021 15:51
@dconeybe dconeybe merged commit 1844c70 into main Jun 15, 2021
@dconeybe dconeybe deleted the dconeybe/FTAViewControllerMainThreadFix branch June 15, 2021 18:04
@firebase firebase locked and limited conversation to collaborators Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes tests: succeeded This PR's integration tests succeeded.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants