[webkit-help] Regd. Communication path from Web Inspector Front-end to WebCore
kpiascik at rim.com
Wed Aug 29 06:10:45 PDT 2012
The communication protocol that is used is JSON sent over WebSockets. This protocol is defined in Source/WebCore/inspector/inspector.json also there is a DerivedSource file called InspectorBackendDispatcher.cpp which is where the JSON is parsed and from which calls into the Inspector*Agent classes are made. These Agent classes can make calls to the front-end via an InspectorFrontendChannel that each WebKit port then implements.
Hope this helps,
Sent from my BlackBerry on the Rogers Wireless Network
From: debojyoti.pal at wipro.com [mailto:debojyoti.pal at wipro.com]
Sent: Wednesday, August 29, 2012 01:23 AM
To: webkit-help at lists.webkit.org <webkit-help at lists.webkit.org>
Subject: [webkit-help] Regd. Communication path from Web Inspector Front-end to WebCore
I am trying to understand the communication link between Web Inspector front-end and backend. What I have observed that in the InspectorBackendStub.js file, there is a method sendMessageToBackend, which is being called to dispatch any method from WebInspector front-end to Webcore.
But the strange observation is in the InspectorBackend.sendMessageToBackend() method, it calls InspectorFronendHost.sendMessageToBackend() method, whose implementation is empty in InspectorFronendHostStub.js. It is also observed that in the WebInspector.loaded() method in inspector.js file the Websocket is not getting called.
So I am really curious to know the communication link from front-end to backend, it would be really helpful, if you kindly give some information regarding this.
Thanks in advance.
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the webkit-help