New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 818479 link

Starred by 3 users

Issue metadata

Status: WontFix
Owner:
Closed: Mar 2018
Cc:
Components:
EstimatedDays: ----
NextAction: 2018-03-23
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

Many media_engagement preferences cause slow startup

Reported by dusk@woofle.net, Mar 4 2018

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36

Steps to reproduce the problem:
Have a profile with a very large number of sites stored under media_engagement (profile.content_settings.exceptions.media_engagement). In my case, there were 2552 sites listed under media_engagement, causing the Preferences JSON file to be roughly 650 KB.

What is the expected behavior?

What went wrong?
Starting the browser or opening an Incognito window with this profile active took an abnormally long time -- roughly 5-6 seconds. The same action was effectively instantaneous with another profile.

Removing the media_engagement key from the Preferences file (while leaving the rest of the file intact) restored expected performance.

Did this work before? N/A 

Chrome version: 64.0.3282.186  Channel: stable
OS Version: OS X 10.13.3
Flash Version: 

I can't say exactly when this started, but it seems as though something changed recently. The contents of the media_engagement hash include some sites I hadn't visited in months, but the performance issues seem more recent.
 

Comment 1 by dusk@woofle.net, Mar 4 2018

Here's a representative example of the data that was in my media_engagement. (The original wasn't pretty-printed, of course.)

    "http://localhost:80,*": {
      "last_modified": "13159007672773900",
      "setting": {
        "hasHighScore": false,
        "lastMediaPlaybackTime": 0,
        "mediaPlaybacks": 0,
        "visits": 1
      }
    },
Labels: Needs-Triage-M64
Components: Internals>Media>Engagement
Cc: krajshree@chromium.org
Labels: Triaged-ET Needs-Feedback
dusk@ - Thanks for filing the issue...!!

Could you please provide a sample test file/url to test the issue from TE-end.
This will help us in triaging the issue further.

Thanks...!!

Comment 5 by torne@chromium.org, Mar 6 2018

Labels: -Needs-Feedback
This isn't a problem with any particular page or content, but with the overall behaviour of the browser.
Labels: Needs-Feedback
Owner: beccahughes@chromium.org
There is a similar bug to this at  http://crbug.com/814127  which seems to have resolved itself.

Please can you try again and confirm if this is still an issue?
NextAction: 2018-03-23
The NextAction date has arrived: 2018-03-23
Status: Assigned (was: Unconfirmed)

Comment 10 by dusk@woofle.net, Mar 23 2018

Launching M65 with a copy of my old profile causes the media_engagement settings to be trimmed down pretty aggressively, and window opening is as fast as expected. I'm not sure if this is because something changed or because that profile hasn't been used in a month, though.
Status: WontFix (was: Assigned)
Yes this is expected.

Comment 12 by torne@chromium.org, Mar 27 2018

Cc: torne@chromium.org
Becca, do you mean "it's expected that it was slow because it wasn't being pruned properly, but that's fixed now so it's okay", or something else?

Was it slow because the incognito profile creation has to re-read all the prefs or similar?

Sign in to add a comment