Summary: | --webkit-visual-word crash when create legacy position for shadowRoot | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Xiaomei Ji <xji> | ||||
Component: | HTML Editing | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | amir.aharoni, rniwa | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Bug Depends on: | |||||||
Bug Blocks: | 25298 | ||||||
Attachments: |
|
Description
Xiaomei Ji
2011-11-04 17:26:39 PDT
Created attachment 113740 [details]
patch w/ layout test
Comment on attachment 113740 [details] patch w/ layout test View in context: https://bugs.webkit.org/attachment.cgi?id=113740&action=review > LayoutTests/editing/selection/move-by-word-visually-crash-test-textarea.html:4 > + try { Why do we need try? > LayoutTests/editing/selection/move-by-word-visually-crash-test-textarea.html:16 > + sel = window.getSelection(); > + sel.modify("move", "left", "-webkit-visual-word"); > + sel.modify("move", "left", "-webkit-visual-word"); This can be written as: getSelection().modify("move", "left", "-webkit-visual-word"); getSelection().modify("move", "left", "-webkit-visual-word"); Committed r99886: <http://trac.webkit.org/changeset/99886> |