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

Issue 2944243002: Improve dialog titles generated by embedded pages. (Closed)

Created:
3 years, 6 months ago by PL
Modified:
3 years, 6 months ago
CC:
chromium-reviews, marq+watch_chromium.org, ios-reviews+chrome_chromium.org, noyau+watch_chromium.org, ios-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Improve dialog titles generated by embedded pages. BUG=590815 TEST=See steps to reproduce in bug. Review-Url: https://codereview.chromium.org/2944243002 Cr-Commit-Position: refs/heads/master@{#481591} Committed: https://chromium.googlesource.com/chromium/src/+/4da94ecef84eb4c38c68952b54f28b1159289998

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -10 lines) Patch
M ios/chrome/browser/ui/dialogs/dialog_presenter.mm View 2 chunks +9 lines, -10 lines 1 comment Download

Messages

Total messages: 12 (5 generated)
PL
Hi Kurt! PTAL! This correctly presents the appropriate title instead of about:null now. The desktop ...
3 years, 6 months ago (2017-06-20 01:15:19 UTC) #2
kkhorimoto
lgtm!
3 years, 6 months ago (2017-06-22 01:05:07 UTC) #3
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/2944243002/1
3 years, 6 months ago (2017-06-22 17:34:26 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/4da94ecef84eb4c38c68952b54f28b1159289998
3 years, 6 months ago (2017-06-22 17:47:42 UTC) #8
Eugene But (OOO till 7-30)
Driving by https://codereview.chromium.org/2944243002/diff/1/ios/chrome/browser/ui/dialogs/dialog_presenter.mm File ios/chrome/browser/ui/dialogs/dialog_presenter.mm (right): https://codereview.chromium.org/2944243002/diff/1/ios/chrome/browser/ui/dialogs/dialog_presenter.mm#newcode346 ios/chrome/browser/ui/dialogs/dialog_presenter.mm:346: if (!hostname.length) { Other platforms use IDS_JAVASCRIPT_MESSAGEBOX_TITLE_NONSTANDARD_URL_IFRAME ...
3 years, 6 months ago (2017-06-22 20:19:13 UTC) #10
PL
On 2017/06/22 20:19:13, Eugene But wrote: > Driving by > > https://codereview.chromium.org/2944243002/diff/1/ios/chrome/browser/ui/dialogs/dialog_presenter.mm > File ios/chrome/browser/ui/dialogs/dialog_presenter.mm ...
3 years, 6 months ago (2017-06-22 20:24:32 UTC) #11
Eugene But (OOO till 7-30)
3 years, 6 months ago (2017-06-22 20:52:01 UTC) #12
Message was sent while issue was closed.
On 2017/06/22 20:24:32, PL wrote:
> On 2017/06/22 20:19:13, Eugene But wrote:
> > Driving by
> > 
> >
>
https://codereview.chromium.org/2944243002/diff/1/ios/chrome/browser/ui/dialo...
> > File ios/chrome/browser/ui/dialogs/dialog_presenter.mm (right):
> > 
> >
>
https://codereview.chromium.org/2944243002/diff/1/ios/chrome/browser/ui/dialo...
> > ios/chrome/browser/ui/dialogs/dialog_presenter.mm:346: if (!hostname.length)
{
> > Other platforms use IDS_JAVASCRIPT_MESSAGEBOX_TITLE_NONSTANDARD_URL_IFRAME
> when
> > dialog is requested by iframe, not when hostname is empty. Can we follow the
> > same logic as other platforms?:
> > 
> > bool is_same_origin_as_main_frame =
> >       (web_contents->GetURL().GetOrigin() == origin_url.GetOrigin());
> > 
> > ios has web_state instead of web_contents, but everything else can be the
> same.
> 
> Thanks Eugene! I will follow up in a new CL.
Thank you!

Powered by Google App Engine
This is Rietveld 408576698