Thanks! -> a closer OWNER (who can add a second reviewer as needed)
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
// OnPasswordFormsRendered; otherwise the save prompt may not appear.How does this call guarantee that? IIUC, at this point, both IPCs are already racing?
// See OfferToSaveNonPrimaryAccountCredential for why this is needed.nit: I'd rather copy the original two-line comment here. As it is, it's likely that the other test will get modified at some point, and then this would become a dangling reference.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
// OnPasswordFormsRendered; otherwise the save prompt may not appear.How does this call guarantee that? IIUC, at this point, both IPCs are already racing?
You're right that both IPCs are already in flight by this point, and RunAllTasksUntilIdle can't retroactively fix the ordering between PasswordFormSubmitted (Mojo) and DidNavigateMainFrame (WebContentsObserver) — that race already played out during observer.Wait() inside FillAndSubmitPasswordForm. Let me rethink the approach. Would it make sense to move the flush inside FillAndSubmitPasswordForm (before DidFinishLoad triggers), or is there a better synchronization point you'd suggest?
// See OfferToSaveNonPrimaryAccountCredential for why this is needed.nit: I'd rather copy the original two-line comment here. As it is, it's likely that the other test will get modified at some point, and then this would become a dangling reference.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |