OSDN Git Service

Fix crash in fast/frames/iframe-access-screen-of-deleted.html
authorBen Murdoch <benm@google.com>
Thu, 13 May 2010 10:51:29 +0000 (11:51 +0100)
committerBen Murdoch <benm@google.com>
Thu, 13 May 2010 10:51:29 +0000 (11:51 +0100)
commite99258ca6edd7c8df76ccf8842abfd7bff7c49a1
tree301eccc840297cbb3bd4fb40d340c50f6f3ca061
parentcae38efe66aa87d4dbcc096e0d59574e6f7122d7
Fix crash in fast/frames/iframe-access-screen-of-deleted.html

This is a new layout test and triggers a crash inside screenRect() by
accessing the null page pointer. Other platform implementations perform
a null check on page in this function, so we now do the same to prevent
the crash.

Change-Id: I2403d7adc157daae69f6fb53bbbf212d9d04341c
WebCore/platform/android/ScreenAndroid.cpp