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

fix: ignore spurious bindingCalled events #6538

Merged
merged 1 commit into from Oct 23, 2020
Merged

Conversation

johanbay
Copy link
Collaborator

No description provided.

payload = JSON.parse(event.payload);
} catch {
// The binding was either called by something in the page or it was
// called before our wrapper was initialized
Copy link
Collaborator

Choose a reason for hiding this comment

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

just for my understanding: what might cause this? Just some code running before we set up our binding ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Exactly. I can't make out how it happens, but very rarely we'll call the ariaQueryHandler binding before the pageBinding wrapper is set up.

src/common/DOMWorld.ts Outdated Show resolved Hide resolved
src/common/Page.ts Outdated Show resolved Hide resolved
@google-cla
Copy link

google-cla bot commented Oct 22, 2020

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@google-cla google-cla bot added cla: no and removed cla: yes labels Oct 22, 2020
@google-cla google-cla bot added cla: yes and removed cla: no labels Oct 22, 2020
@johanbay johanbay merged commit 5e5fed1 into main Oct 23, 2020
@mathiasbynens mathiasbynens deleted the fix-onBindingCalled-flake branch October 29, 2020 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants