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

Issue 2781623006: MD Settings: Fix Appearance home page URL crash (Closed)

Created:
3 years, 8 months ago by tommycli
Modified:
3 years, 8 months ago
Reviewers:
dpapad
CC:
chromium-reviews, dbeam+watch-settings_chromium.org, michaelpg+watch-md-settings_chromium.org, stevenjb+watch-md-settings_chromium.org, scottchen
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Settings: Fix Appearance home page URL crash The Appearance home page URL validation occurs before the On Startup section calls 'onStartupPrefsPageLoad', there will be a IsJavascriptAllowed crash. Having the URL validation function itself call AllowJavascript within SettingsStartupPagesHandler is problematic because that handler is so heavy. This CL moves 'validateStartupPage' to the OnStartupHandler, which is lightweight and has no hooks to OnJavascriptAllowed, so we can make 'validateStartupPage' call AllowJavascript. BUG=705366 Review-Url: https://codereview.chromium.org/2781623006 Cr-Commit-Position: refs/heads/master@{#460240} Committed: https://chromium.googlesource.com/chromium/src/+/9b4945ffcbfc14e7a648e20053ec7909927275c0

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -21 lines) Patch
M chrome/browser/ui/webui/settings/on_startup_handler.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/settings/on_startup_handler.cc View 3 chunks +20 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/settings/settings_startup_pages_handler.h View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/settings/settings_startup_pages_handler.cc View 2 chunks +0 lines, -17 lines 0 comments Download

Messages

Total messages: 24 (14 generated)
tommycli
dpapad: PTAL, thanks
3 years, 8 months ago (2017-03-28 18:04:02 UTC) #4
dpapad
On 2017/03/28 at 18:04:02, tommycli wrote: > dpapad: PTAL, thanks Fix seems reasonable, just a ...
3 years, 8 months ago (2017-03-28 18:58:00 UTC) #7
dpapad
On 2017/03/28 at 18:58:00, dpapad wrote: > On 2017/03/28 at 18:04:02, tommycli wrote: > > ...
3 years, 8 months ago (2017-03-28 19:08:15 UTC) #8
tommycli
On 2017/03/28 19:08:15, dpapad wrote: > On 2017/03/28 at 18:58:00, dpapad wrote: > > On ...
3 years, 8 months ago (2017-03-28 20:10:07 UTC) #10
dpapad
On 2017/03/28 at 20:10:07, tommycli wrote: > On 2017/03/28 19:08:15, dpapad wrote: > > On ...
3 years, 8 months ago (2017-03-28 20:30:34 UTC) #11
tommycli
On 2017/03/28 20:30:34, dpapad wrote: > On 2017/03/28 at 20:10:07, tommycli wrote: > > On ...
3 years, 8 months ago (2017-03-28 20:31:40 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2781623006/1
3 years, 8 months ago (2017-03-28 20:32:57 UTC) #14
commit-bot: I haz the power
CQ has no permission to schedule in bucket master.tryserver.chromium.linux
3 years, 8 months ago (2017-03-28 21:15:18 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2781623006/1
3 years, 8 months ago (2017-03-28 23:29:54 UTC) #21
commit-bot: I haz the power
3 years, 8 months ago (2017-03-28 23:47:59 UTC) #24
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/9b4945ffcbfc14e7a648e20053ec...

Powered by Google App Engine
This is Rietveld 408576698