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

Issue 2957423002: Check page URL origin to determine JavaScript alert titles. (Closed)

Created:
3 years, 5 months ago by PL
Modified:
3 years, 5 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

Check page URL origin to determine JavaScript alert titles. BUG=590815 Review-Url: https://codereview.chromium.org/2957423002 Cr-Commit-Position: refs/heads/master@{#483583} Committed: https://chromium.googlesource.com/chromium/src/+/3ed4f536d098e75cf5f999fdc076bcc81bad39ab

Patch Set 1 #

Total comments: 10

Patch Set 2 : Review feedback and tests #

Patch Set 3 : Add string comparison unit test #

Total comments: 6

Patch Set 4 : Review feedback: Make localizedTitle...: private, tweaks. #

Total comments: 2

Patch Set 5 : Small tweak #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -28 lines) Patch
M ios/chrome/browser/ui/dialogs/dialog_presenter.h View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M ios/chrome/browser/ui/dialogs/dialog_presenter.mm View 1 2 3 5 chunks +22 lines, -8 lines 0 comments Download
M ios/chrome/browser/ui/dialogs/dialog_presenter_unittest.mm View 1 2 3 4 2 chunks +40 lines, -0 lines 0 comments Download
M ios/chrome/browser/ui/dialogs/javascript_dialog_egtest.mm View 1 2 3 6 chunks +24 lines, -17 lines 0 comments Download

Messages

Total messages: 23 (13 generated)
PL
Hello! This is a tweak as discussed last week to the JavaScript alert title logic. ...
3 years, 5 months ago (2017-06-28 23:18:34 UTC) #2
Eugene But (OOO till 7-30)
Thank you for fixing this! Is it possible to add a test to dialog_presenter_unittest? On ...
3 years, 5 months ago (2017-06-29 01:00:01 UTC) #3
PL
Thanks! Couple quick replies first: On 2017/06/29 01:00:01, Eugene But wrote: > Thank you for ...
3 years, 5 months ago (2017-06-29 17:25:26 UTC) #4
Eugene But (OOO till 7-30)
>> Unfortunately MakeUrl always makes a URL with the host 127.0.0.1, so the browser will ...
3 years, 5 months ago (2017-06-29 18:52:49 UTC) #5
PL
Ok! Thanks Eugene, This change adds unit tests that check the alert title for expectations. ...
3 years, 5 months ago (2017-06-29 20:02:21 UTC) #6
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2957423002/diff/1/ios/chrome/browser/ui/dialogs/dialog_presenter.h File ios/chrome/browser/ui/dialogs/dialog_presenter.h (right): https://codereview.chromium.org/2957423002/diff/1/ios/chrome/browser/ui/dialogs/dialog_presenter.h#newcode88 ios/chrome/browser/ui/dialogs/dialog_presenter.h:88: + (NSString*)localizedTitleForJavaScriptAlertFromPage:(const GURL&)pageURL On 2017/06/29 20:02:21, PL wrote: > ...
3 years, 5 months ago (2017-06-29 20:35:10 UTC) #11
PL
Thanks Eugene! Was fairly easy to make localizedTitleForJavaScriptAlertFromPage:mainFrameURL: private. PTAL! - Peter https://codereview.chromium.org/2957423002/diff/40001/ios/chrome/browser/ui/dialogs/dialog_presenter_unittest.mm File ios/chrome/browser/ui/dialogs/dialog_presenter_unittest.mm ...
3 years, 5 months ago (2017-06-29 21:09:04 UTC) #12
Eugene But (OOO till 7-30)
lgtm! Thank you for fixing this. https://codereview.chromium.org/2957423002/diff/60001/ios/chrome/browser/ui/dialogs/dialog_presenter_unittest.mm File ios/chrome/browser/ui/dialogs/dialog_presenter_unittest.mm (right): https://codereview.chromium.org/2957423002/diff/60001/ios/chrome/browser/ui/dialogs/dialog_presenter_unittest.mm#newcode122 ios/chrome/browser/ui/dialogs/dialog_presenter_unittest.mm:122: EXPECT_NSEQ(same_origin_title, expected_title); EXPECT_NSEQ ...
3 years, 5 months ago (2017-06-29 22:03:50 UTC) #13
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/2957423002/80001
3 years, 5 months ago (2017-06-30 01:31:35 UTC) #20
commit-bot: I haz the power
3 years, 5 months ago (2017-06-30 01:38:41 UTC) #23
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/3ed4f536d098e75cf5f999fdc076...

Powered by Google App Engine
This is Rietveld 408576698