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

Issue 2563313002: Clear the owner element's widget in Document::shutdown(). (Closed)

Created:
4 years ago by Mariusz Mlynski
Modified:
4 years ago
Reviewers:
esprehn, sof, dcheng
CC:
blink-reviews, chromium-reviews, haraken
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Clear the owner element's widget in Document::shutdown(). FrameView::dispose() doesn't guarantee that the owner's widget is cleared and this could be problematic when it's overwritten in LocalFrame::createView() a short time later. BUG=673170 Committed: https://crrev.com/71b91a424a00dce5ff5ff4cf2e7b52fc70136f36 Cr-Commit-Position: refs/heads/master@{#438977}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Expanded the comment. #

Patch Set 3 : Missing semicolon. #

Total comments: 2

Patch Set 4 : Clear the widget in Document::shutdown(). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -2 lines) Patch
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 2 3 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 37 (12 generated)
Mariusz Mlynski
On 2016/12/12 23:17:10, commit-bot: I haz the power wrote: > Dry run: Try jobs failed ...
4 years ago (2016-12-12 23:49:01 UTC) #6
dcheng
On 2016/12/12 23:49:01, Mariusz Mlynski wrote: > On 2016/12/12 23:17:10, commit-bot: I haz the power ...
4 years ago (2016-12-13 01:00:43 UTC) #7
dcheng
I've been reading over this, and I haven't really been able to convince myself that ...
4 years ago (2016-12-13 07:43:40 UTC) #9
sof
On 2016/12/13 07:43:40, dcheng wrote: > I've been reading over this, and I haven't really ...
4 years ago (2016-12-13 08:22:16 UTC) #10
Mariusz Mlynski
On 2016/12/13 07:43:40, dcheng wrote: > I've been reading over this, and I haven't really ...
4 years ago (2016-12-13 23:43:08 UTC) #11
esprehn
Lgtm with some comments. https://codereview.chromium.org/2563313002/diff/1/third_party/WebKit/Source/core/frame/FrameView.cpp File third_party/WebKit/Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/2563313002/diff/1/third_party/WebKit/Source/core/frame/FrameView.cpp#newcode354 third_party/WebKit/Source/core/frame/FrameView.cpp:354: // points to another Widget. ...
4 years ago (2016-12-13 23:46:22 UTC) #13
Mariusz Mlynski
https://codereview.chromium.org/2563313002/diff/1/third_party/WebKit/Source/core/frame/FrameView.cpp File third_party/WebKit/Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/2563313002/diff/1/third_party/WebKit/Source/core/frame/FrameView.cpp#newcode354 third_party/WebKit/Source/core/frame/FrameView.cpp:354: // points to another Widget. See https://crbug.com/673170 for an ...
4 years ago (2016-12-14 00:18:03 UTC) #14
esprehn
On 2016/12/14 at 00:18:03, marius.mlynski wrote: > https://codereview.chromium.org/2563313002/diff/1/third_party/WebKit/Source/core/frame/FrameView.cpp > File third_party/WebKit/Source/core/frame/FrameView.cpp (right): > > https://codereview.chromium.org/2563313002/diff/1/third_party/WebKit/Source/core/frame/FrameView.cpp#newcode354 ...
4 years ago (2016-12-14 02:07:38 UTC) #15
dcheng
lgtm https://codereview.chromium.org/2563313002/diff/40001/third_party/WebKit/Source/core/frame/FrameView.cpp File third_party/WebKit/Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/2563313002/diff/40001/third_party/WebKit/Source/core/frame/FrameView.cpp#newcode358 third_party/WebKit/Source/core/frame/FrameView.cpp:358: // DCHECK(ownerElement->ownedWidget() == this); Nit: let's remove commented ...
4 years ago (2016-12-14 02:23:01 UTC) #16
Mariusz Mlynski
https://codereview.chromium.org/2563313002/diff/40001/third_party/WebKit/Source/core/frame/FrameView.cpp File third_party/WebKit/Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/2563313002/diff/40001/third_party/WebKit/Source/core/frame/FrameView.cpp#newcode358 third_party/WebKit/Source/core/frame/FrameView.cpp:358: // DCHECK(ownerElement->ownedWidget() == this); On 2016/12/14 02:23:00, dcheng wrote: ...
4 years ago (2016-12-14 02:36:50 UTC) #17
dcheng
On 2016/12/14 02:36:50, Mariusz Mlynski wrote: > https://codereview.chromium.org/2563313002/diff/40001/third_party/WebKit/Source/core/frame/FrameView.cpp > File third_party/WebKit/Source/core/frame/FrameView.cpp (right): > > https://codereview.chromium.org/2563313002/diff/40001/third_party/WebKit/Source/core/frame/FrameView.cpp#newcode358 ...
4 years ago (2016-12-14 03:44:46 UTC) #18
esprehn
In blink we often leave commented out asserts with an explanation saying why we can't ...
4 years ago (2016-12-14 03:49:45 UTC) #19
dcheng
On 2016/12/14 03:49:45, esprehn wrote: > In blink we often leave commented out asserts with ...
4 years ago (2016-12-14 03:51:29 UTC) #20
Mariusz Mlynski
On 2016/12/14 03:44:46, dcheng wrote: > More importantly, I still haven't convinced myself this is ...
4 years ago (2016-12-14 08:38:29 UTC) #21
dcheng
On 2016/12/14 08:38:29, Mariusz Mlynski wrote: > On 2016/12/14 03:44:46, dcheng wrote: > > More ...
4 years ago (2016-12-14 17:18:35 UTC) #22
Mariusz Mlynski
On 2016/12/14 17:18:35, dcheng wrote: > On 2016/12/14 08:38:29, Mariusz Mlynski wrote: > > On ...
4 years ago (2016-12-14 20:18:13 UTC) #23
dcheng
On 2016/12/14 20:18:13, Mariusz Mlynski wrote: > On 2016/12/14 17:18:35, dcheng wrote: > > On ...
4 years ago (2016-12-15 09:57:23 UTC) #24
Mariusz Mlynski
On 2016/12/15 09:57:23, dcheng wrote: > > How about we call ownerElement->setWidget(null) directly from > ...
4 years ago (2016-12-15 10:52:28 UTC) #26
dcheng
LGTM
4 years ago (2016-12-15 10:56:29 UTC) #27
Mariusz Mlynski
@esprehn: does it still LG?
4 years ago (2016-12-15 20:10:07 UTC) #28
esprehn
lgtm
4 years ago (2016-12-15 21:49:26 UTC) #29
esprehn
Btw thanks for adding the great comments!
4 years ago (2016-12-15 21:49:44 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2563313002/60001
4 years ago (2016-12-15 21:51:32 UTC) #32
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-12-16 01:48:46 UTC) #35
commit-bot: I haz the power
4 years ago (2016-12-16 01:51:03 UTC) #37
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/71b91a424a00dce5ff5ff4cf2e7b52fc70136f36
Cr-Commit-Position: refs/heads/master@{#438977}

Powered by Google App Engine
This is Rietveld 408576698