Changeset 201141 in webkit


Ignore:
Timestamp:
May 19, 2016, 1:40:25 AM (9 years ago)
Author:
bshafiei@apple.com
Message:

Merge r200950. rdar://problem/26287306

Location:
branches/safari-602.1.32-branch/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-602.1.32-branch/Source/WebKit2/ChangeLog

    r201132 r201141  
     12016-05-19  Babak Shafiei  <bshafiei@apple.com>
     2
     3        Merge r200950. rdar://problem/26287306
     4
     5    2016-05-16  Brian Burg  <bburg@apple.com>
     6
     7            Web Automation: WebAutomationSessionProxy.js gets injected more than once sometimes
     8            https://bugs.webkit.org/show_bug.cgi?id=157716
     9            <rdar://problem/26287306>
     10
     11            Reviewed by Timothy Hatcher.
     12
     13            Whenever a script was injected into a non-normal world by a WebKit client,
     14            the WebProcess's WebAutomationSessionProxy singleton would get a
     15            notification that the window was cleared from the relevant frame.
     16            This notification happens when creating the world's window shell for
     17            the first time.
     18
     19            This code should ignore such notifications that originate from non-main world
     20            contexts. Web Inspector's instrumentation already ignored this, but
     21            the automation session notification comes in via a different WebKit2 layer.
     22
     23            * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
     24            (WebKit::WebFrameLoaderClient::dispatchDidClearWindowObjectInWorld):
     25
    1262016-05-19  Babak Shafiei  <bshafiei@apple.com>
    227
  • branches/safari-602.1.32-branch/Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp

    r199673 r201141  
    15801580    webPage->injectedBundleLoaderClient().didClearWindowObjectForFrame(webPage, m_frame, world);
    15811581
    1582     if (auto automationSessionProxy = WebProcess::singleton().automationSessionProxy())
     1582
     1583    WebAutomationSessionProxy* automationSessionProxy = WebProcess::singleton().automationSessionProxy();
     1584    if (automationSessionProxy && world.isNormal())
    15831585        automationSessionProxy->didClearWindowObjectForFrame(*m_frame);
    15841586
Note: See TracChangeset for help on using the changeset viewer.