New issue
Advanced search Search tips

Issue 837270 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: May 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug-Regression



Sign in to add a comment

To many window.postMessage cause performance issue

Reported by steve.ne...@gmail.com, Apr 26 2018

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.117 Safari/537.36

Steps to reproduce the problem:
1. Go to any page
2. attach listener window.addEventListener('message', e=>console.log(e.data))
3. Do some mouse actions (click, scrolling, focus input)
4. Observe weird messages in console.
5. In my case (in production application) these message just blowing up my perfomance.

What is the expected behavior?
To don't have this message events or reduce their amount.

What went wrong?
A lot of message event just blowing up my page. It's hard to scroll.

Did this work before? Yes Chrome v64

Does this work in other browsers? Yes

Chrome version: 66.0.3359.117  Channel: stable
OS Version: 10.0
Flash Version: Shockwave Flash 29.0 r0

Please respond me with any ideas how to reduce perfomance load caused by Chrome's message events. Thank you.
 
Screenshot_2.png
2.8 KB View Download

Comment 1 by woxxom@gmail.com, Apr 26 2018

Doesn't happen on any of the pages I've tried.
There must be something in your app that triggers this behavior.
Provided it's a bug in Chrome, maybe you can find where it was introduced yourself:
https://www.chromium.org/developers/bisect-builds-py

Comment 2 Deleted

It's not only on the app button any page I visit. My app just uses message event with iframe and in that case, Chrome spawns a huge amount of those events.
To reproduce this issue you need Chrome higher than 65.0.3325.109
Labels: Needs-Bisect Needs-Triage-M66
Cc: vamshi.kommuri@chromium.org
Labels: Triaged-ET Needs-Feedback
Thanks for filing the issue!

Unable to reproduce the issue on reported chrome version 66.0.3359.117 using Mac 10.13.1 with the below mentioned steps.
1. Launched Chrome
2. Inspected a  web page -> console
3. Pasted window.addEventListener('message', e=>console.log(e.data)) in console
4. Clicked on web page, scrolled and focused input field.
We observed dropping events being shown in console but not any error messages. Attaching the screen cast of the same.

@Reporter: Could you please have a look at the screen cast and let us know if we have missed anything in the process. Any further inputs from your end may be helpful.
837270.webm
6.5 MB View Download
Here is how it in my application. In my code, I have a listener based on the logic of postMessage to handle user's signing. Observe this huge amount of messages. BTW, it's tablet application and on the tablet I'm not even able to scroll down those documents to sign.
attachment.swf
7.4 MB Download
Project Member

Comment 7 by sheriffbot@chromium.org, Apr 27 2018

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: Needs-Feedback
@Reporter: Tried checking the issue as per comment#6, i.e., using file "attachment.swf", we were unable to open the attachment. It would be highly helpful if shared with a test file/Url which helps us to triage the issue in a better way.

Thanks!  
Labels: -Needs-Bisect
Status: WontFix (was: Unconfirmed)
As there is no response from the reporter for more than one month.
Hence, closing the issue as wontFix.
Please feel free to raise a new issue if the issue is reproduced with latest chrome builds.
The latest chrome builds can be downloaded from the below URL:
https://www.chromium.org/getting-involved/dev-channel

Thanks...!!

Sign in to add a comment