<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>JerryQu的小站 &#187; Firebug</title>
	<atom:link href="http://www.qgy18.com/tag/firebug/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.qgy18.com</link>
	<description></description>
	<lastBuildDate>Tue, 16 Mar 2010 03:42:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Firebug导致的验证码失效问题</title>
		<link>http://www.qgy18.com/2008/08/firebug_vcode/</link>
		<comments>http://www.qgy18.com/2008/08/firebug_vcode/#comments</comments>
		<pubDate>Thu, 14 Aug 2008 12:13:55 +0000</pubDate>
		<dc:creator>Jerry Qu</dc:creator>
				<category><![CDATA[前端开发]]></category>
		<category><![CDATA[Firebug]]></category>
		<category><![CDATA[Firefox]]></category>

		<guid isPermaLink="false">http://www.qgy18.com/?p=29</guid>
		<description><![CDATA[Firebug，就不多介绍了，搞web开发的，尤其是关注前端的估计没人不知道这个插件。最近发现打开firebug在特定的情况下会导致页面验证码失效，在此记录一下。 打开firebug面板，选择网络下的图片tab，这里会记录当前页面上用到的图片url，鼠标移到记录上，firebug会显示出该图片。这本来是一个很人性化的设计，但是问题出在，firebug在显示图片的时候会再次请求服务器。这样如... ]]></description>
			<content:encoded><![CDATA[<p><a href="http://getfirebug.com/">Firebug</a>，就不多介绍了，搞web开发的，尤其是关注前端的估计没人不知道这个插件。最近发现打开firebug在特定的情况下会导致页面验证码失效，在此记录一下。</p>
<p>打开firebug面板，选择网络下的图片tab，这里会记录当前页面上用到的图片url，鼠标移到记录上，firebug会显示出该图片。这本来是一个很人性化的设计，但是问题出在，firebug在显示图片的时候会再次请求服务器。这样如果鼠标移到验证码图片上，firebug向服务器去取，服务器会认为是用户刷新了验证码，重新生成一张验证码，但此时用户的页面上看到的验证码还是旧的，这样提交肯定会通不过。<br />
<span id="more-29"></span><br />
从下面这张图上可以清晰的看出，页面上的验证码是“1254”，但是鼠标移到firebug中验证码url上，firebug会再次向服务器请求验证码，服务器生成了新的验证码“9064”。这个时候再用页面上显示的验证码提交肯定就通不过了。</p>
<p><img src="http://www.qgy18.com/wp-content/2008-08-14_191445.png" alt="" /></p>
<p>PS：google还说过firebug会影响gmail的性能：<a href="https://mail.google.com/support/bin/answer.py?answer=77355">Firebug can make Gmail slow</a>。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.qgy18.com/2008/08/firebug_vcode/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
