Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(457)

Issue 2486003: Truncate very long javascript alert messages. They can overflow the UI and on Linux cause crashes. (Closed)

Created:
10 years, 6 months ago by Elliot Glaysher
Modified:
9 years, 7 months ago
Reviewers:
zel
CC:
chromium-reviews, ben+cc_chromium.org
Base URL:
http://src.chromium.org/git/chromium.git
Visibility:
Public.

Description

Truncate very long javascript alert messages. They can overflow the UI and on Linux cause crashes. BUG=45002 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=48751

Patch Set 1 #

Total comments: 2

Patch Set 2 : ElideString #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -0 lines) Patch
M chrome/browser/js_modal_dialog.cc View 1 2 chunks +15 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Elliot Glaysher
10 years, 6 months ago (2010-06-01 23:00:00 UTC) #1
zel
http://codereview.chromium.org/2486003/diff/1/2 File chrome/browser/js_modal_dialog.cc (right): http://codereview.chromium.org/2486003/diff/1/2#newcode42 chrome/browser/js_modal_dialog.cc:42: message_text_ = message_text_.substr(0, kMessageTextMaxSize); You should use ElideString() from ...
10 years, 6 months ago (2010-06-02 01:41:41 UTC) #2
Elliot Glaysher
On 2010/06/02 01:41:41, zel wrote: > You should use ElideString() from string_util.h instead of substr() ...
10 years, 6 months ago (2010-06-02 17:27:40 UTC) #3
zel
10 years, 6 months ago (2010-06-02 17:43:32 UTC) #4
LGTM

Powered by Google App Engine
This is Rietveld 408576698