Add NULL check routine for frame on FrameView::scrollTo (N_SE-36624)
authorKyungTae Kim <ktf.kim@samsung.com>
Mon, 29 Apr 2013 06:24:46 +0000 (15:24 +0900)
committerKyungTae Kim <ktf.kim@samsung.com>
Mon, 29 Apr 2013 06:24:52 +0000 (15:24 +0900)
commit0f211c1276f2910470b5dd1a5753d65f79df22ba
tree4fd6afa568accfcd43f14e0866c14d67e27dc73e
parent4c2f2a96b9a0c2e4e50319f34c77082599ec92cd
Add NULL check routine for frame on FrameView::scrollTo (N_SE-36624)

 [Title] Add NULL check routine for frame on FrameView::scrollTo
 [Issue] N_SE-36624 (same with http://slp-info.sec.samsung.net/gerrit/#/c/179408/)
 [Problem] Segmentation Fault on FrameView::scrollPositionChanged() because the frame() is NULL.
 [Cause]
  FrameView::scrollTo was called from resetScrollbars during FrameView destruction.
  In this case, because the frame() can be NULL, the below codes that access the frame() shouldn't be executed.
 [Solution] Add NULL check routine.

Change-Id: I7eb507659901fd28c3e18969f3798cf84a1062b6
Source/WTF/wtf/Platform.h
Source/WebCore/page/FrameView.cpp