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

Issue 2763173002: Form submission with blank target is broken. (Closed)

Created:
3 years, 9 months ago by michaeldo
Modified:
3 years, 8 months ago
CC:
chromium-reviews, ios-reviews+web_chromium.org, ios-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Form submission with blank target is broken. The UIWebView's implementation required a call to register the load of the form post request. However, this is no longer needed with WKWebView's callbacks. This removes the early |registerLoadRequest:referrer:transition:| call which was added for UIWebView and is no longer needed. TEST=Test that popups are blocked when expected, and shown when the user initiates them. I used popuptest.com to validate and there is also a link at the bottom of the page to “good” user-initiated popups that should not be blocked. The results looked good to me after this change. BUG=702755 Review-Url: https://codereview.chromium.org/2763173002 Cr-Commit-Position: refs/heads/master@{#460688} Committed: https://chromium.googlesource.com/chromium/src/+/9736d7d0d0c9999c239e43486a901b1f4a61cbdd

Patch Set 1 #

Total comments: 1

Patch Set 2 : Revert userClickedRecently change. Remove registerLoadRequest call. #

Total comments: 2

Patch Set 3 : Remove targetsFrame key/value from form submit call. #

Total comments: 2

Patch Set 4 : Fix JS formatting. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -18 lines) Patch
M ios/web/web_state/js/resources/core.js View 1 2 3 1 chunk +3 lines, -7 lines 0 comments Download
M ios/web/web_state/ui/crw_web_controller.mm View 1 2 1 chunk +0 lines, -11 lines 0 comments Download

Messages

Total messages: 24 (10 generated)
michaeldo
Note that I tried to add a test to cover this case, but it is ...
3 years, 9 months ago (2017-03-21 22:51:00 UTC) #2
kkhorimoto
On 2017/03/21 22:51:00, michaeldo wrote: > Note that I tried to add a test to ...
3 years, 9 months ago (2017-03-21 23:28:20 UTC) #3
Eugene But (OOO till 7-30)
On 2017/03/21 23:28:20, kkhorimoto_ wrote: > On 2017/03/21 22:51:00, michaeldo wrote: > > Note that ...
3 years, 9 months ago (2017-03-22 00:46:46 UTC) #4
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2763173002/diff/1/ios/web/web_state/ui/crw_web_controller.mm File ios/web/web_state/ui/crw_web_controller.mm (right): https://codereview.chromium.org/2763173002/diff/1/ios/web/web_state/ui/crw_web_controller.mm#newcode4218 ios/web/web_state/ui/crw_web_controller.mm:4218: requestURL, openerURL, [self userClickedRecently]); This will allow more popups ...
3 years, 9 months ago (2017-03-22 00:59:39 UTC) #5
michaeldo
On 2017/03/22 00:59:39, Eugene But wrote: > https://codereview.chromium.org/2763173002/diff/1/ios/web/web_state/ui/crw_web_controller.mm > File ios/web/web_state/ui/crw_web_controller.mm (right): > > https://codereview.chromium.org/2763173002/diff/1/ios/web/web_state/ui/crw_web_controller.mm#newcode4218 ...
3 years, 9 months ago (2017-03-22 23:26:26 UTC) #6
Eugene But (OOO till 7-30)
On 2017/03/22 23:26:26, michaeldo wrote: > On 2017/03/22 00:59:39, Eugene But wrote: > > > ...
3 years, 9 months ago (2017-03-22 23:34:31 UTC) #7
michaeldo
On 2017/03/22 23:34:31, Eugene But wrote: > On 2017/03/22 23:26:26, michaeldo wrote: > > On ...
3 years, 9 months ago (2017-03-23 05:18:31 UTC) #8
michaeldo
PTAL at the latest patch.
3 years, 8 months ago (2017-03-28 18:40:17 UTC) #10
Eugene But (OOO till 7-30)
Could you please update CL description and explain what this change does and why we ...
3 years, 8 months ago (2017-03-28 18:47:42 UTC) #11
michaeldo
https://codereview.chromium.org/2763173002/diff/20001/ios/web/web_state/ui/crw_web_controller.mm File ios/web/web_state/ui/crw_web_controller.mm (left): https://codereview.chromium.org/2763173002/diff/20001/ios/web/web_state/ui/crw_web_controller.mm#oldcode2564 ios/web/web_state/ui/crw_web_controller.mm:2564: message->GetBoolean("targetsFrame", &targetsFrame); On 2017/03/28 18:47:42, Eugene But wrote: > ...
3 years, 8 months ago (2017-03-29 22:53:37 UTC) #16
Eugene But (OOO till 7-30)
lgtm! https://codereview.chromium.org/2763173002/diff/40001/ios/web/web_state/js/resources/core.js File ios/web/web_state/js/resources/core.js (right): https://codereview.chromium.org/2763173002/diff/40001/ios/web/web_state/js/resources/core.js#newcode558 ios/web/web_state/js/resources/core.js:558: var action = evt.target.getAttribute('action'); Optional nit: JavaScript Style ...
3 years, 8 months ago (2017-03-30 00:59:03 UTC) #17
michaeldo
https://codereview.chromium.org/2763173002/diff/40001/ios/web/web_state/js/resources/core.js File ios/web/web_state/js/resources/core.js (right): https://codereview.chromium.org/2763173002/diff/40001/ios/web/web_state/js/resources/core.js#newcode558 ios/web/web_state/js/resources/core.js:558: var action = evt.target.getAttribute('action'); On 2017/03/30 00:59:03, Eugene But ...
3 years, 8 months ago (2017-03-30 06:43:28 UTC) #18
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/2763173002/60001
3 years, 8 months ago (2017-03-30 06:45:08 UTC) #21
commit-bot: I haz the power
3 years, 8 months ago (2017-03-30 07:37:19 UTC) #24
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/9736d7d0d0c9999c239e43486a90...

Powered by Google App Engine
This is Rietveld 408576698