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

Issue 12378011: [Android WebView] Add simple support for remote web debugging (Closed)

Created:
7 years, 9 months ago by mnaganov (inactive)
Modified:
7 years, 5 months ago
Reviewers:
joth, benm (inactive)
CC:
chromium-reviews, yurys, vsevik, android-webview-reviews_chromium.org, pfeldman
Visibility:
Public.

Description

[Android WebView] Add simple support for remote web debugging This is a non-final way of exposing web debugging for WebView, but it is extremely useful for anyone who needs to debug its web content in the new version of WebView. This patch unconditionally exposes 'webview_devtools_remote_<pid>' linux abstract socket for remote debugging. The DevTools frontend is already being bundled with WebView, so this patch doesn't add any new resources. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=185543

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fixed copyrights #

Total comments: 4

Patch Set 3 : Rebased and fixed comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+182 lines, -0 lines) Patch
M android_webview/android_webview.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M android_webview/browser/aw_browser_main_parts.h View 2 chunks +3 lines, -0 lines 0 comments Download
M android_webview/browser/aw_browser_main_parts.cc View 3 chunks +7 lines, -0 lines 0 comments Download
A android_webview/browser/aw_devtools_delegate.h View 1 1 chunk +50 lines, -0 lines 0 comments Download
A android_webview/browser/aw_devtools_delegate.cc View 1 2 1 chunk +120 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
mnaganov (inactive)
7 years, 9 months ago (2013-02-28 14:18:47 UTC) #1
benm (inactive)
This is way awesome! Is the plan to land in this preliminary state, or keep ...
7 years, 9 months ago (2013-02-28 14:54:12 UTC) #2
mnaganov (inactive)
I'd commit it. The more test exposure we will have, the better. As WebView is ...
7 years, 9 months ago (2013-02-28 16:33:03 UTC) #3
benm (inactive)
7 years, 9 months ago (2013-02-28 19:46:45 UTC) #4
benm (inactive)
lgtm https://codereview.chromium.org/12378011/diff/5001/android_webview/browser/aw_devtools_delegate.cc File android_webview/browser/aw_devtools_delegate.cc (right): https://codereview.chromium.org/12378011/diff/5001/android_webview/browser/aw_devtools_delegate.cc#newcode36 android_webview/browser/aw_devtools_delegate.cc:36: // The call below destroys this. do you ...
7 years, 9 months ago (2013-03-01 13:02:35 UTC) #5
benm (inactive)
We should probably have a crbug for this.
7 years, 9 months ago (2013-03-01 13:03:47 UTC) #6
mnaganov (inactive)
Thanks! We have b/7231897 for that. https://codereview.chromium.org/12378011/diff/5001/android_webview/browser/aw_devtools_delegate.cc File android_webview/browser/aw_devtools_delegate.cc (right): https://codereview.chromium.org/12378011/diff/5001/android_webview/browser/aw_devtools_delegate.cc#newcode36 android_webview/browser/aw_devtools_delegate.cc:36: // The call ...
7 years, 9 months ago (2013-03-01 13:11:02 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnaganov@chromium.org/12378011/10002
7 years, 9 months ago (2013-03-01 13:12:22 UTC) #8
mnaganov (inactive)
Committed patchset #3 manually as r185543 (presubmit successful).
7 years, 9 months ago (2013-03-01 16:23:44 UTC) #9
joth
Silly me, I forgot to press send yesterday, but some minor comments anyway in case ...
7 years, 9 months ago (2013-03-01 19:28:56 UTC) #10
tenumm
7 years, 5 months ago (2013-07-26 17:30:54 UTC) #11
Message was sent while issue was closed.
On 2013/03/01 19:28:56, joth wrote:
> Silly me, I forgot to press send yesterday, but some minor comments anyway in
> case you happen to be hacking in here again anytime...
> 
> Thanks for adding this!!
> 
>
https://codereview.chromium.org/12378011/diff/5001/android_webview/browser/aw...
> File android_webview/browser/aw_devtools_delegate.cc (right):
> 
>
https://codereview.chromium.org/12378011/diff/5001/android_webview/browser/aw...
> android_webview/browser/aw_devtools_delegate.cc:37:
> devtools_http_handler_->Stop();
> nit: I'd move the comment below the method:
>   devtools_http_handler_->Stop();
>   // WARNING: |this| has now been deleted by the method above.
> 
>
https://codereview.chromium.org/12378011/diff/5001/android_webview/browser/aw...
> android_webview/browser/aw_devtools_delegate.cc:54: "\"GET\",
\"/json/list?t=\"
> + new Date().getTime(), true);"
> nit: you can use single quote ' in JS which won't need escaping, so should be 
> more readable,.

How to run this with android webview apk?

Powered by Google App Engine
This is Rietveld 408576698