Changeset 201141 in webkit
- Timestamp:
- May 19, 2016, 1:40:25 AM (9 years ago)
- 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 1 2016-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 1 26 2016-05-19 Babak Shafiei <bshafiei@apple.com> 2 27 -
branches/safari-602.1.32-branch/Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp
r199673 r201141 1580 1580 webPage->injectedBundleLoaderClient().didClearWindowObjectForFrame(webPage, m_frame, world); 1581 1581 1582 if (auto automationSessionProxy = WebProcess::singleton().automationSessionProxy()) 1582 1583 WebAutomationSessionProxy* automationSessionProxy = WebProcess::singleton().automationSessionProxy(); 1584 if (automationSessionProxy && world.isNormal()) 1583 1585 automationSessionProxy->didClearWindowObjectForFrame(*m_frame); 1584 1586
Note:
See TracChangeset
for help on using the changeset viewer.