WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
58382
Infinite recursion in WebHTMLView executeSavedKeypressCommands
https://bugs.webkit.org/show_bug.cgi?id=58382
Summary
Infinite recursion in WebHTMLView executeSavedKeypressCommands
Enrica Casucci
Reported
2011-04-12 15:06:44 PDT
Execution of some editing commands could trigger a call to selectedRange that internally calls executeSavedKeypressCommands creating an infinite recursion.
Attachments
Patch
(5.70 KB, patch)
2011-04-12 15:12 PDT
,
Enrica Casucci
ap
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Enrica Casucci
Comment 1
2011-04-12 15:06:57 PDT
<
rdar://problem/9239370
>
Enrica Casucci
Comment 2
2011-04-12 15:12:39 PDT
Created
attachment 89281
[details]
Patch
Alexey Proskuryakov
Comment 3
2011-04-12 15:34:42 PDT
Comment on
attachment 89281
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=89281&action=review
> Source/WebKit2/UIProcess/API/mac/WKView.mm:1183 > + // We could be called again if the execution of one command triggers a call to selectedRange.
I would add: "In this case, the state is up to date, and we don't need to execute any more saved commands to return a result"
Enrica Casucci
Comment 4
2011-04-12 15:42:55 PDT
(In reply to
comment #3
)
> (From update of
attachment 89281
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=89281&action=review
> > > Source/WebKit2/UIProcess/API/mac/WKView.mm:1183 > > + // We could be called again if the execution of one command triggers a call to selectedRange. > > I would add: "In this case, the state is up to date, and we don't need to execute any more saved commands to return a result"
Will do. thank you!
Enrica Casucci
Comment 5
2011-04-12 15:49:30 PDT
http://trac.webkit.org/changeset/83655
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