Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Web Automation: WebAutomationSessionProxy.js gets injected more than …
…once sometimes https://bugs.webkit.org/show_bug.cgi?id=157716 <rdar://problem/26287306> Reviewed by Timothy Hatcher. Whenever a script was injected into a non-normal world by a WebKit client, the WebProcess's WebAutomationSessionProxy singleton would get a notification that the window was cleared from the relevant frame. This notification happens when creating the world's window shell for the first time. This code should ignore such notifications that originate from non-main world contexts. Web Inspector's instrumentation already ignored this, but the automation session notification comes in via a different WebKit2 layer. * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp: (WebKit::WebFrameLoaderClient::dispatchDidClearWindowObjectInWorld): Canonical link: https://commits.webkit.org/175872@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@200950 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information