RESOLVED FIXED 82699
[Refactoring] Move Selection from DOMWindow to TreeScope
https://bugs.webkit.org/show_bug.cgi?id=82699
Summary [Refactoring] Move Selection from DOMWindow to TreeScope
Shinya Kawanaka
Reported 2012-03-29 23:49:38 PDT
Since ShadowRoot will also manage its own version of Selection, it would be beautiful if Selection is owned by TreeScope instead of DOMWindow.
Attachments
WIP (10.49 KB, patch)
2012-05-09 23:07 PDT, Shinya Kawanaka
no flags
WIP (10.50 KB, patch)
2012-05-09 23:40 PDT, Shinya Kawanaka
no flags
WIP (10.54 KB, patch)
2012-05-10 00:46 PDT, Shinya Kawanaka
no flags
Patch (10.68 KB, patch)
2012-05-10 01:37 PDT, Shinya Kawanaka
no flags
Patch for landing (10.69 KB, patch)
2012-05-10 18:42 PDT, Shinya Kawanaka
no flags
Patch (10.48 KB, patch)
2012-05-11 00:29 PDT, Shinya Kawanaka
no flags
Shinya Kawanaka
Comment 1 2012-05-09 23:07:35 PDT
Early Warning System Bot
Comment 2 2012-05-09 23:22:33 PDT
Early Warning System Bot
Comment 3 2012-05-09 23:26:21 PDT
Build Bot
Comment 4 2012-05-09 23:32:44 PDT
Gyuyoung Kim
Comment 5 2012-05-09 23:33:20 PDT
Shinya Kawanaka
Comment 6 2012-05-09 23:40:38 PDT
Build Bot
Comment 7 2012-05-10 00:01:25 PDT
Build Bot
Comment 8 2012-05-10 00:12:35 PDT
Early Warning System Bot
Comment 9 2012-05-10 00:15:14 PDT
Early Warning System Bot
Comment 10 2012-05-10 00:26:49 PDT
Shinya Kawanaka
Comment 11 2012-05-10 00:46:54 PDT
Shinya Kawanaka
Comment 12 2012-05-10 01:37:32 PDT
Ryosuke Niwa
Comment 13 2012-05-10 01:49:04 PDT
Comment on attachment 141110 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=141110&action=review > Source/WebCore/dom/TreeScope.cpp:60 > + m_selection->disconnectTreeScope(); I would call it clearTreeScope.
Shinya Kawanaka
Comment 14 2012-05-10 01:57:27 PDT
(In reply to comment #13) > (From update of attachment 141110 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=141110&action=review > > > Source/WebCore/dom/TreeScope.cpp:60 > > + m_selection->disconnectTreeScope(); > > I would call it clearTreeScope. Thank you for very fast reviewing! I'll update the patch.
Shinya Kawanaka
Comment 15 2012-05-10 18:42:30 PDT
Created attachment 141309 [details] Patch for landing
Shinya Kawanaka
Comment 16 2012-05-10 18:45:09 PDT
WebKit Review Bot
Comment 17 2012-05-10 20:57:14 PDT
Re-opened since this is blocked by 86172
Shinya Kawanaka
Comment 19 2012-05-11 00:26:59 PDT
(In reply to comment #18) > It seems that cross-frame-access-selection.html was broken by the patch. > http://test-results.appspot.com/dashboards/flakiness_dashboard.html#showExpectations=true&showLargeExpectations=true&tests=http%2Ftests%2Fsecurity%2Fcross-frame-access-selection.html Thank you for notifying that! I've investigated the issue. Making DOMSelection non-DOMWindowProperty seems to cause that issue. I'll update the patch soon. I think this patch should be reviewed again.
Shinya Kawanaka
Comment 20 2012-05-11 00:29:02 PDT
WebKit Review Bot
Comment 21 2012-05-11 03:35:49 PDT
Comment on attachment 141344 [details] Patch Clearing flags on attachment: 141344 Committed r116746: <http://trac.webkit.org/changeset/116746>
WebKit Review Bot
Comment 22 2012-05-11 03:35:55 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.