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

Issue 2398733004: Do not SendPasswordForms when LocalFrame is being detached (Closed)

Created:
4 years, 2 months ago by kojii
Modified:
4 years, 2 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, browser-components-watch_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, estade+watch_chromium.org, gavinp+loader_chromium.org, gcasto+watchlist_chromium.org, jam, Nate Chapin, jdonnelly+autofillwatch_chromium.org, kinuko+watch, loading-reviews_chromium.org, mlamouri+watch-content_chromium.org, rouslan+autofill_chromium.org, tyoshino+watch_chromium.org, vabr+watchlistautofill_chromium.org, vabr+watchlistpasswordmanager_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Do not SendPasswordForms when LocalFrame is being detached This patch stops PasswordAutofillAgent::SendPasswordForms() to enumerates forms in the document when LocalFrame is being detached. This patch does not address the root cause of issue 561873 nor issue 595078, but it is expected to reduce the crashes by large, and it is reasonable not to fill passwords when Page is being destroyed. BUG=561873, 595078, 654654 Committed: https://crrev.com/a398abc5085c5dc2d8db3076543072d1f196d668 Cr-Commit-Position: refs/heads/master@{#424692}

Patch Set 1 #

Total comments: 6

Patch Set 2 : isInStopAllLoaders -> isDetached #

Total comments: 1

Patch Set 3 : Rename to isFrameDetachedForSpecialOneOffStopTheCrashingHackBug561873() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -1 line) Patch
M components/autofill/content/renderer/password_autofill_agent.cc View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/LocalFrame.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalFrame.cpp View 1 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebLocalFrame.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 53 (23 generated)
esprehn
https://codereview.chromium.org/2398733004/diff/1/components/autofill/content/renderer/password_autofill_agent.cc File components/autofill/content/renderer/password_autofill_agent.cc (right): https://codereview.chromium.org/2398733004/diff/1/components/autofill/content/renderer/password_autofill_agent.cc#newcode949 components/autofill/content/renderer/password_autofill_agent.cc:949: blink::WebLocalFrame* frame = render_frame()->GetWebFrame(); Why do we get here ...
4 years, 2 months ago (2016-10-07 06:55:23 UTC) #5
kojii
https://codereview.chromium.org/2398733004/diff/1/components/autofill/content/renderer/password_autofill_agent.cc File components/autofill/content/renderer/password_autofill_agent.cc (right): https://codereview.chromium.org/2398733004/diff/1/components/autofill/content/renderer/password_autofill_agent.cc#newcode949 components/autofill/content/renderer/password_autofill_agent.cc:949: blink::WebLocalFrame* frame = render_frame()->GetWebFrame(); On 2016/10/07 at 06:55:23, esprehn ...
4 years, 2 months ago (2016-10-07 07:03:01 UTC) #7
vabr (Chromium)
In general LGTM, because this will improve the current situation. If we can fix this ...
4 years, 2 months ago (2016-10-07 11:00:49 UTC) #10
kojii
https://codereview.chromium.org/2398733004/diff/1/components/autofill/content/renderer/password_autofill_agent.cc File components/autofill/content/renderer/password_autofill_agent.cc (right): https://codereview.chromium.org/2398733004/diff/1/components/autofill/content/renderer/password_autofill_agent.cc#newcode949 components/autofill/content/renderer/password_autofill_agent.cc:949: blink::WebLocalFrame* frame = render_frame()->GetWebFrame(); On 2016/10/07 at 11:00:48, vabr ...
4 years, 2 months ago (2016-10-07 11:32:44 UTC) #11
kojii
https://codereview.chromium.org/2398733004/diff/1/components/autofill/content/renderer/password_autofill_agent.cc File components/autofill/content/renderer/password_autofill_agent.cc (right): https://codereview.chromium.org/2398733004/diff/1/components/autofill/content/renderer/password_autofill_agent.cc#newcode949 components/autofill/content/renderer/password_autofill_agent.cc:949: blink::WebLocalFrame* frame = render_frame()->GetWebFrame(); On 2016/10/07 at 11:00:48, vabr ...
4 years, 2 months ago (2016-10-07 11:45:08 UTC) #12
vabr (Chromium)
On 2016/10/07 11:45:08, kojii wrote: > https://codereview.chromium.org/2398733004/diff/1/components/autofill/content/renderer/password_autofill_agent.cc > File components/autofill/content/renderer/password_autofill_agent.cc (right): > > https://codereview.chromium.org/2398733004/diff/1/components/autofill/content/renderer/password_autofill_agent.cc#newcode949 > ...
4 years, 2 months ago (2016-10-07 12:05:42 UTC) #13
esprehn
Okay, can we get a tracking bug field to fix this more generally and a ...
4 years, 2 months ago (2016-10-08 03:06:53 UTC) #14
dcheng
So I'm the person who added this comment to stopAllLoaders(): // Warning: stopAllLoaders can and ...
4 years, 2 months ago (2016-10-08 05:45:00 UTC) #16
kojii
On 2016/10/08 at 05:45:00, dcheng wrote: > > Do you know which call to stopAllLoaders() ...
4 years, 2 months ago (2016-10-09 04:22:58 UTC) #17
dcheng
On 2016/10/09 04:22:58, kojii wrote: > On 2016/10/08 at 05:45:00, dcheng wrote: > > > ...
4 years, 2 months ago (2016-10-10 03:52:16 UTC) #18
kojii
A few changes from PS1: * Tracking bug filed http://crbug.com/654654 * Added comments * Changed ...
4 years, 2 months ago (2016-10-11 05:24:22 UTC) #27
kojii
it looks like didFinishLoad() should fire on cancel/closing, and it is observer's responsibility to plumb ...
4 years, 2 months ago (2016-10-11 09:09:11 UTC) #28
vabr (Chromium)
LGTM, thanks, for the care put into this CL and the associated discussion. I think ...
4 years, 2 months ago (2016-10-11 09:36:04 UTC) #29
esprehn
https://codereview.chromium.org/2398733004/diff/40001/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp File third_party/WebKit/Source/web/WebLocalFrameImpl.cpp (right): https://codereview.chromium.org/2398733004/diff/40001/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp#newcode2029 third_party/WebKit/Source/web/WebLocalFrameImpl.cpp:2029: if (!frame() || !frame()->client()) I'd prefer if the ->client() ...
4 years, 2 months ago (2016-10-11 22:45:52 UTC) #30
dcheng
How will we prevent more places from depending on isDetaching()? I'm worried that by the ...
4 years, 2 months ago (2016-10-11 22:47:56 UTC) #31
esprehn
On 2016/10/11 at 22:47:56, dcheng wrote: > How will we prevent more places from depending ...
4 years, 2 months ago (2016-10-11 22:55:31 UTC) #32
dcheng
On 2016/10/11 22:55:31, esprehn wrote: > On 2016/10/11 at 22:47:56, dcheng wrote: > > How ...
4 years, 2 months ago (2016-10-11 23:09:04 UTC) #33
kojii
On 2016/10/11 at 23:09:04, dcheng wrote: > On 2016/10/11 22:55:31, esprehn wrote: > > On ...
4 years, 2 months ago (2016-10-11 23:56:30 UTC) #34
dcheng
On 2016/10/11 23:56:30, kojii wrote: > On 2016/10/11 at 23:09:04, dcheng wrote: > > On ...
4 years, 2 months ago (2016-10-12 00:15:36 UTC) #35
kojii
2016/10/12 午前9:15 <dcheng@chromium.org>: > > > One suggestion that might simplify the plumbing is to ...
4 years, 2 months ago (2016-10-12 00:48:34 UTC) #36
kojii
2016/10/12 午前9:15 <dcheng@chromium.org>: > > > One suggestion that might simplify the plumbing is to ...
4 years, 2 months ago (2016-10-12 00:48:34 UTC) #37
esprehn
That all seems very high overhead, lets just give this a terrible name like isFrameDetachedForSpecialOneOffStopTheCrashingHackBug561873() ...
4 years, 2 months ago (2016-10-12 00:54:11 UTC) #38
kojii
On 2016/10/12 at 00:54:11, esprehn wrote: > That all seems very high overhead, lets just ...
4 years, 2 months ago (2016-10-12 01:30:57 UTC) #39
dcheng
On 2016/10/12 01:30:57, kojii wrote: > On 2016/10/12 at 00:54:11, esprehn wrote: > > That ...
4 years, 2 months ago (2016-10-12 02:53:19 UTC) #40
kojii
PTAL, renamed to isFrameDetachedForSpecialOneOffStopTheCrashingHackBug561873().
4 years, 2 months ago (2016-10-12 05:08:32 UTC) #44
dcheng
Blink LGTM, thanks!
4 years, 2 months ago (2016-10-12 05:15:39 UTC) #47
vabr (Chromium)
isFrameDetachedForSpecialOneOffStopTheCrashingHackBug561873 LGTM, thank you all for the very informative discussion and looking into this! Cheers, ...
4 years, 2 months ago (2016-10-12 07:56:17 UTC) #48
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/2398733004/60001
4 years, 2 months ago (2016-10-12 08:32:30 UTC) #50
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 2 months ago (2016-10-12 08:38:24 UTC) #51
commit-bot: I haz the power
4 years, 2 months ago (2016-10-12 08:39:46 UTC) #53
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/a398abc5085c5dc2d8db3076543072d1f196d668
Cr-Commit-Position: refs/heads/master@{#424692}

Powered by Google App Engine
This is Rietveld 408576698