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

Issue 366913006: [Android WebView] Terminate execution of stuck JS code on navigation requests (Closed)

Created:
6 years, 5 months ago by mnaganov (inactive)
Modified:
6 years, 5 months ago
Reviewers:
palmer, benm (inactive)
CC:
chromium-reviews, darin-cc_chromium.org, jam, android-webview-reviews_chromium.org
Project:
chromium
Visibility:
Public.

Description

[Android WebView] Terminate execution of stuck JS code on navigation requests Allow WebView.loadUrl-family functions to terminate execution of JS code that seems to be stuck in a loop. BUG=390906 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=281715

Patch Set 1 #

Total comments: 4

Patch Set 2 : Move the implementation under android_webview #

Total comments: 2

Patch Set 3 : Comments addressed #

Patch Set 4 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+256 lines, -5 lines) Patch
M android_webview/android_webview.gyp View 1 2 chunks +3 lines, -0 lines 0 comments Download
M android_webview/browser/renderer_host/aw_render_view_host_ext.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M android_webview/browser/renderer_host/aw_render_view_host_ext.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M android_webview/common/render_view_messages.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 1 2 3 3 chunks +6 lines, -4 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/LoadUrlTest.java View 1 2 chunks +70 lines, -0 lines 0 comments Download
M android_webview/native/aw_contents.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/native/aw_contents.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M android_webview/renderer/aw_content_renderer_client.h View 1 2 chunks +8 lines, -1 line 0 comments Download
M android_webview/renderer/aw_content_renderer_client.cc View 1 3 chunks +13 lines, -0 lines 0 comments Download
A android_webview/renderer/aw_execution_termination_filter.h View 1 1 chunk +64 lines, -0 lines 0 comments Download
A android_webview/renderer/aw_execution_termination_filter.cc View 1 1 chunk +76 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
mnaganov (inactive)
6 years, 5 months ago (2014-07-02 13:51:08 UTC) #1
benm (inactive)
On 2014/07/02 13:51:08, Mikhail Naganov (Cr) wrote: Is it possible to move this into the ...
6 years, 5 months ago (2014-07-02 14:07:00 UTC) #2
benm (inactive)
https://codereview.chromium.org/366913006/diff/1/content/renderer/android/execution_termination_filter.cc File content/renderer/android/execution_termination_filter.cc (right): https://codereview.chromium.org/366913006/diff/1/content/renderer/android/execution_termination_filter.cc#newcode50 content/renderer/android/execution_termination_filter.cc:50: main_message_loop_->PostTask( can you add a comment as to why ...
6 years, 5 months ago (2014-07-02 14:43:39 UTC) #3
mnaganov (inactive)
OK, I have moved everything under android_webview. https://codereview.chromium.org/366913006/diff/1/content/renderer/android/execution_termination_filter.cc File content/renderer/android/execution_termination_filter.cc (right): https://codereview.chromium.org/366913006/diff/1/content/renderer/android/execution_termination_filter.cc#newcode50 content/renderer/android/execution_termination_filter.cc:50: main_message_loop_->PostTask( On ...
6 years, 5 months ago (2014-07-02 16:39:28 UTC) #4
benm (inactive)
nice! looks great overall. https://codereview.chromium.org/366913006/diff/20001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/366913006/diff/20001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode1073 android_webview/java/src/org/chromium/android_webview/AwContents.java:1073: if (mNativeAwContents != 0) { ...
6 years, 5 months ago (2014-07-03 16:40:28 UTC) #5
mnaganov (inactive)
https://codereview.chromium.org/366913006/diff/20001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/366913006/diff/20001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode1073 android_webview/java/src/org/chromium/android_webview/AwContents.java:1073: if (mNativeAwContents != 0) { On 2014/07/03 16:40:28, benm ...
6 years, 5 months ago (2014-07-03 17:06:54 UTC) #6
mnaganov (inactive)
palmer@: Can you please look at android_webview/common/render_view_messages.h?
6 years, 5 months ago (2014-07-03 17:07:49 UTC) #7
benm (inactive)
lgtm
6 years, 5 months ago (2014-07-03 21:31:55 UTC) #8
palmer
IPC security LGTM.
6 years, 5 months ago (2014-07-07 17:47:33 UTC) #9
mnaganov (inactive)
The CQ bit was checked by mnaganov@chromium.org
6 years, 5 months ago (2014-07-08 08:54:27 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnaganov@chromium.org/366913006/60001
6 years, 5 months ago (2014-07-08 08:55:21 UTC) #11
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: ios_dbg_simulator on tryserver.chromium ...
6 years, 5 months ago (2014-07-08 10:46:28 UTC) #12
commit-bot: I haz the power
6 years, 5 months ago (2014-07-08 10:57:59 UTC) #13
Message was sent while issue was closed.
Change committed as 281715

Powered by Google App Engine
This is Rietveld 408576698