[Webkit-unassigned] [Bug 29142] New: timing issue with calling the InjectedScript stuff early
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Sep 10 12:59:40 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=29142
Summary: timing issue with calling the InjectedScript stuff
early
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: Web Inspector
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: pmuellr at yahoo.com
CC: timothy at hatcher.name, aroben at apple.com,
kmccullough at apple.com, pfeldman at chromium.org
I'm working on bug 27514, and during the early processing of this code, am
trying to call out to some of the InjectedScript calls, for instance
WebInspector.console._evalInInspectedWindow(). While I don't get an error from
making these calls, I'm also not getting any callbacks invoked.
I haven't tried, because I don't know the ramifications, but am wondering if
moving
<script type="text/javascript" src="InjectedScript.js"></script>
<script type="text/javascript" src="InjectedScriptAccess.js"></script>
from near the bottom of inspector.html to somewhere higher (like, really high),
would help.
For now, I've rigged my code to lazily make the calls, so the calls happen
after everything has been set up or has settled down. But lazily means not
showing the user some details I should be able to show them.
If moving the code up can't be done, then it would be nice to have an event
dispatched that we can listen for when the subsystem has been initialized.
Alternatively, perhaps the code could be rigged to save the requests made
before things are set up, and then run them itself when it's ready. I don't
really care WHEN the subsystem becomes available, but I do need a way to use it
and know I will get responses back.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list