[Webkit-unassigned] [Bug 207408] New: Web Inspector: injected scripts for the worlds cleared before normal are lost
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Feb 7 14:30:58 PST 2020
https://bugs.webkit.org/show_bug.cgi?id=207408
Bug ID: 207408
Summary: Web Inspector: injected scripts for the worlds cleared
before normal are lost
Product: WebKit
Version: WebKit Nightly Build
Hardware: All
OS: All
Status: NEW
Severity: Normal
Priority: P2
Component: Web Inspector
Assignee: webkit-unassigned at lists.webkit.org
Reporter: pfeldman at chromium.org
CC: inspector-bugzilla-changes at group.apple.com
This is a follow up to https://bugs.webkit.org/show_bug.cgi?id=206110, please see the discussion there.
To recap,
I believe there is a subtle issue here - when didClearWindowObjectInWorld is called for the User world before it is called for the Normal world, subsequent call to clear the normal world will erase this injected script from the InjectedScriptManager through m_injectedScriptManager->discardInjectedScripts().
This can either be patched via the following change to the dispatchDidClearWindowObjectsInAllWorlds (that is somewhat hacky), or via going back to instrumenting only normal worlds and iterating over the remaining worlds within agents explicitly.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200207/0d1eab55/attachment.htm>
More information about the webkit-unassigned
mailing list