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

Issue 708304 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Jan 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug



Sign in to add a comment

[Large text entry] Page is loading very slowly when user name is too long.

Project Member Reported by dpa...@chromium.org, Apr 4 2017

Issue description

Repro steps:
 - Login to Chrome.
 - Go to chrome://md-settings/manageProfile
 - Change the name to a very very large string
 - Reload the page.

Actual: Page is extremely slow to load.
Expected: Page should load normally.

I am suspecting that this has to do with the long text being processed by Blink for the purposes of elliding. See similar issue from the MD Downloads case at  issue 659636 .

Probably the same behavior can be reproduced for a very long startup URL (or any other place in the MD Settings page where a very long string can appear), need to investigate.
 
Cc: tbuck...@chromium.org

Comment 2 by dbeam@chromium.org, Apr 4 2017

Cc: tommycli@chromium.org
dschuyler@ and tommycli@ and I just discussed this

In an ideal world, we would let anybody enter their full name, regardless of length.

But arbitrarily sized content is more problematic (exploited) than it is useful in my experience.

The places where a very very large name (see: the text of a novel) would be bad:

- rendering (text-overflow: ellipsis is hella slow)
- IPC
- bloating of pref file size
- anywhere that doesn't handle large N values

so capping to some sane value (especially when displaying, possibly when transmitting or saving) seems fine to me.

If somebody with >1024 character name files a bug with legal ID, I'd be happy to look into a fix for them.
Labels: Hotlist-MD-Settings-General OS-All
Owner: dpa...@chromium.org
Status: Assigned (was: Untriaged)
So we're going to cap the length we allow to be entered / loaded? Seems reasonable to me.

Not sure clipping is reasonable for things like URLs though. What can we do in those cases?

Comment 4 by dbeam@chromium.org, Apr 10 2017

Owner: dschuyler@chromium.org
Related  Issue 575606 
Summary: [Large text entry] Page is loading very slowly when user name is too long. (was: MD Settings: Page is loading very slowly when user name is too long.)
Project Member

Comment 7 by bugdroid1@chromium.org, Jan 5 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/90ea2e1a8dbd3e962acbedc97f50277396602e32

commit 90ea2e1a8dbd3e962acbedc97f50277396602e32
Author: Dave Schuyler <dschuyler@chromium.org>
Date: Fri Jan 05 01:54:38 2018

[MD settings] limit the profile name input

This CL limits the profile name input to 500 characters. This value is
well beyond what is necessary and serves as a guard against absurd
(accidental?) entries which can make the page appear to freeze/crash.

Bug:  708304 
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: I5751a7f9bfbd4b594e9761ee18f46d4c2173390f
Reviewed-on: https://chromium-review.googlesource.com/851268
Reviewed-by: Scott Chen <scottchen@chromium.org>
Commit-Queue: Dave Schuyler <dschuyler@chromium.org>
Cr-Commit-Position: refs/heads/master@{#527187}
[modify] https://crrev.com/90ea2e1a8dbd3e962acbedc97f50277396602e32/chrome/browser/resources/settings/people_page/manage_profile.html

I did a few internet searches about the longest legal names. I limited the input to 500 characters since that seems far beyond what is necessary and is still relatively small.
Status: Fixed (was: Assigned)
Labels: TE-Verified-M65 TE-Verified-65.0.3314.0
Tested the issue on Windows 10, Mac 10.12.6 and Ubuntu 14.04 using Chrome version M65 - 65.0.3314.0 as per the issue mentioned in original comment and Comment #7. Observed that issue is working as intended (Maximum 500 character can be saved as Profile Name in 'chrome://settings/manageProfile' page and refreshing the page will load screen normally). Hence adding TE-Verified label. Attached the screencast for reference.

Thank you!

708304.webm
4.9 MB View Download

Sign in to add a comment