firebug

Why does Firebug add -moz-* styles when inspecting element CSS?

自作多情 提交于 2019-12-08 17:36:38
问题 Whenever I inspect page elements in Firebug, I always see it adding styles such as... -moz-background-clip:border; -moz-background-inline-policy:continuous; -moz-background-origin:padding; ... etc, to the Style box. Why does it do this? 回答1: It isn't Firebug adding those rules but the Gecko rendering engine. They are part of "the default stylesheet". (The default style a particular agent applies before parsing the styles on the page. They have a specificity of 0,0,0,0 which essentially means

Reverse Engineering the DOM, Javascript events & “what's going on”?

好久不见. 提交于 2019-12-08 17:30:40
问题 I'm trying to figure out what's going on in the javascript of Google's live page preview. Why aren't the links I'm adding to the DOM with Javascript clickable? (for a bit more context) http://chesser.ca/2010/11/google-visual-image-search-hack-marklet/ for the "latest demo" If you search on google, the results come up on page via live search. Then, if you mouseover one of the magnifying glasses in your result set, a number of things happen. the mousover event for the magnifying glass fires

easiest way to find missing css classes and ids

坚强是说给别人听的谎言 提交于 2019-12-08 16:33:21
问题 How can I identify css classes or ids that are referenced in code but missing in the css file? Is there any feature in firebug that i can use? Thanks. 回答1: Firebug does not do this, nor any tool I can think of, because it is not a common or high-payback task. However, it is a common task to find unused CSS rules, so that they can be trimmed. You can get a performance gain by trimming common CSS files. But removing ID's and classes from HTML pages does not help as much, and is more likely to

Return not in function

折月煮酒 提交于 2019-12-08 15:59:22
问题 Firebug is reporting a "return not in function" error with no location (well, line 1 of nothing). How can I track down the source of this error? return not in function [Break on this error] return(0) javascript:return... (line 1) I'm running FireBug 1.05 on FF 2.0.0.20 on Ubuntu. I found a solution that works (for this configuration): var link = document.createElement('a'); link.href='/'; if (childSummary.more) { link.onclick = capture(function(id) { follow(id); }, childSummary.id); } else {

AngularJS doesn't show specific errors in the Firebug console anymore

浪子不回头ぞ 提交于 2019-12-08 15:40:50
问题 I am using AngularJS along with the angular-material library in my application. The problem is, whenever any error occurs in any function of the controller, it doesn't show the specific error but instead shows the same generic error everytime, by looking at which you cannot determine what went wrong. Here is the error shown in my console. TypeError: href is null stackFrame.js (line 357) consoleLog/<() angular.js (line 12416) $ExceptionHandlerProvider/this.$get</<() angular.js (line 9203)

FireBug problem: Can't use console.log

早过忘川 提交于 2019-12-08 15:27:27
问题 I have a problem with the current version of FireBug. Firefox: 3.6.13 Firebug: 1.6.0 and 1.6.1b1 (tried both) My Javascript can't use console.log (or any console at all) to output debug messages. I'm not sure when it stopped working, but for now I get an "console is not defined" when I try to access it or a message popup when I run this code: if (console == undefined) { alert(1); } I had the latest FirePHP extension (DeveloperCompanion) installed but removed it to see if that was causing the

Unreadable var_dump in Firebug when xdebug is enabled

偶尔善良 提交于 2019-12-08 14:54:32
问题 Xdebug displays "var_dump" in its own way with more useful information, but in Firebug is unreadable. I was wondering if there was a way to display the var_dump in Firebug to make it readable without disabling xdebug and also keeping the display of the var_dump made by xdebug in PHP. Examples of var_dump displayed in Firebug: $test = array('id' => '42', 'name' => 'Mao'); var_dump($test); Default : array(2) { ["id"]=> string(2) "42" ["name"]=> string(3) "Mao" } Xdebug : <pre class='xdebug-var

What does the time elapsed between network requests mean?

我们两清 提交于 2019-12-08 13:24:50
问题 As you can see the second request starts 784ms after the beginning. I wonder why that request starts at 784ms instead of 741ms (directly after the first one)? What happens in the 43ms in between the first and second request? There is no indicator showing that there is a blocking request. 回答1: The 43ms between the two requests indicate the parsing time. I.e. this is the time needed to process the request to the page URL you requested and find embedded resources like images, JavaScripts, etc.,

How to inject JavaScript snippet via Firebug on page load?

一个人想着一个人 提交于 2019-12-08 12:45:35
问题 I want to inject a JavaScript snippet in the Firebug Command Editor while opening a new tab and execute it. Here is the explanation. Now the real issue begins. When a page is opened I want a snippet to appear in the Command Editor. So I only have to click on Run . If possible, if clicking Run can be automatized then it would be great. The purpose is automatize the process of accepting all the requests, which I currently have to do manually. 回答1: Firebug allows to include and execute external

Tracking ajax requests of embedded javascript files

↘锁芯ラ 提交于 2019-12-08 12:45:18
问题 My question comes from a practical observation: both Twitter and Google provide their sharing buttons, which include share counts on the services. Both buttons are generated with javascript, which means that an API call must be made to obtain a newest share count on the fly. And, not surprisingly, people find solutions: Google+ count - http://www.tomanthony.co.uk/blog/google_plus_one_button_seo_count_api/ Tweet count - How to get 'ONLY the tweet count' from the twitter button I imagine the