RESOLVED FIXED 224591
Deploy Ref/RefPtr in ReplaceSelectionCommand
https://bugs.webkit.org/show_bug.cgi?id=224591
Summary Deploy Ref/RefPtr in ReplaceSelectionCommand
Ryosuke Niwa
Reported 2021-04-14 20:34:15 PDT
We should use smart pointers everywhere in ReplaceSelectionCommand based on the new rule we came up with.
Attachments
Patch (30.99 KB, patch)
2021-04-14 20:36 PDT, Ryosuke Niwa
ews-feeder: commit-queue-
Fixed builds (31.30 KB, patch)
2021-04-14 21:03 PDT, Ryosuke Niwa
ews-feeder: commit-queue-
Ryosuke Niwa
Comment 1 2021-04-14 20:36:54 PDT
Jiewen Tan
Comment 2 2021-04-14 20:49:41 PDT
Comment on attachment 426071 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=426071&action=review LGTM. r=me. > Source/WebCore/editing/ReplaceSelectionCommand.cpp:562 > + ScriptDisallowedScope::InMainThread scriptDisallowedScope; Why do we need this here?
Ryosuke Niwa
Comment 3 2021-04-14 20:52:09 PDT
(In reply to Jiewen Tan from comment #2) > Comment on attachment 426071 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=426071&action=review > > LGTM. r=me. > > > Source/WebCore/editing/ReplaceSelectionCommand.cpp:562 > > + ScriptDisallowedScope::InMainThread scriptDisallowedScope; > > Why do we need this here? Because we're accessing the render objects. We don't want any script execution to happen there.
Ryosuke Niwa
Comment 4 2021-04-14 20:52:44 PDT
Huh, weird. Not sure why we didn't hit that compilation error locally.
Ryosuke Niwa
Comment 5 2021-04-14 21:03:28 PDT
Created attachment 426072 [details] Fixed builds
Ryosuke Niwa
Comment 6 2021-04-14 21:04:38 PDT
Comment on attachment 426072 [details] Fixed builds This has already been reviewed by Jiewen.
Ryosuke Niwa
Comment 7 2021-04-15 00:34:54 PDT
Radar WebKit Bug Importer
Comment 8 2021-04-15 00:35:16 PDT
Note You need to log in before you can comment on or make changes to this bug.