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

Issue 12377051: [android_webview] Don't intercept resource and asset URLRequests. (Closed)

Created:
7 years, 9 months ago by mkosiba (inactive)
Modified:
7 years, 9 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, android-webview-reviews_chromium.org, benm (inactive)
Visibility:
Public.

Description

[android_webview] Don't intercept resource and asset URLRequests. WebViewClassic doesn't allow for request intercepting of resource and asset file:// URLRequests. This change makes AwContents exhibit the same behavior. BUG=179411 Touches only android code, builds fine on android trybots. NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=186723

Patch Set 1 #

Total comments: 8

Patch Set 2 : use request restart to fall-through to other handlers #

Total comments: 10

Patch Set 3 : ditch OpenInputStreamResult #

Patch Set 4 : add one DCHECK I missed #

Patch Set 5 : rebase, bring back accidentally deleted comment and remove unused method declaration #

Patch Set 6 : rebase #

Messages

Total messages: 15 (0 generated)
mkosiba (inactive)
This CL has two unfortunate consequences: 1) We have to check whether the resource and ...
7 years, 9 months ago (2013-03-01 18:12:00 UTC) #1
mkosiba (inactive)
https://codereview.chromium.org/12377051/diff/1/android_webview/native/android_protocol_handler.cc File android_webview/native/android_protocol_handler.cc (right): https://codereview.chromium.org/12377051/diff/1/android_webview/native/android_protocol_handler.cc#newcode233 android_webview/native/android_protocol_handler.cc:233: if (!reader_delegate->CanOpenInputStream(AttachCurrentThread(), request)) { Just thought of the right ...
7 years, 9 months ago (2013-03-01 18:21:00 UTC) #2
boliu
Man, the quirks of webviewclassic... https://codereview.chromium.org/12377051/diff/1/android_webview/browser/net/aw_url_request_context_getter.cc File android_webview/browser/net/aw_url_request_context_getter.cc (right): https://codereview.chromium.org/12377051/diff/1/android_webview/browser/net/aw_url_request_context_getter.cc#newcode78 android_webview/browser/net/aw_url_request_context_getter.cc:78: CreateCookieMonster(url_request_context_.get()); This bit is ...
7 years, 9 months ago (2013-03-01 18:44:11 UTC) #3
mnaganov (inactive)
https://codereview.chromium.org/12377051/diff/1/android_webview/browser/net/aw_url_request_context_getter.cc File android_webview/browser/net/aw_url_request_context_getter.cc (right): https://codereview.chromium.org/12377051/diff/1/android_webview/browser/net/aw_url_request_context_getter.cc#newcode165 android_webview/browser/net/aw_url_request_context_getter.cc:165: // Alternative approach: On 2013/03/01 18:44:11, boliu wrote: > ...
7 years, 9 months ago (2013-03-04 09:53:44 UTC) #4
boliu
https://codereview.chromium.org/12377051/diff/1/android_webview/browser/net/aw_url_request_context_getter.cc File android_webview/browser/net/aw_url_request_context_getter.cc (right): https://codereview.chromium.org/12377051/diff/1/android_webview/browser/net/aw_url_request_context_getter.cc#newcode165 android_webview/browser/net/aw_url_request_context_getter.cc:165: // Alternative approach: On 2013/03/04 09:53:44, Mikhail Naganov (Chromium) ...
7 years, 9 months ago (2013-03-04 19:55:46 UTC) #5
mkosiba (inactive)
On 2013/03/04 19:55:46, boliu wrote: > https://codereview.chromium.org/12377051/diff/1/android_webview/browser/net/aw_url_request_context_getter.cc > File android_webview/browser/net/aw_url_request_context_getter.cc (right): > > https://codereview.chromium.org/12377051/diff/1/android_webview/browser/net/aw_url_request_context_getter.cc#newcode165 > ...
7 years, 9 months ago (2013-03-05 16:24:56 UTC) #6
mkosiba (inactive)
Ok. New version is out for review. The two changes from the previous iteration are: ...
7 years, 9 months ago (2013-03-05 16:34:43 UTC) #7
boliu
https://codereview.chromium.org/12377051/diff/9001/android_webview/browser/net/android_stream_reader_url_request_job.cc File android_webview/browser/net/android_stream_reader_url_request_job.cc (right): https://codereview.chromium.org/12377051/diff/9001/android_webview/browser/net/android_stream_reader_url_request_job.cc#newcode126 android_webview/browser/net/android_stream_reader_url_request_job.cc:126: base::Passed(&delegate_), How bad is it to make delegate RefCountedThreadSafe..? ...
7 years, 9 months ago (2013-03-06 02:30:18 UTC) #8
mnaganov (inactive)
https://codereview.chromium.org/12377051/diff/9001/android_webview/browser/net/android_stream_reader_url_request_job.cc File android_webview/browser/net/android_stream_reader_url_request_job.cc (right): https://codereview.chromium.org/12377051/diff/9001/android_webview/browser/net/android_stream_reader_url_request_job.cc#newcode75 android_webview/browser/net/android_stream_reader_url_request_job.cc:75: struct AndroidStreamReaderURLRequestJob::OpenInputStreamResult { Is this about C++ or Java ...
7 years, 9 months ago (2013-03-06 09:26:47 UTC) #9
mkosiba (inactive)
https://codereview.chromium.org/12377051/diff/9001/android_webview/browser/net/android_stream_reader_url_request_job.cc File android_webview/browser/net/android_stream_reader_url_request_job.cc (right): https://codereview.chromium.org/12377051/diff/9001/android_webview/browser/net/android_stream_reader_url_request_job.cc#newcode75 android_webview/browser/net/android_stream_reader_url_request_job.cc:75: struct AndroidStreamReaderURLRequestJob::OpenInputStreamResult { On 2013/03/06 09:26:47, Mikhail Naganov (Chromium) ...
7 years, 9 months ago (2013-03-06 19:05:27 UTC) #10
mnaganov (inactive)
lgtm
7 years, 9 months ago (2013-03-07 10:33:03 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkosiba@chromium.org/12377051/25001
7 years, 9 months ago (2013-03-07 11:14:52 UTC) #12
commit-bot: I haz the power
Failed to apply patch for android_webview/browser/net/aw_url_request_context_getter.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 9 months ago (2013-03-07 13:20:39 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkosiba@chromium.org/12377051/40001
7 years, 9 months ago (2013-03-07 16:13:44 UTC) #14
commit-bot: I haz the power
7 years, 9 months ago (2013-03-07 16:14:49 UTC) #15
Message was sent while issue was closed.
Change committed as 186723

Powered by Google App Engine
This is Rietveld 408576698