WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
REOPENED
122469
Clean up ScriptExecutionContext::Task and subclasses
https://bugs.webkit.org/show_bug.cgi?id=122469
Summary
Clean up ScriptExecutionContext::Task and subclasses
Anders Carlsson
Reported
2013-10-07 15:16:43 PDT
Clean up ScriptExecutionContext::Task and subclasses
Attachments
Patch
(78.94 KB, patch)
2013-10-07 15:19 PDT
,
Anders Carlsson
kling
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Anders Carlsson
Comment 1
2013-10-07 15:19:45 PDT
Created
attachment 213620
[details]
Patch
Andreas Kling
Comment 2
2013-10-07 15:26:01 PDT
Comment on
attachment 213620
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=213620&action=review
> Source/WebCore/Modules/webdatabase/Database.cpp:89 > + DerefContextTask(PassRefPtr<ScriptExecutionContext> context)
explicit
> Source/WebCore/Modules/webdatabase/Database.cpp:203 > + DeliverPendingCallbackTask(PassRefPtr<SQLTransaction> transaction)
explicit
> Source/WebCore/Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp:236 > + Vector<std::unique_ptr<ScriptExecutionContext::Task>> tasks = std::move(m_pendingTasks);
auto
> Source/WebCore/bindings/js/JSCallbackData.h:80 > + DeleteCallbackDataTask(JSCallbackData* data)
explicit
> Source/WebCore/dom/Document.cpp:4900 > - OwnPtr<Task> task = m_pendingTasks[0].release(); > + auto task = std::move(m_pendingTasks[0]); > m_pendingTasks.remove(0);
This code looks pretty inefficient, taking the first element out of a vector in a loop :|
> Source/WebCore/workers/WorkerMessagingProxy.cpp:156 > WorkerTerminateTask(WorkerMessagingProxy* messagingProxy)
explicit
> Source/WebCore/workers/WorkerMessagingProxy.cpp:213 > NotifyNetworkStateChangeTask(bool isOnLine)
explicit
Anders Carlsson
Comment 3
2013-10-07 15:37:36 PDT
Committed
r157061
: <
http://trac.webkit.org/changeset/157061
>
Darin Adler
Comment 4
2013-10-07 16:22:59 PDT
This broke the Windows build:
http://build.webkit.org/builders/Apple%20Win%20Release%20(Build)/builds/53127/steps/compile-webkit/logs/stdio/text
WebKit Commit Bot
Comment 5
2013-10-07 18:29:37 PDT
Re-opened since this is blocked by
bug 122479
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