WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
57294
Crash when closing "Add Bookmark" Dialog using the Enter Key
https://bugs.webkit.org/show_bug.cgi?id=57294
Summary
Crash when closing "Add Bookmark" Dialog using the Enter Key
Brian Weinstein
Reported
2011-03-28 19:31:13 PDT
If a WebView is set to close using the Enter Key (if it was a dialog that closes when you press enter), it can crash when closed this way. The FrameView isn't protected in EventHandler::keyEvent, like it is in EventHandler::handleMousePressEvent, EventHandler::handleMouseDoubleClickEvent, EventHandler::handleMouseMoveEvent, EventHandler::handleMouseReleaseEvent, and EventHandler::handleWheelEvent. <
rdar://problem/9044756
>
Attachments
[PATCH] Fix
(1.32 KB, patch)
2011-03-28 19:33 PDT
,
Brian Weinstein
darin
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Brian Weinstein
Comment 1
2011-03-28 19:33:39 PDT
Created
attachment 87249
[details]
[PATCH] Fix
Darin Adler
Comment 2
2011-03-28 20:05:50 PDT
Comment on
attachment 87249
[details]
[PATCH] Fix It’s not at all clear why we protect the FrameView and not some other reference-counted object.
Brian Weinstein
Comment 3
2011-03-28 20:15:01 PDT
(In reply to
comment #2
)
> (From update of
attachment 87249
[details]
) > It’s not at all clear why we protect the FrameView and not some other reference-counted object.
I'm not sure either. I was going by existing style w/ other functions in the class + it fixed the crash. I can talk to someone about it later tonight or in the morning before landing.
Adam Roben (:aroben)
Comment 4
2011-03-29 04:49:51 PDT
Comment on
attachment 87249
[details]
[PATCH] Fix Is it possible to make a test for this? If not a test for run-webkit-tests, then maybe one for run-api-tests?
Brian Weinstein
Comment 5
2011-03-29 14:01:54 PDT
(In reply to
comment #4
)
> (From update of
attachment 87249
[details]
) > Is it possible to make a test for this? If not a test for run-webkit-tests, then maybe one for run-api-tests?
I tried making a test that opens a window using window.open, and that window is closed by any key-press, but that didn't reproduce the crash.
Alexey Proskuryakov
Comment 6
2011-03-29 14:05:46 PDT
> I tried making a test that opens a window using window.open, and that window is closed by any key-press, but that didn't reproduce the crash.
Not sure if it's worth spending more time on this, but the inability to make a test suggests that there is some general difference between normal web views and those the problem was observed with, and that difference would be good to find and eliminate.
Brian Weinstein
Comment 7
2011-03-30 12:45:37 PDT
Adding some additional steps to reproduce: 1) Go to any page (
http://reddit.com
- was used for testing). 2) Click the + button in the URL field, to add a bookmark 3) Press Enter to close the "Add Bookmark" Dialog
Brian Weinstein
Comment 8
2011-03-30 12:58:49 PDT
Landed in
r82487
.
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