⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 236529 in webkit


Ignore:
Timestamp:
Sep 26, 2018, 3:18:25 PM (8 years ago)
Author:
Chris Dumez
Message:

Regression(r236512): WKWebViewCandidateTests.SoftSpaceReplacementAfterCandidateInsertionWithoutReplacement API test is failing
https://bugs.webkit.org/show_bug.cgi?id=190007

Reviewed by Alex Christensen.

Drop DispatchMessageEvenWhenWaitingForSyncReply SendOption from EditorStateChanged IPC calls to restore
pre-r236512 behavior. Before r236512, this option had no effect on IPC from the WebContent to the UIProcess
because the m_onlySendMessagesAsDispatchWhenWaitingForSyncReplyWhenProcessingSuchAMessage flag was set
on that IPC::Connection. However, after r236512, m_onlySendMessagesAsDispatchWhenWaitingForSyncReplyWhenProcessingSuchAMessage
is no longer set on the connection, and the DispatchMessageEvenWhenWaitingForSyncReply SendOption was
causing this message to get processed out of order with regards to other async IPC, thus causing the
API test failure.

  • WebProcess/WebPage/WebPage.cpp:

(WebKit::WebPage::sendEditorStateUpdate):
(WebKit::WebPage::sendPartialEditorStateAndSchedulePostLayoutUpdate):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r236523 r236529  
     12018-09-26  Chris Dumez  <cdumez@apple.com>
     2
     3        Regression(r236512): WKWebViewCandidateTests.SoftSpaceReplacementAfterCandidateInsertionWithoutReplacement API test is failing
     4        https://bugs.webkit.org/show_bug.cgi?id=190007
     5
     6        Reviewed by Alex Christensen.
     7
     8        Drop DispatchMessageEvenWhenWaitingForSyncReply SendOption from EditorStateChanged IPC calls to restore
     9        pre-r236512 behavior. Before r236512, this option had no effect on IPC from the WebContent to the UIProcess
     10        because the m_onlySendMessagesAsDispatchWhenWaitingForSyncReplyWhenProcessingSuchAMessage flag was set
     11        on that IPC::Connection. However, after r236512, m_onlySendMessagesAsDispatchWhenWaitingForSyncReplyWhenProcessingSuchAMessage
     12        is no longer set on the connection, and the DispatchMessageEvenWhenWaitingForSyncReply SendOption was
     13        causing this message to get processed out of order with regards to other async IPC, thus causing the
     14        API test failure.
     15
     16        * WebProcess/WebPage/WebPage.cpp:
     17        (WebKit::WebPage::sendEditorStateUpdate):
     18        (WebKit::WebPage::sendPartialEditorStateAndSchedulePostLayoutUpdate):
     19
    1202018-09-26  Alex Christensen  <achristensen@webkit.org>
    221
  • trunk/Source/WebKit/WebProcess/WebPage/WebPage.cpp

    r236497 r236529  
    56095609    // next layer tree commit to compute and send the complete EditorState over.
    56105610    auto state = editorState();
    5611     send(Messages::WebPageProxy::EditorStateChanged(state), pageID(), IPC::SendOption::DispatchMessageEvenWhenWaitingForSyncReply);
     5611    send(Messages::WebPageProxy::EditorStateChanged(state), pageID());
    56125612
    56135613    if (state.isMissingPostLayoutData) {
     
    56455645        return;
    56465646
    5647     send(Messages::WebPageProxy::EditorStateChanged(editorState(IncludePostLayoutDataHint::No)), pageID(), IPC::SendOption::DispatchMessageEvenWhenWaitingForSyncReply);
     5647    send(Messages::WebPageProxy::EditorStateChanged(editorState(IncludePostLayoutDataHint::No)), pageID());
    56485648
    56495649    if (m_hasPendingEditorStateUpdate)
Note: See TracChangeset for help on using the changeset viewer.