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

Issue 252683007: Protect MediaValuesCached creation when RenderView is missing (Closed)

Created:
6 years, 8 months ago by Yoav Weiss
Modified:
6 years, 7 months ago
Reviewers:
eseidel
CC:
blink-reviews, ed+blinkwatch_opera.com, ojan, dglazkov+blink, apavlov+blink_chromium.org, darktears, rune+blink, rwlbuis, esprehn
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Protect MediaValuesCached creation when RenderView is missing This CL protects MediaValuesCached creation with a frame which document doesn't have a render view. BUG=367210 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=173037

Patch Set 1 #

Total comments: 1

Patch Set 2 : Fixed fix #

Total comments: 1

Patch Set 3 : Removed parens #

Patch Set 4 : Turned view null check to an assert #

Patch Set 5 : Added null check for FrameView #

Patch Set 6 : Removed assert #

Patch Set 7 : Readded assert, and fixed build issue #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -1 line) Patch
M Source/core/css/MediaValuesCached.cpp View 1 2 3 4 5 6 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 17 (0 generated)
Yoav Weiss
This is a speculative fix for https://code.google.com/p/chromium/issues/detail?id=367210
6 years, 8 months ago (2014-04-25 23:24:13 UTC) #1
eseidel
not lgtm. https://codereview.chromium.org/252683007/diff/1/Source/core/css/MediaValues.cpp File Source/core/css/MediaValues.cpp (right): https://codereview.chromium.org/252683007/diff/1/Source/core/css/MediaValues.cpp#newcode36 Source/core/css/MediaValues.cpp:36: RenderStyle* style = (RenderStyle*)(frame->document()->renderView()); Huh!? That's not ...
6 years, 8 months ago (2014-04-25 23:53:24 UTC) #2
eseidel
It looks like the real error is here: https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit/Source/core/css/MediaValuesCached.cpp&q=MediaValuesCache&sq=package:chromium&l=25&type=cs That it's not checking if the ...
6 years, 8 months ago (2014-04-26 05:04:05 UTC) #3
Yoav Weiss
On 2014/04/26 05:04:05, eseidel wrote: > It looks like the real error is here: > ...
6 years, 8 months ago (2014-04-26 06:42:19 UTC) #4
Yoav Weiss
On 2014/04/26 06:42:19, Yoav Weiss wrote: > On 2014/04/26 05:04:05, eseidel wrote: > > It ...
6 years, 7 months ago (2014-04-28 20:12:20 UTC) #5
eseidel
I still don't understand how we have a document which does not have a RenderView ...
6 years, 7 months ago (2014-04-28 22:57:14 UTC) #6
Yoav Weiss
On 2014/04/28 22:57:14, eseidel wrote: > I still don't understand how we have a document ...
6 years, 7 months ago (2014-04-29 06:14:57 UTC) #7
Yoav Weiss
On 2014/04/29 06:14:57, Yoav Weiss wrote: > On 2014/04/28 22:57:14, eseidel wrote: > > I ...
6 years, 7 months ago (2014-04-29 06:15:43 UTC) #8
eseidel
Renders can't exist w/o RenderStyles. The crash stack showed this as being part of XHR. ...
6 years, 7 months ago (2014-04-29 17:34:27 UTC) #9
Yoav Weiss
Added a null check for frame->view() (along with an ASSERT) as discussed on irc.
6 years, 7 months ago (2014-04-30 20:07:18 UTC) #10
Yoav Weiss
On 2014/04/30 20:07:18, Yoav Weiss wrote: > Added a null check for frame->view() (along with ...
6 years, 7 months ago (2014-04-30 20:17:09 UTC) #11
eseidel
lgtm
6 years, 7 months ago (2014-04-30 21:01:32 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoav@yoav.ws/252683007/100001
6 years, 7 months ago (2014-04-30 21:02:02 UTC) #13
Yoav Weiss
The CQ bit was unchecked by yoav@yoav.ws
6 years, 7 months ago (2014-04-30 21:08:21 UTC) #14
Yoav Weiss
The CQ bit was checked by yoav@yoav.ws
6 years, 7 months ago (2014-04-30 21:11:26 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoav@yoav.ws/252683007/120001
6 years, 7 months ago (2014-04-30 21:11:43 UTC) #16
commit-bot: I haz the power
6 years, 7 months ago (2014-04-30 22:15:18 UTC) #17
Message was sent while issue was closed.
Change committed as 173037

Powered by Google App Engine
This is Rietveld 408576698