检查Chrome Dev Tools扩展程序中的WebSockets框架 [英] Inspect WebSockets frames from a Chrome Dev Tools extension

查看:122
本文介绍了检查Chrome Dev Tools扩展程序中的WebSockets框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个Chrome开发人员工具扩展程序(一个新面板)来分析我们自己网站上的WebSockets框架。据我了解, http://developer.chrome.com/extensions/devtools.network.html不够完整,无法访问WebSockets框架。什么是我最好的选择呢?



谢谢! 根据我的个人经验,如果addon api不允许修改Chrome中的浏览器行为是不可能的 - 在firefox中,这很容易改变,因为接口逻辑的大部分都是用Javascript编写的,并且只有api只适用于关于任何事情。


$ b Chrome does 支持NPAPI api,但是这是用C ++编写的,文档由Mozilla维护(最好)。



基本上:



您的其他选择是检出Chrome的源代码,并尝试理解它,修改它,并(可能)获取您的更改将重新提交到树中。



You 可能能够避开这个 https://developers.google.com/chrome-developer-tools/docs/contribute



但是,您又一次创建了Chrome的调试版本。



总之,没有简单的答案。


I would like to create a Chrome Developer Tools extension (a new panel) to analyze WebSockets frames on our own websites. As far as I understand, http://developer.chrome.com/extensions/devtools.network.html is not complete enough to give access to WebSockets frames. What are my best options then?

Thanks!

解决方案

In my personal experience, it is impossible to modify the browser behavior in Chrome, if the addon api does not allow for it - in firefox this is much easier to change as much of the interface logic is written in Javascript, and there are api's for just about anything.

Chrome does support the NPAPI api, however this is written in C++, and the documentation is (best) maintained by Mozilla.

Basically:

Your other option is to checkout the source code of Chrome, and attempt to understand it, modify it, and (possibly) get your changes committed back into the tree.

You might be able to get away with just this https://developers.google.com/chrome-developer-tools/docs/contributing

However, again, you are creating a debug version of Chrome.

In summary, there are no easy answers.

这篇关于检查Chrome Dev Tools扩展程序中的WebSockets框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆