javascript

java

python

c#

android

node.js

c++

reactjs

php

html

jquery

css

.net

ios

git

ruby-on-rails

sql

c

string

ruby

xss-Chrome:ERR_BLOCKED_BY_XSS_AUDITOR详细信息

我在尝试发布然后获取简单表格时得到了chrome标志。

问题是开发者控制台什么也没显示,我自己也找不到问题的根源。

有什么选项可以更详细地查看此内容吗?查看触发该错误的代码段以进行修复...

trans by 2020-02-29T08:53:30Z

查看Google Chrome浏览器的缓存图片

如何查看Google Chrome浏览器在网站上缓存的图片?

trans by 2020-02-22T18:00:25Z

谷歌浏览器-如何强制JavaScript深度复制字符串?

我有一些如下的javascript代码:

var myClass = {
  ids: {}
  myFunc: function(huge_string) {
     var id = huge_string.substr(0,2);
     ids[id] = true;
  }
}

稍后,该函数将使用一些大字符串(100 MB +)进行调用。 我只想保存在每个字符串中找到的简短ID。 但是,谷歌浏览器的子字符串函数(实际上是我的代码中的正则表达式)仅返回“切片字符串”对象,该对象引用了原始对象。 因此,在对id进行一系列调用之后,我的chrome标签用完了内存,因为临时huge_string对象无法进行垃圾回收。

如何复制字符串id,这样就不会保留对huge_string的引用,并且可以对huge_string进行垃圾收集?

enter image description here

trans by 2020-02-22T09:15:40Z

在C#中使用Chrome浏览器?

有没有办法在C#应用程序中使用Google Chrome(或Safari或Firefox)作为浏览器? C#现在使用Internet Explorer,并且他们要在此程序中使用的网站不支持它。

trans by 2020-02-22T03:27:17Z

html5-HTML-5日期字段在Chrome中显示为“ mm / dd / yyyy”,即使有效日期为s

我刚刚将ASP.Net MVC应用程序升级到MVC-4。 现在,基于DateTime值的输入的字段编辑器包括HTML-5 [DisplayFormat]属性/值声明。

现在,在Chrome中查看时,我的日期输入会在输入字段中显示为“ mm / dd / yyyy”:

date field with 'mm/dd/yyyy' in box

即使当我使用value属性传递格式正确的日期时:

<input value="2012/10/02" type="date"/>

我仍然在输入框中得到“ mm / dd / yyyy”,直到用户手动更改值为止。

问题似乎出在Chrome上,并且与我的后端框架无关。 实际使用中发现此问题:jsFiddle

...当然是编辑记录的大问题。 如果用户提取的记录已经具有有效的日期,则除非提交人单击该字段并手动重置该值,否则它将不会在提交时通过验证。

其他浏览器没有问题。

这是Chrome错误吗? 还是我错过了一些有关HTML-5日期字段应该如何工作的方式?

更新
请参阅此修订提琴:[http://jsfiddle.net/HudMe/5/]它同时具有HTML-4和HTML-5日期输入,每一个都将“ 10/01/2012”设置为页面- 加载。

单击进入任一日期字段。Javascript应该使用该元素的字段值填充警报。

由于已使用value属性传递了有效日期,因此该日期应显示为“ 10/01/2012”,但在Chrome中,对于HTML-5日期字段,则不会显示任何内容。 手动重置此值,然后再次单击,它将立即显示。

在Safari,Firefox,IE和Opera中的页面加载后,HTML5字段中的值将按预期显示并发出警报,而无需进行调整。

关于接受答案的注意事项:
对于Asp.net mvc-4的其他用户,可以在视图模型的DateTime字段声明中使用[DisplayFormat]属性调整显示格式。 (位于[https://stackoverflow.com/a/12634470/613004])

trans by 2020-02-21T20:59:25Z

如何在JavaScript中访问Chrome拼写检查建议

如何在JavaScript中检测文本区域内的拼写错误? 是否有与此相关的事件? 如何访问Chrome的拼写检查建议中拼写错误的单词?

trans by 2020-02-18T04:06:33Z

ajax-使用Chrome中的本地文件的jQuery getJSON问题

我有一个非常简单的测试页面,该页面使用XHR请求和jQuery的$ .getJSON和$ .ajax方法。 同一页面在某些情况下有效,而在其他情况下则无效。 具体来说,它不适用于Ubuntu上的Chrome。

我正在使用带有Chrome 5.0.342.7 beta的Ubuntu 9.10和带有Chrome 5.0.307.9 beta的Mac OSX 10.6.2进行测试。

  • 当文件从Ubuntu / Chrome和Mac / Chrome都安装在Web服务器上时,它可以正常工作(在此处尝试)。
  • 当文件安装在Mac / Chrome中的本地硬盘上时,它可以正常工作(通过[file:/// ...访问]。)
  • 当文件安装在Ubuntu / Chrome的本地硬盘上时失败(使用[file:/// ...]访问。)

可以从以下位置以tar / gzip文件的形式下载3个文件的小集合:[http://issues.tauren.com/testjson/testjson.tgz]

当其运行时,Chrome控制台将显示:

XHR finished loading: "http://issues.tauren.com/testjson/data.json".
index.html:16Using getJSON
index.html:21
Object
result: "success"
__proto__: Object
index.html:22success
XHR finished loading: "http://issues.tauren.com/testjson/data.json".
index.html:29Using ajax with json dataType
index.html:34
Object
result: "success"
__proto__: Object
index.html:35success
XHR finished loading: "http://issues.tauren.com/testjson/data.json".
index.html:46Using ajax with text dataType
index.html:51{"result":"success"}
index.html:52undefined

如果无法使用,Chrome控制台将显示以下内容:

index.html:16Using getJSON
index.html:21null
index.html:22Uncaught TypeError: Cannot read property 'result' of null
index.html:29Using ajax with json dataType
index.html:34null
index.html:35Uncaught TypeError: Cannot read property 'result' of null
index.html:46Using ajax with text dataType
index.html:51
index.html:52undefined

注意,尽管运行了成功处理程序,但它甚至没有显示XHR请求。 我发誓这以前是在Ubuntu / Chrome中运行的,并且担心会搞砸。 我已经卸载并重新安装了Chrome,但这并没有帮助。

有人可以在您的Ubuntu系统上本地试用一下,并告诉我您是否有麻烦吗? 请注意,它似乎在Firefox中工作正常。

trans by 2020-02-17T08:43:51Z

扩展console.log而不影响log lin

我想扩展'console.log'函数,以便在其输出中添加其他信息-但我不想影响控制台窗口中浏览器生成的脚本名称/行号信息。 看看如果我要创建自己的实现,如何获取无用的跟踪信息,是否应该查找该代码区域...(它们都链接到日志实现,而不是导致日志消息的实际脚本)

enter image description here

基本上,我的应用程序是一个非常可插拔的基础结构,任何日志输出都可以在任意数量的帧中发生。因此,我希望每个日志消息在日志消息的开头都包含一个特殊的唯一标识符。

我尝试用自己的方法替换console.log方法,但是chrome抱怨Uncaught TypeError: Illegal invocation

这就是我如何覆盖它

var orig = console.log;
console.log = function( message )
{
    orig( (window == top ? '[root]' : '[' + window.name + ']') + ': ' + message );
}

有任何想法吗?

[编辑]注意:解决“非法调用”问题后,替代文件似乎仍然污染了文件名/行号...

[编辑]看起来,一般的答案是-不-尽管有些令人困惑的大鹅追捕,但在当前版本的浏览器中仍无法实现所需的功能。

trans by 2020-02-17T07:48:06Z

javascript-如何找到JS内存泄漏?

我一直在努力使用chrome的堆探查器,但是这非常令人困惑。 特别是如果内部有最小化的库。 但是,即使是DOMElements视图,也无法清楚地删除无法删除的元素。

有什么技巧如何使用chrome中的堆转储来找到导致内存泄漏的JS代码,无法由GC清除的代码...以及如何找到即使从dom中删除也弄乱的元素?

换句话说,如何正确读取chrome中的堆转储? 统治者观点? 比较?

trans by 2020-02-16T01:05:42Z

Chrome检查器不显示网络请求路径和

我使用AJAX并希望通过Inspector向服务器发送请求时访问其行为。当我切换到检查器的network选项卡时,请求未在此处列出。

example


编辑

Inspector已打开,并且network选项卡处于活动状态,现在我将做一些事情来触发Ajax请求,但检查器中没有报告。 我的意思是情况已经准备好让检查员显示结果,但是应该更改某些配置。

trans by 2020-02-15T21:24:24Z

css3-background-size:在Android选项卡上,封面不能以纵向显示

我正在使用background-size属性获取全角和全角背景图片,但无法在纵向视图中的Nexus7平板电脑上的Chrome中完全覆盖该属性。 它仅覆盖宽度而不是高度,即在其下方大约有200px白色空间。 但是,当我在台式机Chrome(或其他任何浏览器)中以及在垂直显示器上以模拟纵向尺寸查看网站时,它没有任何问题。

有人有解决办法吗?

CSS:

html { 
    background: url(/images/post_bg.jpg) no-repeat center center fixed; 
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    -ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/images/post_bg.jpg', sizingMethod='scale')";
}

人像屏幕截图:

trans by 2020-02-15T14:44:14Z

在Google Chrome浏览器中重播HTTP POST

我从萤火虫切换到了Google Chrome开发者工具。 到目前为止,我还是很喜欢的,但是我真正想念的一个功能是重播http帖子。

在萤火虫上,我可以右键单击该请求(在网络或控制台选项卡上),“在新选项卡中打开”,然后重播该请求。 当我在google chrome上尝试相同的操作时,它没有以POST的形式发送,而是以GET的形式发送,因此该参数未发送到服务器

有什么办法可以在Chrome中做到这一点吗?

trans by 2020-02-15T08:11:21Z

jQuery-扩展由于内容安全策略指示拒绝加载脚本

以下是我的HTML代码

脚本:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="background.js"></script>

HTML:

      <button name="btnlogin" id="btnlogin">Login</button><br/><br/>

以下是js

$(document).ready(function(){
document.getElementById("#btnlogin").click(function(){
   alert("s");
 });
});

清单文件:

{
"manifest_version": 2,
"name": "One-click Kittens",
"description": "This extension demonstrates a 'browser action' with kittens.",
 "version": "1.0",
"browser_action": {
"default_icon": "icon.png",
"default_popup": "popup.html"
},
}

我发现,当我仅在浏览器中运行此代码时,警报就不会正确显示,但是当我将其作为Chrome扩展程序运行时,会出现以下错误。

未捕获的ReferenceError:未定义$

拒绝加载脚本'[http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js'],因为它违反了以下内容安全策略指令:“ script-src'self 'chrome-extension-resource:”。

我不明白这些错误是什么。 请帮助我了解扩展名。

谢谢

trans by 2020-02-14T15:06:09Z

Chrome在哪里存储Cookie?

假设我使用PHP中的setcookie()函数设置了一个cookie:

setcookie('name','foo',false,'/',false);

我可以在以下位置看到它:

chrome://settings/cookies 

但是,我找不到存储在硬盘上的实际文件。 谁能告诉我这个特定的cookie在硬盘上的什么位置?

trans by 2020-02-14T11:39:52Z

如何在Chrome调试器中检查JavaScript函数的返回值?

来自gdb,它将在完成时输出函数的返回值。 有没有办法在不更改被调试源的情况下从Chrome调试器获取此信息?

trans by 2020-02-13T17:39:14Z

CSS-Google Chrome文字阴影渲染

Google Chrome浏览器在实施CSS3文本阴影时存在一个非常烦人的缺陷。 当应用文本阴影时,将关闭子像素抗锯齿功能。 否则,-webkit-font-smoothing不会说服它。 粗略的Alpha通道抗锯齿会导致阴影与字母混在一起,而这与像素化文本一起最终会产生非常难看的外观。 如果使用手写字体(例如Monotype Corsiva [http://www.newfonts.net/index.php?pa=show_font&id=130]),则这一点更加明显。

您可以在Twitter上清楚看到这一点的地方之一-[http://dev.twitter.com/pages/auth。]文本阴影用于此处的文本轮廓:在Chrome中查看页面,与FF或 IE,您将看到它有多糟。

对于较小的文本,效果甚至变得更糟,直到使它完全不可读为止。 有关此问题的技术讨论,请访问以下网址:[http://www.google.com/support/forum/p/Chrome/thread?fid=5d1c0f2082af0f21000483e9a516d36e&hl=zh-CN]

Chromium项目(问题23440)中提交了一个错误。 该错误已经存在大约一年了,至今仍未分配给任何人。 Google开发人员看到了它,认为它并不那么重要,并使其老化。 事实证明,他们只修复了“流行”的错误,这种做法太la脚了,看起来令人印象深刻! 我对Chrome非常失望! 每天,越来越多的人使用Web排版和CSS3来使Web变得更加美丽! 令人遗憾的是,存在这样的问题以减慢速度。

因此,需要公众努力才能解决此问题。 告诉其他人,在您的博客中写。 您可以访问[http://code.google.com/p/chromium/issues/detail?id=23440]并为该问题投票。 您可以通过点击页面左上角的星标来实现(某些类型的Google帐户需要-gmail等)。

为了使事情更清楚-我的问题有两个目标:

  1. 查找技术解决方法。
  2. 让Google在Chrome中解决此问题。

我将对有关该问题的文章的每个链接进行投票,并标记为公认的最佳技术解决方案或公共努力。

trans by 2020-02-13T14:07:21Z

谷歌浏览器-调试tampermonkey脚本

我想使用chrome的控制台调试tampermonkey脚本,但在列表中找不到我的脚本。

enter image description here

我是在做错什么,还是那里没有tampermonkey脚本? 在那种情况下,我该如何调试呢?

trans by 2020-02-13T02:19:37Z

javascript-请求偶尔在Chrome中停滞了很长时间

chrome中的Ajax请求偶尔会停滞很长时间。

我终于设法复制了它,并保存了所有必要的相关数据,如果有人可以帮助我,请在此处发布。

Chrome开发工具的时间轴显示请求已停顿42.62秒,如以下屏幕截图所示:enter image description here

193486: URL_REQUEST http://qa.tieba.baidu.com/release/getReleaseHistory?projectId=fum1.0.593 Start Time: 2015-01-02 17:51:05.323 t= 1 [st= 0] +REQUEST_ALIVE [dt=42741] t= 1 [st= 0] URL_REQUEST_DELEGATE [dt=0] t= 1 [st= 0] +URL_REQUEST_START_JOB [dt=42740] --> load_flags = 339804160 (BYPASS_DATA_REDUCTION_PROXY | MAYBE_USER_GESTURE | REPORT_RAW_HEADERS | VERIFY_EV_CERT) --> method = "GET" --> priority = "LOW" --> url = "http://qa.tieba.baidu.com/release/getReleaseHistory?projectId=fum1.0.593" t= 2 [st= 1] URL_REQUEST_DELEGATE [dt=0] t= 2 [st= 1] HTTP_CACHE_GET_BACKEND [dt=0] t= 2 [st= 1] HTTP_CACHE_OPEN_ENTRY [dt=0] t= 2 [st= 1] HTTP_CACHE_ADD_TO_ENTRY [dt=0] t= 2 [st= 1] HTTP_CACHE_READ_INFO [dt=0] t= 2 [st= 1] URL_REQUEST_DELEGATE [dt=0] t= 2 [st= 1] +HTTP_STREAM_REQUEST [dt=2] t= 4 [st= 3] HTTP_STREAM_REQUEST_BOUND_TO_JOB --> source_dependency = 193488 (HTTP_STREAM_JOB) t= 4 [st= 3] -HTTP_STREAM_REQUEST t= 4 [st= 3] +HTTP_TRANSACTION_SEND_REQUEST [dt=0] t= 4 [st= 3] HTTP_TRANSACTION_SEND_REQUEST_HEADERS --> GET /release/getReleaseHistory?projectId=fum1.0.593 HTTP/1.1 Host: qa.tieba.baidu.com Connection: keep-alive Accept: application/json, text/plain, */* User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36 Referer: http://qa.tieba.baidu.com/project/ Accept-Encoding: gzip, deflate, sdch Accept-Language: en-US,en;q=0.8 Cookie: [268 bytes were stripped] t= 4 [st= 3] -HTTP_TRANSACTION_SEND_REQUEST t= 4 [st= 3] +HTTP_TRANSACTION_READ_HEADERS [dt=21301] t= 4 [st= 3] HTTP_STREAM_PARSER_READ_HEADERS [dt=21301] --> net_error = -101 (ERR_CONNECTION_RESET) t=21305 [st=21304] HTTP_TRANSACTION_RESTART_AFTER_ERROR --> net_error = -101 (ERR_CONNECTION_RESET) t=21305 [st=21304] -HTTP_TRANSACTION_READ_HEADERS t=21305 [st=21304] +HTTP_STREAM_REQUEST [dt=3] t=21307 [st=21306] HTTP_STREAM_REQUEST_BOUND_TO_JOB --> source_dependency = 193494 (HTTP_STREAM_JOB) t=21308 [st=21307] -HTTP_STREAM_REQUEST t=21308 [st=21307] +HTTP_TRANSACTION_SEND_REQUEST [dt=3] t=21308 [st=21307] HTTP_TRANSACTION_SEND_REQUEST_HEADERS --> GET /release/getReleaseHistory?projectId=fum1.0.593 HTTP/1.1 Host: qa.tieba.baidu.com Connection: keep-alive Accept: application/json, text/plain, */* User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36 Referer: http://qa.tieba.baidu.com/project/ Accept-Encoding: gzip, deflate, sdch Accept-Language: en-US,en;q=0.8 Cookie: [268 bytes were stripped] t=21311 [st=21310] -HTTP_TRANSACTION_SEND_REQUEST t=21311 [st=21310] +HTTP_TRANSACTION_READ_HEADERS [dt=21304] t=21311 [st=21310] HTTP_STREAM_PARSER_READ_HEADERS [dt=21304] --> net_error = -101 (ERR_CONNECTION_RESET) t=42615 [st=42614] HTTP_TRANSACTION_RESTART_AFTER_ERROR --> net_error = -101 (ERR_CONNECTION_RESET) t=42615 [st=42614] -HTTP_TRANSACTION_READ_HEADERS t=42615 [st=42614] +HTTP_STREAM_REQUEST [dt=12] t=42627 [st=42626] HTTP_STREAM_REQUEST_BOUND_TO_JOB --> source_dependency = 193498 (HTTP_STREAM_JOB) t=42627 [st=42626] -HTTP_STREAM_REQUEST t=42627 [st=42626] +HTTP_TRANSACTION_SEND_REQUEST [dt=2] t=42627 [st=42626] HTTP_TRANSACTION_SEND_REQUEST_HEADERS --> GET /release/getReleaseHistory?projectId=fum1.0.593 HTTP/1.1 Host: qa.tieba.baidu.com Connection: keep-alive Accept: application/json, text/plain, */* User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36 Referer: http://qa.tieba.baidu.com/project/ Accept-Encoding: gzip, deflate, sdch Accept-Language: en-US,en;q=0.8 Cookie: [268 bytes were stripped] t=42629 [st=42628] -HTTP_TRANSACTION_SEND_REQUEST t=42629 [st=42628] +HTTP_TRANSACTION_READ_HEADERS [dt=112] t=42629 [st=42628] HTTP_STREAM_PARSER_READ_HEADERS [dt=112] t=42741 [st=42740] HTTP_TRANSACTION_READ_RESPONSE_HEADERS --> HTTP/1.1 200 OK Date: Fri, 02 Jan 2015 09:51:48 GMT Content-Type: application/json; charset=UTF-8 Transfer-Encoding: chunked Connection: keep-alive Cache-Control: no-cache tracecode: 31079600320335034634010217 tracecode: 31079600320537995786010217 Server: Apache t=42741 [st=42740] -HTTP_TRANSACTION_READ_HEADERS t=42741 [st=42740] HTTP_CACHE_WRITE_INFO [dt=0] t=42741 [st=42740] HTTP_CACHE_WRITE_DATA [dt=0] t=42741 [st=42740] HTTP_CACHE_WRITE_INFO [dt=0] t=42741 [st=42740] URL_REQUEST_DELEGATE [dt=0] t=42741 [st=42740] -URL_REQUEST_START_JOB t=42741 [st=42740] URL_REQUEST_DELEGATE [dt=0] t=42741 [st=42740] HTTP_TRANSACTION_READ_BODY [dt=0] t=42741 [st=42740] HTTP_CACHE_WRITE_DATA [dt=0] t=42741 [st=42740] HTTP_TRANSACTION_READ_BODY [dt=0] t=42741 [st=42740] HTTP_CACHE_WRITE_DATA [dt=0] t=42742 [st=42741] -REQUEST_ALIVE(有关事件日志,请转到末尾)页面中,我发现最多的时间是两个事件所花费的时间:

  • + HTTP_TRANSACTION_READ_HEADERS [dt = 21301]
  • + HTTP_TRANSACTION_READ_HEADERS [dt = 21304]

两者都获得193486: URL_REQUEST http://qa.tieba.baidu.com/release/getReleaseHistory?projectId=fum1.0.593 Start Time: 2015-01-02 17:51:05.323 t= 1 [st= 0] +REQUEST_ALIVE [dt=42741] t= 1 [st= 0] URL_REQUEST_DELEGATE [dt=0] t= 1 [st= 0] +URL_REQUEST_START_JOB [dt=42740] --> load_flags = 339804160 (BYPASS_DATA_REDUCTION_PROXY | MAYBE_USER_GESTURE | REPORT_RAW_HEADERS | VERIFY_EV_CERT) --> method = "GET" --> priority = "LOW" --> url = "http://qa.tieba.baidu.com/release/getReleaseHistory?projectId=fum1.0.593" t= 2 [st= 1] URL_REQUEST_DELEGATE [dt=0] t= 2 [st= 1] HTTP_CACHE_GET_BACKEND [dt=0] t= 2 [st= 1] HTTP_CACHE_OPEN_ENTRY [dt=0] t= 2 [st= 1] HTTP_CACHE_ADD_TO_ENTRY [dt=0] t= 2 [st= 1] HTTP_CACHE_READ_INFO [dt=0] t= 2 [st= 1] URL_REQUEST_DELEGATE [dt=0] t= 2 [st= 1] +HTTP_STREAM_REQUEST [dt=2] t= 4 [st= 3] HTTP_STREAM_REQUEST_BOUND_TO_JOB --> source_dependency = 193488 (HTTP_STREAM_JOB) t= 4 [st= 3] -HTTP_STREAM_REQUEST t= 4 [st= 3] +HTTP_TRANSACTION_SEND_REQUEST [dt=0] t= 4 [st= 3] HTTP_TRANSACTION_SEND_REQUEST_HEADERS --> GET /release/getReleaseHistory?projectId=fum1.0.593 HTTP/1.1 Host: qa.tieba.baidu.com Connection: keep-alive Accept: application/json, text/plain, */* User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36 Referer: http://qa.tieba.baidu.com/project/ Accept-Encoding: gzip, deflate, sdch Accept-Language: en-US,en;q=0.8 Cookie: [268 bytes were stripped] t= 4 [st= 3] -HTTP_TRANSACTION_SEND_REQUEST t= 4 [st= 3] +HTTP_TRANSACTION_READ_HEADERS [dt=21301] t= 4 [st= 3] HTTP_STREAM_PARSER_READ_HEADERS [dt=21301] --> net_error = -101 (ERR_CONNECTION_RESET) t=21305 [st=21304] HTTP_TRANSACTION_RESTART_AFTER_ERROR --> net_error = -101 (ERR_CONNECTION_RESET) t=21305 [st=21304] -HTTP_TRANSACTION_READ_HEADERS t=21305 [st=21304] +HTTP_STREAM_REQUEST [dt=3] t=21307 [st=21306] HTTP_STREAM_REQUEST_BOUND_TO_JOB --> source_dependency = 193494 (HTTP_STREAM_JOB) t=21308 [st=21307] -HTTP_STREAM_REQUEST t=21308 [st=21307] +HTTP_TRANSACTION_SEND_REQUEST [dt=3] t=21308 [st=21307] HTTP_TRANSACTION_SEND_REQUEST_HEADERS --> GET /release/getReleaseHistory?projectId=fum1.0.593 HTTP/1.1 Host: qa.tieba.baidu.com Connection: keep-alive Accept: application/json, text/plain, */* User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36 Referer: http://qa.tieba.baidu.com/project/ Accept-Encoding: gzip, deflate, sdch Accept-Language: en-US,en;q=0.8 Cookie: [268 bytes were stripped] t=21311 [st=21310] -HTTP_TRANSACTION_SEND_REQUEST t=21311 [st=21310] +HTTP_TRANSACTION_READ_HEADERS [dt=21304] t=21311 [st=21310] HTTP_STREAM_PARSER_READ_HEADERS [dt=21304] --> net_error = -101 (ERR_CONNECTION_RESET) t=42615 [st=42614] HTTP_TRANSACTION_RESTART_AFTER_ERROR --> net_error = -101 (ERR_CONNECTION_RESET) t=42615 [st=42614] -HTTP_TRANSACTION_READ_HEADERS t=42615 [st=42614] +HTTP_STREAM_REQUEST [dt=12] t=42627 [st=42626] HTTP_STREAM_REQUEST_BOUND_TO_JOB --> source_dependency = 193498 (HTTP_STREAM_JOB) t=42627 [st=42626] -HTTP_STREAM_REQUEST t=42627 [st=42626] +HTTP_TRANSACTION_SEND_REQUEST [dt=2] t=42627 [st=42626] HTTP_TRANSACTION_SEND_REQUEST_HEADERS --> GET /release/getReleaseHistory?projectId=fum1.0.593 HTTP/1.1 Host: qa.tieba.baidu.com Connection: keep-alive Accept: application/json, text/plain, */* User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36 Referer: http://qa.tieba.baidu.com/project/ Accept-Encoding: gzip, deflate, sdch Accept-Language: en-US,en;q=0.8 Cookie: [268 bytes were stripped] t=42629 [st=42628] -HTTP_TRANSACTION_SEND_REQUEST t=42629 [st=42628] +HTTP_TRANSACTION_READ_HEADERS [dt=112] t=42629 [st=42628] HTTP_STREAM_PARSER_READ_HEADERS [dt=112] t=42741 [st=42740] HTTP_TRANSACTION_READ_RESPONSE_HEADERS --> HTTP/1.1 200 OK Date: Fri, 02 Jan 2015 09:51:48 GMT Content-Type: application/json; charset=UTF-8 Transfer-Encoding: chunked Connection: keep-alive Cache-Control: no-cache tracecode: 31079600320335034634010217 tracecode: 31079600320537995786010217 Server: Apache t=42741 [st=42740] -HTTP_TRANSACTION_READ_HEADERS t=42741 [st=42740] HTTP_CACHE_WRITE_INFO [dt=0] t=42741 [st=42740] HTTP_CACHE_WRITE_DATA [dt=0] t=42741 [st=42740] HTTP_CACHE_WRITE_INFO [dt=0] t=42741 [st=42740] URL_REQUEST_DELEGATE [dt=0] t=42741 [st=42740] -URL_REQUEST_START_JOB t=42741 [st=42740] URL_REQUEST_DELEGATE [dt=0] t=42741 [st=42740] HTTP_TRANSACTION_READ_BODY [dt=0] t=42741 [st=42740] HTTP_CACHE_WRITE_DATA [dt=0] t=42741 [st=42740] HTTP_TRANSACTION_READ_BODY [dt=0] t=42741 [st=42740] HTTP_CACHE_WRITE_DATA [dt=0] t=42742 [st=42741] -REQUEST_ALIVE

enter image description here

我认为错误是请求停滞了这么长时间的原因。

任何人都可以解释这些错误吗?

以下是请求的事件日志,我还将完整事件导出为json,您可以从此处获取该事件,然后在Chrome 193486: URL_REQUEST http://qa.tieba.baidu.com/release/getReleaseHistory?projectId=fum1.0.593 Start Time: 2015-01-02 17:51:05.323 t= 1 [st= 0] +REQUEST_ALIVE [dt=42741] t= 1 [st= 0] URL_REQUEST_DELEGATE [dt=0] t= 1 [st= 0] +URL_REQUEST_START_JOB [dt=42740] --> load_flags = 339804160 (BYPASS_DATA_REDUCTION_PROXY | MAYBE_USER_GESTURE | REPORT_RAW_HEADERS | VERIFY_EV_CERT) --> method = "GET" --> priority = "LOW" --> url = "http://qa.tieba.baidu.com/release/getReleaseHistory?projectId=fum1.0.593" t= 2 [st= 1] URL_REQUEST_DELEGATE [dt=0] t= 2 [st= 1] HTTP_CACHE_GET_BACKEND [dt=0] t= 2 [st= 1] HTTP_CACHE_OPEN_ENTRY [dt=0] t= 2 [st= 1] HTTP_CACHE_ADD_TO_ENTRY [dt=0] t= 2 [st= 1] HTTP_CACHE_READ_INFO [dt=0] t= 2 [st= 1] URL_REQUEST_DELEGATE [dt=0] t= 2 [st= 1] +HTTP_STREAM_REQUEST [dt=2] t= 4 [st= 3] HTTP_STREAM_REQUEST_BOUND_TO_JOB --> source_dependency = 193488 (HTTP_STREAM_JOB) t= 4 [st= 3] -HTTP_STREAM_REQUEST t= 4 [st= 3] +HTTP_TRANSACTION_SEND_REQUEST [dt=0] t= 4 [st= 3] HTTP_TRANSACTION_SEND_REQUEST_HEADERS --> GET /release/getReleaseHistory?projectId=fum1.0.593 HTTP/1.1 Host: qa.tieba.baidu.com Connection: keep-alive Accept: application/json, text/plain, */* User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36 Referer: http://qa.tieba.baidu.com/project/ Accept-Encoding: gzip, deflate, sdch Accept-Language: en-US,en;q=0.8 Cookie: [268 bytes were stripped] t= 4 [st= 3] -HTTP_TRANSACTION_SEND_REQUEST t= 4 [st= 3] +HTTP_TRANSACTION_READ_HEADERS [dt=21301] t= 4 [st= 3] HTTP_STREAM_PARSER_READ_HEADERS [dt=21301] --> net_error = -101 (ERR_CONNECTION_RESET) t=21305 [st=21304] HTTP_TRANSACTION_RESTART_AFTER_ERROR --> net_error = -101 (ERR_CONNECTION_RESET) t=21305 [st=21304] -HTTP_TRANSACTION_READ_HEADERS t=21305 [st=21304] +HTTP_STREAM_REQUEST [dt=3] t=21307 [st=21306] HTTP_STREAM_REQUEST_BOUND_TO_JOB --> source_dependency = 193494 (HTTP_STREAM_JOB) t=21308 [st=21307] -HTTP_STREAM_REQUEST t=21308 [st=21307] +HTTP_TRANSACTION_SEND_REQUEST [dt=3] t=21308 [st=21307] HTTP_TRANSACTION_SEND_REQUEST_HEADERS --> GET /release/getReleaseHistory?projectId=fum1.0.593 HTTP/1.1 Host: qa.tieba.baidu.com Connection: keep-alive Accept: application/json, text/plain, */* User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36 Referer: http://qa.tieba.baidu.com/project/ Accept-Encoding: gzip, deflate, sdch Accept-Language: en-US,en;q=0.8 Cookie: [268 bytes were stripped] t=21311 [st=21310] -HTTP_TRANSACTION_SEND_REQUEST t=21311 [st=21310] +HTTP_TRANSACTION_READ_HEADERS [dt=21304] t=21311 [st=21310] HTTP_STREAM_PARSER_READ_HEADERS [dt=21304] --> net_error = -101 (ERR_CONNECTION_RESET) t=42615 [st=42614] HTTP_TRANSACTION_RESTART_AFTER_ERROR --> net_error = -101 (ERR_CONNECTION_RESET) t=42615 [st=42614] -HTTP_TRANSACTION_READ_HEADERS t=42615 [st=42614] +HTTP_STREAM_REQUEST [dt=12] t=42627 [st=42626] HTTP_STREAM_REQUEST_BOUND_TO_JOB --> source_dependency = 193498 (HTTP_STREAM_JOB) t=42627 [st=42626] -HTTP_STREAM_REQUEST t=42627 [st=42626] +HTTP_TRANSACTION_SEND_REQUEST [dt=2] t=42627 [st=42626] HTTP_TRANSACTION_SEND_REQUEST_HEADERS --> GET /release/getReleaseHistory?projectId=fum1.0.593 HTTP/1.1 Host: qa.tieba.baidu.com Connection: keep-alive Accept: application/json, text/plain, */* User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36 Referer: http://qa.tieba.baidu.com/project/ Accept-Encoding: gzip, deflate, sdch Accept-Language: en-US,en;q=0.8 Cookie: [268 bytes were stripped] t=42629 [st=42628] -HTTP_TRANSACTION_SEND_REQUEST t=42629 [st=42628] +HTTP_TRANSACTION_READ_HEADERS [dt=112] t=42629 [st=42628] HTTP_STREAM_PARSER_READ_HEADERS [dt=112] t=42741 [st=42740] HTTP_TRANSACTION_READ_RESPONSE_HEADERS --> HTTP/1.1 200 OK Date: Fri, 02 Jan 2015 09:51:48 GMT Content-Type: application/json; charset=UTF-8 Transfer-Encoding: chunked Connection: keep-alive Cache-Control: no-cache tracecode: 31079600320335034634010217 tracecode: 31079600320537995786010217 Server: Apache t=42741 [st=42740] -HTTP_TRANSACTION_READ_HEADERS t=42741 [st=42740] HTTP_CACHE_WRITE_INFO [dt=0] t=42741 [st=42740] HTTP_CACHE_WRITE_DATA [dt=0] t=42741 [st=42740] HTTP_CACHE_WRITE_INFO [dt=0] t=42741 [st=42740] URL_REQUEST_DELEGATE [dt=0] t=42741 [st=42740] -URL_REQUEST_START_JOB t=42741 [st=42740] URL_REQUEST_DELEGATE [dt=0] t=42741 [st=42740] HTTP_TRANSACTION_READ_BODY [dt=0] t=42741 [st=42740] HTTP_CACHE_WRITE_DATA [dt=0] t=42741 [st=42740] HTTP_TRANSACTION_READ_BODY [dt=0] t=42741 [st=42740] HTTP_CACHE_WRITE_DATA [dt=0] t=42742 [st=42741] -REQUEST_ALIVE页面中进行还原。 请注意,请求网址是内部的,因此可能无法从公共网络访问:

193486: URL_REQUEST
http://qa.tieba.baidu.com/release/getReleaseHistory?projectId=fum1.0.593
Start Time: 2015-01-02 17:51:05.323

t=    1 [st=    0] +REQUEST_ALIVE  [dt=42741]
t=    1 [st=    0]    URL_REQUEST_DELEGATE  [dt=0]
t=    1 [st=    0]   +URL_REQUEST_START_JOB  [dt=42740]
                      --> load_flags = 339804160 (BYPASS_DATA_REDUCTION_PROXY | MAYBE_USER_GESTURE | REPORT_RAW_HEADERS | VERIFY_EV_CERT)
                      --> method = "GET"
                      --> priority = "LOW"
                      --> url = "http://qa.tieba.baidu.com/release/getReleaseHistory?projectId=fum1.0.593"
t=    2 [st=    1]      URL_REQUEST_DELEGATE  [dt=0]
t=    2 [st=    1]      HTTP_CACHE_GET_BACKEND  [dt=0]
t=    2 [st=    1]      HTTP_CACHE_OPEN_ENTRY  [dt=0]
t=    2 [st=    1]      HTTP_CACHE_ADD_TO_ENTRY  [dt=0]
t=    2 [st=    1]      HTTP_CACHE_READ_INFO  [dt=0]
t=    2 [st=    1]      URL_REQUEST_DELEGATE  [dt=0]
t=    2 [st=    1]     +HTTP_STREAM_REQUEST  [dt=2]
t=    4 [st=    3]        HTTP_STREAM_REQUEST_BOUND_TO_JOB
                          --> source_dependency = 193488 (HTTP_STREAM_JOB)
t=    4 [st=    3]     -HTTP_STREAM_REQUEST
t=    4 [st=    3]     +HTTP_TRANSACTION_SEND_REQUEST  [dt=0]
t=    4 [st=    3]        HTTP_TRANSACTION_SEND_REQUEST_HEADERS
                          --> GET /release/getReleaseHistory?projectId=fum1.0.593 HTTP/1.1
                              Host: qa.tieba.baidu.com
                              Connection: keep-alive
                              Accept: application/json, text/plain, */*
                              User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36
                              Referer: http://qa.tieba.baidu.com/project/
                              Accept-Encoding: gzip, deflate, sdch
                              Accept-Language: en-US,en;q=0.8
                              Cookie: [268 bytes were stripped]
t=    4 [st=    3]     -HTTP_TRANSACTION_SEND_REQUEST
t=    4 [st=    3]     +HTTP_TRANSACTION_READ_HEADERS  [dt=21301]
t=    4 [st=    3]        HTTP_STREAM_PARSER_READ_HEADERS  [dt=21301]
                          --> net_error = -101 (ERR_CONNECTION_RESET)
t=21305 [st=21304]        HTTP_TRANSACTION_RESTART_AFTER_ERROR
                          --> net_error = -101 (ERR_CONNECTION_RESET)
t=21305 [st=21304]     -HTTP_TRANSACTION_READ_HEADERS
t=21305 [st=21304]     +HTTP_STREAM_REQUEST  [dt=3]
t=21307 [st=21306]        HTTP_STREAM_REQUEST_BOUND_TO_JOB
                          --> source_dependency = 193494 (HTTP_STREAM_JOB)
t=21308 [st=21307]     -HTTP_STREAM_REQUEST
t=21308 [st=21307]     +HTTP_TRANSACTION_SEND_REQUEST  [dt=3]
t=21308 [st=21307]        HTTP_TRANSACTION_SEND_REQUEST_HEADERS
                          --> GET /release/getReleaseHistory?projectId=fum1.0.593 HTTP/1.1
                              Host: qa.tieba.baidu.com
                              Connection: keep-alive
                              Accept: application/json, text/plain, */*
                              User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36
                              Referer: http://qa.tieba.baidu.com/project/
                              Accept-Encoding: gzip, deflate, sdch
                              Accept-Language: en-US,en;q=0.8
                              Cookie: [268 bytes were stripped]
t=21311 [st=21310]     -HTTP_TRANSACTION_SEND_REQUEST
t=21311 [st=21310]     +HTTP_TRANSACTION_READ_HEADERS  [dt=21304]
t=21311 [st=21310]        HTTP_STREAM_PARSER_READ_HEADERS  [dt=21304]
                          --> net_error = -101 (ERR_CONNECTION_RESET)
t=42615 [st=42614]        HTTP_TRANSACTION_RESTART_AFTER_ERROR
                          --> net_error = -101 (ERR_CONNECTION_RESET)
t=42615 [st=42614]     -HTTP_TRANSACTION_READ_HEADERS
t=42615 [st=42614]     +HTTP_STREAM_REQUEST  [dt=12]
t=42627 [st=42626]        HTTP_STREAM_REQUEST_BOUND_TO_JOB
                          --> source_dependency = 193498 (HTTP_STREAM_JOB)
t=42627 [st=42626]     -HTTP_STREAM_REQUEST
t=42627 [st=42626]     +HTTP_TRANSACTION_SEND_REQUEST  [dt=2]
t=42627 [st=42626]        HTTP_TRANSACTION_SEND_REQUEST_HEADERS
                          --> GET /release/getReleaseHistory?projectId=fum1.0.593 HTTP/1.1
                              Host: qa.tieba.baidu.com
                              Connection: keep-alive
                              Accept: application/json, text/plain, */*
                              User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36
                              Referer: http://qa.tieba.baidu.com/project/
                              Accept-Encoding: gzip, deflate, sdch
                              Accept-Language: en-US,en;q=0.8
                              Cookie: [268 bytes were stripped]
t=42629 [st=42628]     -HTTP_TRANSACTION_SEND_REQUEST
t=42629 [st=42628]     +HTTP_TRANSACTION_READ_HEADERS  [dt=112]
t=42629 [st=42628]        HTTP_STREAM_PARSER_READ_HEADERS  [dt=112]
t=42741 [st=42740]        HTTP_TRANSACTION_READ_RESPONSE_HEADERS
                          --> HTTP/1.1 200 OK
                              Date: Fri, 02 Jan 2015 09:51:48 GMT
                              Content-Type: application/json; charset=UTF-8
                              Transfer-Encoding: chunked
                              Connection: keep-alive
                              Cache-Control: no-cache
                              tracecode: 31079600320335034634010217
                              tracecode: 31079600320537995786010217
                              Server: Apache
t=42741 [st=42740]     -HTTP_TRANSACTION_READ_HEADERS
t=42741 [st=42740]      HTTP_CACHE_WRITE_INFO  [dt=0]
t=42741 [st=42740]      HTTP_CACHE_WRITE_DATA  [dt=0]
t=42741 [st=42740]      HTTP_CACHE_WRITE_INFO  [dt=0]
t=42741 [st=42740]      URL_REQUEST_DELEGATE  [dt=0]
t=42741 [st=42740]   -URL_REQUEST_START_JOB
t=42741 [st=42740]    URL_REQUEST_DELEGATE  [dt=0]
t=42741 [st=42740]    HTTP_TRANSACTION_READ_BODY  [dt=0]
t=42741 [st=42740]    HTTP_CACHE_WRITE_DATA  [dt=0]
t=42741 [st=42740]    HTTP_TRANSACTION_READ_BODY  [dt=0]
t=42741 [st=42740]    HTTP_CACHE_WRITE_DATA  [dt=0]
t=42742 [st=42741] -REQUEST_ALIVE

编辑:相关问题问题447463:Chrome网络:过时的套接字上的RST消息之前很长的延迟会导致页面加载缓慢。

trans by 2020-02-11T17:24:29Z

如何在Chrome“ JavaScript控制台”中使用“严格”模式

这个问题已经在这里有了答案:

  • 可以在FireBug和Chrome的控制台中启用“严格模式”吗?                                     5个答案

我正在Chrome的“ JavaScript控制台”(版本:35.0)上练习JavaScript,但无法按预期使用“使用严格”条款。

对于以下代码段:

var obj={x:1,y:2}

//Define new property with 'writable' flag as false.
Object.defineProperty(obj, "z", {value:3, writable:false, enumerable:false, configurable:false})

// Try to change the property 'z',
"use strict"; obj["z"]=4

输出4

根据我的理解,更改“不可写”属性的值将在非严格模式下静默失败,而在严格模式下抛出“ TypeError”,但是我看不到异常。

console.log(obj)

对象{x:1,y:2,z:3}

即使属性值没有更改,但我也希望有一个例外。如果我做错了什么请纠正?

trans by 2020-02-09T20:04:33Z

ssl-Chrome“带有证书错误的有效内容”

最近,我们用新证书更新了ZNC服务器(认为这无关紧要),以包括主题备用名称(SAN)DNS字段。 现在可以隐身工作,但我的现有会话显示错误“此页面不安全(HTTPS损坏)”。 详细信息如下:

带有证书错误的有效内容

您最近允许了   内容加载了证书错误(例如脚本或iframe)   在此网站上运行。

我被搜索过,但没有找到任何与此相关的更多细节。 听起来好像它会自动失效,因为它声明为“最近”,但是我更关心如何使它迅速而有希望地解决,而无需用户做任何事情。

enter image description here

我禁用了出现在网络请求中的扩展,现在只剩下几个请求,所有这些都是HTTPS。 我还尝试了ctrl + shift + r重新加载w / byby缓存,以及重新加载时选择的dev工具“禁用缓存”。

enter image description here

trans by 2020-02-09T10:28:14Z

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 下一页 共16页