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

Issue 2807213003: Move stringify, form, navigation and scroll methods out of core.js. (Closed)

Created:
3 years, 8 months ago by danyao
Modified:
3 years, 8 months ago
CC:
chromium-reviews, Eugene But (OOO till 7-30), ios-reviews+web_chromium.org, ios-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Move stringify, form, navigation and scroll methods out of core.js. - stringify() is a standalone utility so it is moved to common.js. - form.js adds listeners to handle forms. - navigation.js contains __gCrWeb APIs for managing navigation history. - scroll_workaround.js isolates the workaround for crbug.com/554257. Corresponding unit tests in core_js_unittest are also extracted. - common_js_unittest.mm: fixed a bug in stringify(undefined), added test case and removed TODO. BUG=614092 TESTED=Ran ios_web_unittests, and manually verified in simulator that the scroll workaround still works. Review-Url: https://codereview.chromium.org/2807213003 Cr-Commit-Position: refs/heads/master@{#463691} Committed: https://chromium.googlesource.com/chromium/src/+/1e1d38350c1b5c587b8bcbba0327066ac6152d27

Patch Set 1 #

Total comments: 12

Patch Set 2 : Address reviewer comments #

Patch Set 3 : Clarified usage recommendation in comment for stringify() #

Patch Set 4 : Re-upload patch after rebase-update in local branch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+341 lines, -269 lines) Patch
M ios/web/BUILD.gn View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M ios/web/web_state/js/common_js_unittest.mm View 1 3 chunks +51 lines, -0 lines 0 comments Download
M ios/web/web_state/js/core_js_unittest.mm View 1 2 3 2 chunks +0 lines, -72 lines 0 comments Download
M ios/web/web_state/js/resources/common.js View 1 2 3 chunks +27 lines, -0 lines 0 comments Download
M ios/web/web_state/js/resources/core.js View 3 chunks +2 lines, -197 lines 0 comments Download
A ios/web/web_state/js/resources/form.js View 1 2 1 chunk +89 lines, -0 lines 0 comments Download
A ios/web/web_state/js/resources/navigation.js View 1 chunk +128 lines, -0 lines 0 comments Download
A ios/web/web_state/js/resources/scroll_workaround.js View 1 chunk +38 lines, -0 lines 0 comments Download
M ios/web/web_state/js/resources/web_bundle.js View 1 chunk +3 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 24 (14 generated)
danyao
3 years, 8 months ago (2017-04-10 21:27:05 UTC) #4
Eugene But (OOO till 7-30)
Thanks for cleanup, lgtm! https://codereview.chromium.org/2807213003/diff/1/ios/web/web_state/js/common_js_unittest.mm File ios/web/web_state/js/common_js_unittest.mm (right): https://codereview.chromium.org/2807213003/diff/1/ios/web/web_state/js/common_js_unittest.mm#newcode9 ios/web/web_state/js/common_js_unittest.mm:9: #import "base/strings/sys_string_conversions.h" s/import/include (because this ...
3 years, 8 months ago (2017-04-10 21:42:07 UTC) #5
danyao
https://codereview.chromium.org/2807213003/diff/1/ios/web/web_state/js/common_js_unittest.mm File ios/web/web_state/js/common_js_unittest.mm (right): https://codereview.chromium.org/2807213003/diff/1/ios/web/web_state/js/common_js_unittest.mm#newcode9 ios/web/web_state/js/common_js_unittest.mm:9: #import "base/strings/sys_string_conversions.h" On 2017/04/10 21:42:07, Eugene But wrote: > ...
3 years, 8 months ago (2017-04-10 22:13:00 UTC) #6
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2807213003/diff/1/ios/web/web_state/js/resources/common.js File ios/web/web_state/js/resources/common.js (right): https://codereview.chromium.org/2807213003/diff/1/ios/web/web_state/js/resources/common.js#newcode53 ios/web/web_state/js/resources/common.js:53: * should not be used if spoofing it would ...
3 years, 8 months ago (2017-04-11 00:12:44 UTC) #7
danyao
https://codereview.chromium.org/2807213003/diff/1/ios/web/web_state/js/resources/common.js File ios/web/web_state/js/resources/common.js (right): https://codereview.chromium.org/2807213003/diff/1/ios/web/web_state/js/resources/common.js#newcode53 ios/web/web_state/js/resources/common.js:53: * should not be used if spoofing it would ...
3 years, 8 months ago (2017-04-11 15:10:39 UTC) #8
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/2807213003/40001
3 years, 8 months ago (2017-04-11 16:07:48 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_tsan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_tsan_rel_ng/builds/50594) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 8 months ago (2017-04-11 16:11:15 UTC) #13
danyao
On 2017/04/11 16:11:15, commit-bot: I haz the power wrote: > Try jobs failed on following ...
3 years, 8 months ago (2017-04-11 16:22:51 UTC) #14
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/2807213003/60001
3 years, 8 months ago (2017-04-11 17:58:27 UTC) #21
commit-bot: I haz the power
3 years, 8 months ago (2017-04-11 18:26:39 UTC) #24
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/1e1d38350c1b5c587b8bcbba0327...

Powered by Google App Engine
This is Rietveld 408576698