[Webkit-unassigned] [Bug 92429] Web Inspector: Add support for debugging Inspector LayoutTests w/Inspector
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jul 27 02:05:03 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=92429
Andrey Kosyakov <caseq at chromium.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |caseq at chromium.org
--- Comment #2 from Andrey Kosyakov <caseq at chromium.org> 2012-07-27 02:05:06 PST ---
I like the general idea of enabling debugging of layout tests, but in my view, this particular approach is too much of a hack to expose even as an experiment. How about requiring a remote front-end for debugging layout tests? This way, it will run as a "normal" web page and you'll be able to inject scripts there with your extension. This could even be taken further -- your mock test runner, upon a call to showWebInspector() could request the background page to open a new tab and navigate it to the (remote) front-end and inject the code that install a listener for the message event on window. Perhaps, you could also monkey-patch the InspectedFrontendHostStub to have its sendMessageToBackend() to actually send message to background page, which would relay it to back-end through chrome.debugger API -- this way, one wouldn't event have to explicitly enable remote debugging ws server.
Actually, many other methods of InspectedFrontendHost may be implemented via an extension, which would allow for a nearly full-functional remote front-end -- quite useful beyond the scope of debugging, I think.
--
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