Changeset 276153 in webkit
- Timestamp:
- Apr 16, 2021, 12:20:07 PM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
UIProcess/AuxiliaryProcessProxy.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r276148 r276153 1 2021-04-16 Chris Dumez <cdumez@apple.com> 2 3 Unreviewed, reverting r275839. 4 5 The new release assertion is hitting to easily in client apps 6 7 Reverted changeset: 8 9 "Make sure AuxiliaryProcessProxy::sendMessage() is called on 10 the main thread" 11 https://bugs.webkit.org/show_bug.cgi?id=224448 12 https://commits.webkit.org/r275839 13 1 14 2021-04-16 Chris Dumez <cdumez@apple.com> 2 15 -
trunk/Source/WebKit/UIProcess/AuxiliaryProcessProxy.cpp
r275839 r276153 161 161 bool AuxiliaryProcessProxy::sendMessage(UniqueRef<IPC::Encoder>&& encoder, OptionSet<IPC::SendOption> sendOptions, Optional<std::pair<CompletionHandler<void(IPC::Decoder*)>, uint64_t>>&& asyncReplyInfo, ShouldStartProcessThrottlerActivity shouldStartProcessThrottlerActivity) 162 162 { 163 RELEASE_ASSERT(isMainRunLoop()); 163 // FIXME: We should turn this into a RELEASE_ASSERT(). 164 ASSERT(isMainRunLoop()); 165 if (!isMainRunLoop()) { 166 callOnMainRunLoop([protectedThis = makeRef(*this), encoder = WTFMove(encoder), sendOptions, asyncReplyInfo = WTFMove(asyncReplyInfo), shouldStartProcessThrottlerActivity]() mutable { 167 protectedThis->sendMessage(WTFMove(encoder), sendOptions, WTFMove(asyncReplyInfo), shouldStartProcessThrottlerActivity); 168 }); 169 return true; 170 } 164 171 165 172 if (asyncReplyInfo && canSendMessage() && shouldStartProcessThrottlerActivity == ShouldStartProcessThrottlerActivity::Yes) { … … 229 236 { 230 237 ASSERT(!m_connection); 231 RELEASE_ASSERT(isMainRunLoop());238 ASSERT(isMainRunLoop()); 232 239 233 240 if (!IPC::Connection::identifierIsValid(connectionIdentifier)) … … 250 257 void AuxiliaryProcessProxy::replyToPendingMessages() 251 258 { 252 RELEASE_ASSERT(isMainRunLoop());259 ASSERT(isMainRunLoop()); 253 260 for (auto& pendingMessage : std::exchange(m_pendingMessages, { })) { 254 261 if (pendingMessage.asyncReplyInfo)
Note:
See TracChangeset
for help on using the changeset viewer.