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

Issue 309063005: Don't attempt to print an error message if there is no console. (Closed)

Created:
6 years, 6 months ago by mkosiba (inactive)
Modified:
6 years, 1 month ago
Reviewers:
eseidel
CC:
blink-reviews, dcheng
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Don't attempt to print an error message if there is no console. frameConsole can return null if the frame associated with DOMWindow is detached. BUG=376704

Patch Set 1 #

Patch Set 2 : add test #

Patch Set 3 : add test #

Patch Set 4 : remove a different check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -5 lines) Patch
A LayoutTests/http/tests/loading/navigate-detached-frame-window-does-not-crash.html View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
A + LayoutTests/http/tests/loading/navigate-detached-frame-window-does-not-crash-expected.txt View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M Source/core/frame/LocalDOMWindow.cpp View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
mkosiba (inactive)
Could you PTAL? The issue is that m_frame->host() is NULL which causes isCurrentlyDisplayedInFrame to return ...
6 years, 6 months ago (2014-06-02 17:00:00 UTC) #1
eseidel
We need a test.
6 years, 6 months ago (2014-06-02 17:04:12 UTC) #2
eseidel
Looks like there is a test on the bug, we just need to add it ...
6 years, 6 months ago (2014-06-02 17:08:07 UTC) #3
pfeldman
Can we miss some important messages this way? Actual console is associated with frame host, ...
6 years, 6 months ago (2014-06-02 17:25:47 UTC) #4
mkosiba (inactive)
On 2014/06/02 17:25:47, pfeldman_ooo wrote: > Can we miss some important messages this way? Actual ...
6 years, 6 months ago (2014-06-03 08:46:28 UTC) #5
mkosiba (inactive)
On 2014/06/02 17:08:07, eseidel wrote: > Looks like there is a test on the bug, ...
6 years, 6 months ago (2014-06-03 09:55:34 UTC) #6
eseidel
i'm confused as to what error message this test even makes to trigger the crash?
6 years, 6 months ago (2014-06-07 13:55:53 UTC) #7
mkosiba (inactive)
On 2014/06/07 13:55:53, eseidel (OOO until June 16) wrote: > i'm confused as to what ...
6 years, 6 months ago (2014-06-09 16:50:34 UTC) #8
mkosiba (inactive)
On 2014/06/09 16:50:34, mkosiba wrote: > On 2014/06/07 13:55:53, eseidel (OOO until June 16) wrote: ...
6 years, 6 months ago (2014-06-09 16:50:51 UTC) #9
pfeldman
> FrameConsole* DOMWindow::frameConsole() const > { > if (!isCurrentlyDisplayedInFrame()) > return 0; > return m_frame->page() ...
6 years, 6 months ago (2014-06-16 17:25:48 UTC) #10
mkosiba (inactive)
6 years, 6 months ago (2014-06-26 17:03:04 UTC) #11
On 2014/06/16 17:25:48, pfeldman wrote:
> > FrameConsole* DOMWindow::frameConsole() const
> > {
> >     if (!isCurrentlyDisplayedInFrame())
> >         return 0;
> >     return m_frame->page() ? m_frame->page()->console() : 0;
> > }
> 
> I think I was reviewing it, not authoring. In either case, I don't see why
this
> check is necessary.

Done, PTAL

Powered by Google App Engine
This is Rietveld 408576698