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

Issue 2272043003: frame()->host() may be null in ScreenOrientationController::pageVisibilityChanged (Closed)

Created:
4 years, 3 months ago by haraken
Modified:
4 years, 3 months ago
CC:
chromium-reviews, mlamouri+watch-blink_chromium.org, blink-reviews, mlamouri+watch-screen-orientation_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

frame()->host() may be null in ScreenOrientationController::pageVisibilityChanged This CL adds a check to isActiveAndVisible() so that ScreenOrientationController::pageVisibilityChanged don't access frame()->host() which is already null. BUG=640719 Committed: https://crrev.com/1014f29772853eec10675e2febb6e0e8561cf440 Cr-Commit-Position: refs/heads/master@{#414301}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -1 line) Patch
M third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.cpp View 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 14 (6 generated)
haraken
PTAL
4 years, 3 months ago (2016-08-25 02:22:32 UTC) #3
dcheng
On 2016/08/25 02:22:32, haraken wrote: > PTAL It's a little surprising that we don't proactively ...
4 years, 3 months ago (2016-08-25 02:31:42 UTC) #5
haraken
On 2016/08/25 02:31:42, dcheng wrote: > On 2016/08/25 02:22:32, haraken wrote: > > PTAL > ...
4 years, 3 months ago (2016-08-25 03:54:43 UTC) #6
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/2272043003/1
4 years, 3 months ago (2016-08-25 03:55:21 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 3 months ago (2016-08-25 03:59:17 UTC) #10
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/1014f29772853eec10675e2febb6e0e8561cf440 Cr-Commit-Position: refs/heads/master@{#414301}
4 years, 3 months ago (2016-08-25 04:01:07 UTC) #12
dcheng
On 2016/08/25 03:54:43, haraken wrote: > On 2016/08/25 02:31:42, dcheng wrote: > > On 2016/08/25 ...
4 years, 3 months ago (2016-08-25 04:02:51 UTC) #13
haraken
4 years, 3 months ago (2016-08-25 04:48:56 UTC) #14
Message was sent while issue was closed.
On 2016/08/25 04:02:51, dcheng wrote:
> On 2016/08/25 03:54:43, haraken wrote:
> > On 2016/08/25 02:31:42, dcheng wrote:
> > > On 2016/08/25 02:22:32, haraken wrote:
> > > > PTAL
> > > 
> > > It's a little surprising that we don't proactively set m_frame to null
once
> > the
> > > DOMWindowProperty is detached.
> > 
> > Yeah, this makes sense. I can try that but it would be better to just
replace
> it
> > with ContextLifecycleObserver.
> > 
> > (Note: The current ContextLifecycleObserver doesn't proactively clear
> m_context
> > when the context is destroyed and it seems not easy to change that
behavior.)
> > 
> > > 
> > > The fix LGTM, but maybe we'd be better off just making this a
> > > ContextLifecycleObserver, since that's the eventual plan.
> 
> I wonder if it's redundant to check both m_frame and m_client? It seems like
> m_client will always go null before m_frame.

You're right. Uploaded a fix: https://codereview.chromium.org/2273193003

Powered by Google App Engine
This is Rietveld 408576698