| Index: ios/web/web_state/js/resources/core.js
|
| diff --git a/ios/web/web_state/js/resources/core.js b/ios/web/web_state/js/resources/core.js
|
| index f1a302f2be7fea56efd2a4f13cfcbfab761cd92f..2eaef1ebff88d01d0c2f65924da1a3f00f4daf53 100644
|
| --- a/ios/web/web_state/js/resources/core.js
|
| +++ b/ios/web/web_state/js/resources/core.js
|
| @@ -552,21 +552,17 @@ goog.require('__crWeb.message');
|
|
|
| // Capture form submit actions.
|
| document.addEventListener('submit', function(evt) {
|
| + var action;
|
| if (evt['defaultPrevented'])
|
| return;
|
| -
|
| - var form = evt.target;
|
| - var targetsFrame = form.target && hasFrame_(window, form.target);
|
| -
|
| - var action = form.getAttribute('action');
|
| + action = evt.target.getAttribute('action');
|
| // Default action is to re-submit to same page.
|
| if (!action)
|
| action = document.location.href;
|
| invokeOnHost_({
|
| 'command': 'document.submit',
|
| 'formName': __gCrWeb.common.getFormIdentifier(evt.srcElement),
|
| - 'href': __gCrWeb['getFullyQualifiedURL'](action),
|
| - 'targetsFrame': targetsFrame
|
| + 'href': __gCrWeb['getFullyQualifiedURL'](action)
|
| });
|
| }, false);
|
|
|
|
|