WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
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
Details
Formatted Diff
Diff
WIP
(10.50 KB, patch)
2012-05-09 23:40 PDT
,
Shinya Kawanaka
no flags
Details
Formatted Diff
Diff
WIP
(10.54 KB, patch)
2012-05-10 00:46 PDT
,
Shinya Kawanaka
no flags
Details
Formatted Diff
Diff
Patch
(10.68 KB, patch)
2012-05-10 01:37 PDT
,
Shinya Kawanaka
no flags
Details
Formatted Diff
Diff
Patch for landing
(10.69 KB, patch)
2012-05-10 18:42 PDT
,
Shinya Kawanaka
no flags
Details
Formatted Diff
Diff
Patch
(10.48 KB, patch)
2012-05-11 00:29 PDT
,
Shinya Kawanaka
no flags
Details
Formatted Diff
Diff
Show Obsolete
(5)
View All
Add attachment
proposed patch, testcase, etc.
Shinya Kawanaka
Comment 1
2012-05-09 23:07:35 PDT
Created
attachment 141088
[details]
WIP
Early Warning System Bot
Comment 2
2012-05-09 23:22:33 PDT
Comment on
attachment 141088
[details]
WIP
Attachment 141088
[details]
did not pass qt-wk2-ews (qt): Output:
http://queues.webkit.org/results/12647828
Early Warning System Bot
Comment 3
2012-05-09 23:26:21 PDT
Comment on
attachment 141088
[details]
WIP
Attachment 141088
[details]
did not pass qt-ews (qt): Output:
http://queues.webkit.org/results/12646889
Build Bot
Comment 4
2012-05-09 23:32:44 PDT
Comment on
attachment 141088
[details]
WIP
Attachment 141088
[details]
did not pass win-ews (win): Output:
http://queues.webkit.org/results/12645954
Gyuyoung Kim
Comment 5
2012-05-09 23:33:20 PDT
Comment on
attachment 141088
[details]
WIP
Attachment 141088
[details]
did not pass efl-ews (efl): Output:
http://queues.webkit.org/results/12666058
Shinya Kawanaka
Comment 6
2012-05-09 23:40:38 PDT
Created
attachment 141092
[details]
WIP
Build Bot
Comment 7
2012-05-10 00:01:25 PDT
Comment on
attachment 141092
[details]
WIP
Attachment 141092
[details]
did not pass win-ews (win): Output:
http://queues.webkit.org/results/12644954
Build Bot
Comment 8
2012-05-10 00:12:35 PDT
Comment on
attachment 141092
[details]
WIP
Attachment 141092
[details]
did not pass mac-ews (mac): Output:
http://queues.webkit.org/results/12649947
Early Warning System Bot
Comment 9
2012-05-10 00:15:14 PDT
Comment on
attachment 141092
[details]
WIP
Attachment 141092
[details]
did not pass qt-wk2-ews (qt): Output:
http://queues.webkit.org/results/12666066
Early Warning System Bot
Comment 10
2012-05-10 00:26:49 PDT
Comment on
attachment 141092
[details]
WIP
Attachment 141092
[details]
did not pass qt-ews (qt): Output:
http://queues.webkit.org/results/12653824
Shinya Kawanaka
Comment 11
2012-05-10 00:46:54 PDT
Created
attachment 141102
[details]
WIP
Shinya Kawanaka
Comment 12
2012-05-10 01:37:32 PDT
Created
attachment 141110
[details]
Patch
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
Committed
r116715
: <
http://trac.webkit.org/changeset/116715
>
WebKit Review Bot
Comment 17
2012-05-10 20:57:14 PDT
Re-opened since this is blocked by 86172
Kent Tamura
Comment 18
2012-05-10 21:00:10 PDT
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
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
Created
attachment 141344
[details]
Patch
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.
Top of Page
Format For Printing
XML
Clone This Bug