RESOLVED FIXED 62955
RefPtr misused as argument type in a few classes
https://bugs.webkit.org/show_bug.cgi?id=62955
Summary RefPtr misused as argument type in a few classes
Darin Adler
Reported 2011-06-19 13:49:04 PDT
RefPtr misused as argument type in a few classes
Attachments
Patch (33.23 KB, patch)
2011-06-19 14:02 PDT, Darin Adler
no flags
Patch (22.54 KB, patch)
2011-06-21 18:01 PDT, Darin Adler
no flags
Patch (22.84 KB, patch)
2011-06-23 13:09 PDT, Darin Adler
no flags
Darin Adler
Comment 1 2011-06-19 14:02:10 PDT
Darin Adler
Comment 2 2011-06-19 14:07:36 PDT
Comment on attachment 97727 [details] Patch Clearing flags on attachment: 97727 Committed r89223: <http://trac.webkit.org/changeset/89223>
Darin Adler
Comment 3 2011-06-19 14:07:40 PDT
All reviewed patches have been landed. Closing bug.
Ryosuke Niwa
Comment 4 2011-06-19 17:57:01 PDT
This patch appears to have broken builds on almost all ports/platforms.
Mark Rowe (bdash)
Comment 5 2011-06-19 19:26:54 PDT
Rolled out in r89224 due to the mass breakage that was caused.
Darin Adler
Comment 6 2011-06-19 19:33:18 PDT
Oops, sorry. Thanks for rolling it out. No big rush to fix these, I guess I’ll do it later.
Ryosuke Niwa
Comment 7 2011-06-19 19:36:14 PDT
Here's error: http://build.webkit.org/builders/SnowLeopard%20Intel%20Debug%20%28Build%29/builds/831/steps/compile-webkit/logs/stdio InspectorBackendDispatcher.cpp was failing to compile because InspectorBackendDispatcher::CSS_setPropertyText was passing RefPtr to setPropertyText, which now takes a raw pointer. InspectorBackendDispatcher.cpp is generated by CodeGeneratorInspector.pm and the function called typeTraits seems to be responsible for generating type-specific argument but I couldn't figure out how to fix it. If anything the code that generated InspectorBackendDispatcher::CSS_setPropertyText is around line 460 in CodeGeneratorInspector.pm.
Darin Adler
Comment 8 2011-06-19 19:39:29 PDT
I didn’t realize there was a code generator for the inspector. It’s not urgent to fix this. I can land all the non-inspector parts of this some time.
Eric Seidel (no email)
Comment 9 2011-06-19 22:06:47 PDT
(In reply to comment #8) > I didn’t realize there was a code generator for the inspector. It’s not urgent to fix this. I can land all the non-inspector parts of this some time. The inspector also has its very own cookie parser, and javascript object model... just in case.
Darin Adler
Comment 10 2011-06-21 18:01:48 PDT
Darin Adler
Comment 11 2011-06-21 18:02:36 PDT
Removed the inspector part of the patch.
WebKit Review Bot
Comment 12 2011-06-21 19:35:25 PDT
The commit-queue encountered the following flaky tests while processing attachment 98091 [details]: fast/forms/checkValidity-cancel.html bug 63111 (author: tkent@chromium.org) The commit-queue is continuing to process your patch.
WebKit Review Bot
Comment 13 2011-06-21 19:36:58 PDT
Comment on attachment 98091 [details] Patch Clearing flags on attachment: 98091 Committed r89402: <http://trac.webkit.org/changeset/89402>
WebKit Review Bot
Comment 14 2011-06-21 19:37:03 PDT
All reviewed patches have been landed. Closing bug.
Ryosuke Niwa
Comment 16 2011-06-22 07:51:40 PDT
Comment on attachment 98091 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=98091&action=review > Source/WebCore/websockets/WorkerThreadableWebSocketChannel.cpp:268 > -void WorkerThreadableWebSocketChannel::Bridge::mainThreadCreateWebSocketChannel(ScriptExecutionContext* context, Bridge* thisPtr, RefPtr<ThreadableWebSocketChannelClientWrapper> clientWrapper, const String& taskMode, const KURL& url, const String& protocol) > +void WorkerThreadableWebSocketChannel::Bridge::mainThreadCreateWebSocketChannel(ScriptExecutionContext* context, Bridge* thisPtr, PassRefPtr<ThreadableWebSocketChannelClientWrapper> clientWrapper, const String& taskMode, const KURL& url, const String& protocol) Now I see the problem. clientWrapper is passed to Peer::create and createCallbackTask.
Darin Adler
Comment 17 2011-06-22 09:29:00 PDT
(In reply to comment #16) > > +void WorkerThreadableWebSocketChannel::Bridge::mainThreadCreateWebSocketChannel(ScriptExecutionContext* context, Bridge* thisPtr, PassRefPtr<ThreadableWebSocketChannelClientWrapper> clientWrapper, const String& taskMode, const KURL& url, const String& protocol) > > Now I see the problem. clientWrapper is passed to Peer::create and createCallbackTask. So that function needs to use the prp idiom.
Darin Adler
Comment 18 2011-06-22 09:29:23 PDT
Anyone know why the commit-bot and the cr-linux EWS bot did not catch that?
Ryosuke Niwa
Comment 19 2011-06-22 09:34:24 PDT
(In reply to comment #18) > Anyone know why the commit-bot and the cr-linux EWS bot did not catch that? commit-queue uses Chromium Linux bot but Chromium disables workers' tests in DRT because they require multiple processes. commit-queue also won't catch any JSC regressions because Chromium uses V8 although I had never seen JSC folks using commit-queue before the switch anyway.
Darin Adler
Comment 20 2011-06-22 09:35:48 PDT
(In reply to comment #19) > I had never seen JSC folks using commit-queue before the switch anyway. What? If by "JSC folks" you mean "anyone not working on Chromium" then there have been 100s of JSC folks using commit-queue. I guess you mean people working directly on the JavaScript engine.
Ryosuke Niwa
Comment 21 2011-06-22 09:39:21 PDT
(In reply to comment #20) > (In reply to comment #19) > > I had never seen JSC folks using commit-queue before the switch anyway. > > What? If by "JSC folks" you mean "anyone not working on Chromium" then there have been 100s of JSC folks using commit-queue. > > I guess you mean people working directly on the JavaScript engine. I meant people working on JavaScriptCore.
Darin Adler
Comment 22 2011-06-23 13:09:59 PDT
Darin Adler
Comment 23 2011-06-23 13:10:44 PDT
New patch fixes the prp mistake in WorkerThreadableWebSocketChannel::Bridge::mainThreadCreateWebSocketChannel that Ryosuke spotted for me and is the reason this broke the build.
WebKit Review Bot
Comment 24 2011-06-23 14:30:29 PDT
Comment on attachment 98385 [details] Patch Clearing flags on attachment: 98385 Committed r89613: <http://trac.webkit.org/changeset/89613>
WebKit Review Bot
Comment 25 2011-06-23 14:30:35 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.