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

Issue 135443002: Fix race condition introduced in r242200 where AwContentsIoThreadClient is queried before a subfram… (Closed)

Created:
6 years, 11 months ago by jam
Modified:
6 years, 11 months ago
CC:
chromium-reviews, android-webview-reviews_chromium.org, site-isolation-reviews_chromium.org
Visibility:
Public.

Description

Fix race condition introduced in r242200 where AwContentsIoThreadClient is queried before a subframe's entry is added. This happened because the entry was updated on the UI thread through WebContentsObserver::RenderFrameCreated. The race condition was that the IO thread could dispatch a resource request for that subframe before the map is updated. The fix is to send a message from the renderer to the IO thread when a subframe is created so that the map is updated before any resouce requests arrive. BUG=304341 R=mkosiba@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=244521

Patch Set 1 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -0 lines) Patch
M android_webview/browser/aw_content_browser_client.cc View 4 chunks +9 lines, -0 lines 0 comments Download
M android_webview/browser/aw_contents_io_thread_client.h View 1 chunk +5 lines, -0 lines 0 comments Download
M android_webview/common/render_view_messages.h View 1 chunk +5 lines, -0 lines 0 comments Download
M android_webview/native/aw_contents_io_thread_client_impl.cc View 1 chunk +16 lines, -0 lines 0 comments Download
M android_webview/renderer/aw_content_renderer_client.cc View 2 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
jam
6 years, 11 months ago (2014-01-12 18:58:35 UTC) #1
mkosiba (inactive)
many thanks! LGTM
6 years, 11 months ago (2014-01-13 16:47:14 UTC) #2
jam
On 2014/01/13 16:47:14, mkosiba wrote: > many thanks! LGTM np, thanks for finding that race
6 years, 11 months ago (2014-01-13 17:00:19 UTC) #3
jam
TBR Justin for the IPC change. hmm why is there owners check for android_webview IPC ...
6 years, 11 months ago (2014-01-13 17:03:42 UTC) #4
jschuh
On 2014/01/13 17:03:42, jam wrote: > TBR Justin for the IPC change. hmm why is ...
6 years, 11 months ago (2014-01-13 17:22:37 UTC) #5
jam
On 2014/01/13 17:22:37, Justin Schuh wrote: > On 2014/01/13 17:03:42, jam wrote: > > TBR ...
6 years, 11 months ago (2014-01-13 17:27:40 UTC) #6
jschuh
6 years, 11 months ago (2014-01-13 17:35:40 UTC) #7
Message was sent while issue was closed.
On 2014/01/13 17:27:40, jam wrote:
> On 2014/01/13 17:22:37, Justin Schuh wrote:
> > On 2014/01/13 17:03:42, jam wrote:
> > > TBR Justin for the IPC change. hmm why is there owners check for
> > android_webview
> > 
> > lgtm
> > 
> > > IPC since there is no sandbox there (single-process)?
> > 
> > I believe the diff is generated by a script, and the script may not know
that.
> 
> What diff do you mean?

Sorry, by "diff" I meant the CL when we add new owners. I think @tsepez has been
handling that, so I'll ask when he gets in.

Powered by Google App Engine
This is Rietveld 408576698