|
|
Chromium Code Reviews
DescriptionFix ntp-tiles-internals crash in incognito mode
NTP Tiles aren't supported in Incognito mode, so disable the handlers in
that case.
BUG=674441
Review-Url: https://codereview.chromium.org/2584483002
Cr-Commit-Position: refs/heads/master@{#444050}
Committed: https://chromium.googlesource.com/chromium/src/+/b20f0039e91883b8f001390a2f21616b4ec5752d
Patch Set 1 #Patch Set 2 : rebase #
Messages
Total messages: 27 (12 generated)
sfiera@chromium.org changed reviewers: + treib@chromium.org
It looks pretty broken in incognito after this, but it doesn't crash.
On 2016/12/15 11:17:28, sfiera wrote: > It looks pretty broken in incognito after this, but it doesn't crash. See IsURLAllowedInIncognito in chrome/browser/ui/browser_navigator.cc - that seems to be how other internals pages handle this.
On 2016/12/15 11:21:54, Marc Treib (OOO until Jan 12) wrote: > On 2016/12/15 11:17:28, sfiera wrote: > > It looks pretty broken in incognito after this, but it doesn't crash. > > See IsURLAllowedInIncognito in chrome/browser/ui/browser_navigator.cc - that > seems to be how other internals pages handle this. Only used on desktop? browser_navigator.cc is in the !android_java_ui block of ui/BUILD.gn.
On 2016/12/19 10:34:34, sfiera wrote: > On 2016/12/15 11:21:54, Marc Treib (OOO until Jan 12) wrote: > > On 2016/12/15 11:17:28, sfiera wrote: > > > It looks pretty broken in incognito after this, but it doesn't crash. > > > > See IsURLAllowedInIncognito in chrome/browser/ui/browser_navigator.cc - that > > seems to be how other internals pages handle this. > > Only used on desktop? browser_navigator.cc is in the !android_java_ui block of > ui/BUILD.gn. Huh, today I learned. Alright, LGTM then!
The CQ bit was checked by sfiera@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
On 2016/12/19 11:55:22, Marc Treib (OOO until Jan 12) wrote: > On 2016/12/19 10:34:34, sfiera wrote: > > On 2016/12/15 11:21:54, Marc Treib (OOO until Jan 12) wrote: > > > On 2016/12/15 11:17:28, sfiera wrote: > > > > It looks pretty broken in incognito after this, but it doesn't crash. > > > > > > See IsURLAllowedInIncognito in chrome/browser/ui/browser_navigator.cc - that > > > seems to be how other internals pages handle this. > > > > Only used on desktop? browser_navigator.cc is in the !android_java_ui block of > > ui/BUILD.gn. > > Huh, today I learned. Alright, LGTM then! Hm, I think I would rather pull IsURLAllowedInIncognito() out of there and use it in the URL loading code path for Android as well... My guess is there are a bunch of other WebUI pages that are also broken in incognito on Android.
On 2016/12/19 12:04:03, Bernhard Bauer wrote: > On 2016/12/19 11:55:22, Marc Treib (OOO until Jan 12) wrote: > > On 2016/12/19 10:34:34, sfiera wrote: > > > On 2016/12/15 11:21:54, Marc Treib (OOO until Jan 12) wrote: > > > > On 2016/12/15 11:17:28, sfiera wrote: > > > > > It looks pretty broken in incognito after this, but it doesn't crash. > > > > > > > > See IsURLAllowedInIncognito in chrome/browser/ui/browser_navigator.cc - > that > > > > seems to be how other internals pages handle this. > > > > > > Only used on desktop? browser_navigator.cc is in the !android_java_ui block > of > > > ui/BUILD.gn. > > > > Huh, today I learned. Alright, LGTM then! > > Hm, I think I would rather pull IsURLAllowedInIncognito() out of there and use > it in the URL loading code path for Android as well... My guess is there are a > bunch of other WebUI pages that are also broken in incognito on Android. At a minimum, signin-internals is. snippets-internals does something different? I'll check that.
On 2016/12/19 12:13:14, sfiera wrote: > On 2016/12/19 12:04:03, Bernhard Bauer wrote: > > On 2016/12/19 11:55:22, Marc Treib (OOO until Jan 12) wrote: > > > On 2016/12/19 10:34:34, sfiera wrote: > > > > On 2016/12/15 11:21:54, Marc Treib (OOO until Jan 12) wrote: > > > > > On 2016/12/15 11:17:28, sfiera wrote: > > > > > > It looks pretty broken in incognito after this, but it doesn't crash. > > > > > > > > > > See IsURLAllowedInIncognito in chrome/browser/ui/browser_navigator.cc - > > that > > > > > seems to be how other internals pages handle this. > > > > > > > > Only used on desktop? browser_navigator.cc is in the !android_java_ui > block > > of > > > > ui/BUILD.gn. > > > > > > Huh, today I learned. Alright, LGTM then! > > > > Hm, I think I would rather pull IsURLAllowedInIncognito() out of there and use > > it in the URL loading code path for Android as well... My guess is there are a > > bunch of other WebUI pages that are also broken in incognito on Android. > > At a minimum, signin-internals is. snippets-internals does something different? > I'll check that. Ah, it simply doesn't instantiate the WebUI: https://cs.chromium.org/chromium/src/chrome/browser/ui/webui/chrome_web_ui_co... That sounds like an OK fix too, though it's the only WebUI that does that.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
I haven't spent any more time investigating alternate fixes, and the crash is marked as a stable blocker, so I'll submit this now.
The CQ bit was checked by sfiera@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from treib@chromium.org Link to the patchset: https://codereview.chromium.org/2584483002/#ps20001 (title: "rebase")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...)
sfiera@chromium.org changed reviewers: + bauerb@chromium.org, marq@chromium.org
bauerb: for chrome/… marq: for ios/… Thanks.
I'm still not super happy about silently breaking the page in incognito, but I guess it's better than crashing, so LGTM.
ios/ LGTM
The CQ bit was checked by sfiera@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch.
Bot data: {"patchset_id": 20001, "attempt_start_ts": 1484664471517160,
"parent_rev": "fa5c0f2b9380b8a93c72b5ccde08b82203fbc5b0", "commit_rev":
"b20f0039e91883b8f001390a2f21616b4ec5752d"}
Message was sent while issue was closed.
Description was changed from ========== Fix ntp-tiles-internals crash in incognito mode NTP Tiles aren't supported in Incognito mode, so disable the handlers in that case. BUG=674441 ========== to ========== Fix ntp-tiles-internals crash in incognito mode NTP Tiles aren't supported in Incognito mode, so disable the handlers in that case. BUG=674441 Review-Url: https://codereview.chromium.org/2584483002 Cr-Commit-Position: refs/heads/master@{#444050} Committed: https://chromium.googlesource.com/chromium/src/+/b20f0039e91883b8f001390a2f21... ==========
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/b20f0039e91883b8f001390a2f21... |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
