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

Inabox host script - Cannot read property \'top\' of undefined #17749

Merged

Conversation

keithwrightbos
Copy link
Contributor

Inabox host script throwing "Uncaught TypeError: Cannot read property 'top' of undefined" likely due to event source being undefined due to underlying frame being destroyed between when message was sent and when it was processed. Ensure that underlying code tolerates undefined/null window and that any postmessage processing is wrapped in try/catch (previously only queued events were wrapped).

@keithwrightbos keithwrightbos merged commit 46204ad into ampproject:master Aug 28, 2018
@keithwrightbos keithwrightbos deleted the inabox_process_message_err branch August 28, 2018 15:05
torch2424 pushed a commit to torch2424/amphtml that referenced this pull request Aug 29, 2018
Enriqe pushed a commit to Enriqe/amphtml that referenced this pull request Nov 28, 2018
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