WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
19541
Null pointer in showModalDialog()
https://bugs.webkit.org/show_bug.cgi?id=19541
Summary
Null pointer in showModalDialog()
danceoffwithyourpantsoff
Reported
2008-06-13 17:38:50 PDT
A frame can out live it's page, for example when a frame is detached (so pageDestroyed() is called). We could still have a reference to the window from javascript. The patch is simple to check !frame and !frame->page()
Attachments
Proposed patch
(4.14 KB, patch)
2008-11-09 17:03 PST
,
Cameron Zwarich (cpst)
darin
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Mark Rowe (bdash)
Comment 1
2008-06-13 23:21:05 PDT
<
rdar://problem/6008014
>
Cameron Zwarich (cpst)
Comment 2
2008-11-07 17:40:23 PST
This shouldn't be hard to fix.
Cameron Zwarich (cpst)
Comment 3
2008-11-09 17:03:02 PST
Created
attachment 25010
[details]
Proposed patch
Darin Adler
Comment 4
2008-11-09 17:05:16 PST
Comment on
attachment 25010
[details]
Proposed patch I prefer to do page && page->chrome()->canRunModal() instead of a separate if statement. r=me
Cameron Zwarich (cpst)
Comment 5
2008-11-09 17:19:48 PST
Landed in
r38248
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug