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

Issue 397103006: Revert 283572 "Changes to RenderFrameProxy:" (Closed)

Created:
6 years, 5 months ago by viettrungluu
Modified:
6 years, 5 months ago
Reviewers:
ncarter (slow)
CC:
chromium-reviews
Visibility:
Public.

Description

Revert 283572 "Changes to RenderFrameProxy:" ASan failure (use-after-free) looks like it's due to this change): http://build.chromium.org/p/chromium.memory/builders/Linux%20ASan%20LSan%20Te... E.g.: @@@STEP_LOG_LINE@ReloadEmbedder@SUMMARY: AddressSanitizer: heap-use-after-free content/renderer/render_frame_proxy.cc:168 content::RenderFrameProxy::OnMessageReceived(IPC::Message const&)@@@j > Changes to RenderFrameProxy: > > - Add accessors: web_frame(), routing_id(), render_view(). > - Remove accessor: render_frame(). Where we do need to touch the > RenderFrame, we'll look it up by its routing ID. > - Small change to the CompositingHelper to use the new getters. > - Add a map to allow finding a RenderFrameProxy by its associated > blink::WebFrame. > - Introduce a second factory function and differentiate the two > factory functions according to the two ways RenderFrameProxies will > be created. The first is for when an extant local RenderFrame is > being swapped out and replaced with a new RenderFrameProxy. The > second is for when a RenderFrameProxy needs to be created without > displacing an existing RenderFrame, as shall occur once we mirror > the frame tree. > - This second factory function, which is uncalled at the moment, will > create WebRemoteFrames. Also there is stubbed out code in the first > factory function to create WebRemoteFrames. This code is in > preparation for eliminating the RenderFrame (and its attendant > WebLocalFrame) and having instead just a RenderFrameProxy. > - Add some defensive checks to prepare for when the render frame may > not exist, as will happen once the second factory function > enters use. > - Add an Init function so that code can be shared between the two > factory functions. > > As an adminstrative note, this patch is a chunk of nasko's > larger "use RenderFrameProxyHost" effor (issue 241223002) > > BUG=357747 > TEST=browsertests, http://csreis.github.io/tests/cross-site-iframe.html renders after going cross-site under --site-per-process > > Review URL: https://codereview.chromium.org/357043006 TBR=nick@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283608

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -170 lines) Patch
M trunk/src/content/renderer/browser_plugin/browser_plugin.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M trunk/src/content/renderer/child_frame_compositing_helper.h View 1 chunk +5 lines, -3 lines 0 comments Download
M trunk/src/content/renderer/child_frame_compositing_helper.cc View 1 chunk +8 lines, -7 lines 0 comments Download
M trunk/src/content/renderer/render_frame_impl.cc View 1 chunk +1 line, -2 lines 0 comments Download
M trunk/src/content/renderer/render_frame_proxy.h View 2 chunks +9 lines, -43 lines 0 comments Download
M trunk/src/content/renderer/render_frame_proxy.cc View 7 chunks +25 lines, -111 lines 0 comments Download
M trunk/src/content/renderer/render_view_impl.cc View 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
viettrungluu
6 years, 5 months ago (2014-07-17 01:36:54 UTC) #1
viettrungluu
Committed patchset #1 manually as r283608 (tree was closed).
6 years, 5 months ago (2014-07-17 01:38:21 UTC) #2
ncarter (slow)
6 years, 5 months ago (2014-07-17 16:06:42 UTC) #3
Thanks for reverting this, viet-trung.

On Wed, Jul 16, 2014 at 6:38 PM, <viettrungluu@chromium.org> wrote:

> Committed patchset #1 manually as r283608 (tree was closed).
>
> https://codereview.chromium.org/397103006/
>

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698