Changeset 290445 in webkit


Ignore:
Timestamp:
Feb 24, 2022, 11:41:30 AM (4 years ago)
Author:
Chris Dumez
Message:

Fix bad logging in SharedWorkerObjectConnection::notifyWorkerObjectOfLoadCompletion()
https://bugs.webkit.org/show_bug.cgi?id=237146

Reviewed by Geoffrey Garen.

Fix bad logging in SharedWorkerObjectConnection::notifyWorkerObjectOfLoadCompletion().
It was logging an error even when the load succeeded.

  • workers/shared/SharedWorkerObjectConnection.cpp:

(WebCore::SharedWorkerObjectConnection::notifyWorkerObjectOfLoadCompletion):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r290443 r290445  
     12022-02-24  Chris Dumez  <cdumez@apple.com>
     2
     3        Fix bad logging in SharedWorkerObjectConnection::notifyWorkerObjectOfLoadCompletion()
     4        https://bugs.webkit.org/show_bug.cgi?id=237146
     5
     6        Reviewed by Geoffrey Garen.
     7
     8        Fix bad logging in SharedWorkerObjectConnection::notifyWorkerObjectOfLoadCompletion().
     9        It was logging an error even when the load succeeded.
     10
     11        * workers/shared/SharedWorkerObjectConnection.cpp:
     12        (WebCore::SharedWorkerObjectConnection::notifyWorkerObjectOfLoadCompletion):
     13
    1142022-02-24  Kate Cheney  <katherine_cheney@apple.com>
    215
  • trunk/Source/WebCore/workers/shared/SharedWorkerObjectConnection.cpp

    r289469 r290445  
    7373    ASSERT(isMainThread());
    7474    auto* workerObject = SharedWorker::fromIdentifier(sharedWorkerObjectIdentifier);
    75     CONNECTION_RELEASE_LOG_ERROR("notifyWorkerObjectOfLoadCompletion: sharedWorkerObjectIdentifier=%{public}s, worker=%p, success=%d", sharedWorkerObjectIdentifier.toString().utf8().data(), workerObject, error.isNull());
     75    if (error.isNull())
     76        CONNECTION_RELEASE_LOG("notifyWorkerObjectOfLoadCompletion: sharedWorkerObjectIdentifier=%{public}s, worker=%p, load succeeded", sharedWorkerObjectIdentifier.toString().utf8().data(), workerObject);
     77    else
     78        CONNECTION_RELEASE_LOG_ERROR("notifyWorkerObjectOfLoadCompletion: sharedWorkerObjectIdentifier=%{public}s, worker=%p, load failed", sharedWorkerObjectIdentifier.toString().utf8().data(), workerObject);
    7679    if (workerObject)
    7780        workerObject->didFinishLoading(error);
Note: See TracChangeset for help on using the changeset viewer.