Lines Matching full:if
54 this.initialize=function(){if(window.firebug&&firebug.firebuglite||window.console&&console.firebugl…
55 }if(FBL.FBTrace){FBTrace=FBL.FBTrace
58 if(isChromeContext){sharedEnv=window.Firebug.SharedEnv;
66 if(document.documentElement.getAttribute("debug")=="true"){FBL.Env.Options.startOpened=true
71 if(FBL.isFirefox&&typeof FBL.Env.browser.console=="object"&&FBL.Env.browser.console.firebug&&FBL.En…
72 }}if(FBL.Env.isDebugMode){FBL.Env.browser.FBL=FBL
77 if(FBL.Env.Options.enableTrace){FBTrace.initialize()
78 }if(FBTrace.DBG_INITIALIZE&&isChromeContext){FBTrace.sysout("FBL.initialize - persistent applicatio…
79 }if(FBTrace.DBG_INITIALIZE){FBTrace.sysout("FBL.initialize",namespaces.length/2+" namespaces BEGIN")
85 }if(FBTrace.DBG_INITIALIZE){FBTrace.sysout("FBL.initialize",namespaces.length/2+" namespaces END");
89 if(FBL.Env.Options.enablePersistent){if(isChromeContext){FBL.FirebugChrome.clone(FBL.Env.FirebugChr…
96 if(body){calculatePixelsPerInch(doc,body);
100 var onDocumentLoad=function onDocumentLoad(){if(FBTrace.DBG_INITIALIZE){FBTrace.sysout("FBL onDocum…
101 }if(FBL.isIE6){fixIE6BackgroundImageCache()
102 }if(FBL.Env.Options.enablePersistent&&FBL.Env.isChromeContext){FBL.Firebug.initialize();
103 if(!FBL.Env.isDevelopmentMode){sharedEnv.destroy();
122 if(script){scriptSrc=script.src;
126 if(!version||!number||number<bookmarkletVersion){FBL.Env.bookmarkletOutdated=true
130 if(si.nodeName.toLowerCase()=="script"){if(file=reFirebugFile.exec(si.getAttribute("firebugSrc"))){…
132 }else{if(file=reFirebugFile.exec(si.src)){scriptSrc=si.src
136 }}}if(script){script.firebugIgnore=true
137 }if(file){var fileName=file[1];
139 if(reProtocol.test(scriptSrc)){path=rePath.exec(scriptSrc)[1]
145 if(backDir){var j=backDir[1].length/3;
149 }else{if(src.indexOf("/")!=-1){if(/^\.\/./.test(src)){path+=src.substring(2)
150 }else{if(/^\/./.test(src)){var domain=/^(\w+:\/\/[^\/]+)/.exec(path);
154 if(FBL.Env.isChromeExtension){path=productionDir;
158 if(isGetFirebugSite&&path.indexOf("/releases/lite/")==-1){path+="releases/lite/"+(fileName=="firebu…
160 if(path&&m){var Env=FBL.Env;
162 if(fileName=="firebug-lite-dev.js"){Env.isDevelopmentMode=true;
164 }else{if(fileName=="firebug-lite-debug.js"){Env.isDebugMode=true
165 }}if(Env.browser.document.documentElement.getAttribute("debug")=="true"){Env.Options.startOpened=tr…
166 }if(fileOptions){var options=fileOptions.split(",");
171 if(option.indexOf("=")!=-1){var parts=option.split("=");
176 }if(name=="debug"){Env.isDebugMode=!!value
177 }else{if(name in Env.Options){Env.Options[name]=value
179 }}}}if(hasSrcAttribute){var innerOptions=FBL.trim(script.innerHTML);
180 if(innerOptions){var innerOptionsObject=eval("("+innerOptions+")");
182 if(name=="debug"){Env.isDebugMode=!!value
183 }else{if(name in Env.Options){Env.Options[name]=value
185 }}}}}if(!Env.Options.saveCookies){FBL.Store.remove("FirebugLite")
186 }if(Env.isDebugMode){Env.Options.startOpened=true;
225 }catch(exc){if(FBTrace.DBG_ERRORS){FBTrace.sysout("lib.values FAILED ",exc)
226 }}}}catch(exc){if(FBTrace.DBG_ERRORS){FBTrace.sysout("lib.values FAILED ",exc)
231 ++i){if(list[i]==item){list.splice(i,1);
241 if(fn){for(var i=0;
267 if(heads.length){heads[0].appendChild(style)
270 this.appendStylesheet=function(doc,uri){if(this.$(uri,doc)){return
278 if(!FBTrace.DBG_CONSOLE){FBL.unwrapObject(element).firebugIgnore=true
280 if(doc.documentElement){doc.documentElement.appendChild(element)
281 }else{if(FBTrace.DBG_ERRORS){FBTrace.sysout("lib.addScript doc has no documentElement:",doc)
333 if(!re){var list={};
334 if(groups.length>1){for(var i=0;
338 }}}else{if(groups.length==1){list=entityConversionLists[direction][groups[0].group]
348 if(!len){return[{str:String(str),group:"",name:""}]
352 if(cur==""){continue
357 if(r){results[ri]={str:r,"class":list["class"],extra:list.extra[cur]?list["class"]+list.extra[cur]:…
359 }}if(!r){results[ri]={str:cur,"class":"",extra:""}
364 if(!len){return str
369 if(cur==""){continue
374 if(r){results[ri]=r;
376 }}if(!r){results[ri]=cur
385 this.unescapeForTextNode=function(str){if(Firebug.showTextNodesWithWhitespace){str=unescapeWhitespa…
386 }if(!Firebug.showTextNodesWithEntities){str=escapeForElementAttribute(str)
400 if(value.indexOf('"')==-1){quot='"';
402 }else{if(value.indexOf("'")==-1){quot='"';
414 if(!limit){var halfLimit=50
416 }if(text.length>limit){return this.escapeNewLines(text.substr(0,halfLimit)+"..."+text.substr(text.l…
423 if(text.match){lines=text.match(reSplitLines2)
429 this.safeToString=function(ob){if(this.isIE){try{return ob+""
432 }}try{if(ob&&"toString" in ob&&typeof ob.toString=="function"){return ob.toString()
444 this.collapse=function(elt,collapsed){if(this.isIElt8){if(collapsed){this.setClass(elt,"collapsed")
448 this.obscure=function(elt,obscured){if(obscured){this.setClass(elt,"obscured")
455 if(this.isIE&&ignoreTags.indexOf(nodeName)!=-1){this.eraseNode(node)
460 this.iterateWindows=function(win,handler){if(!win||!win.document){return
462 if(win==top||!win.frames){return
466 if(subWin!=win){this.iterateWindows(subWin,handler)
470 win=win.parent){if(!win.parent||win==win.parent||!this.instanceOf(win.parent,"Window")){return win
475 if(elt.offsetLeft){coords.x+=elt.offsetLeft+chrome.getMeasurementInPixels(elt,"borderLeft")
476 }if(elt.offsetTop){coords.y+=elt.offsetTop+chrome.getMeasurementInPixels(elt,"borderTop")
477 }if(p){if(p.nodeType==1){addOffset(p,coords,view)
479 if(!otherView.opener&&otherView.frameElement){addOffset(otherView.frameElement,coords,otherView)
483 if(elt){var view=isIE?elt.ownerDocument.parentWindow:elt.ownerDocument.defaultView;
490 if(p){if(p.nodeType==1){var parentStyle=view.getComputedStyle(p,"");
491 if(parentStyle.position!="static"){coords.x+=parseInt(parentStyle.borderLeftWidth);
493 if(p.localName=="TABLE"){coords.x+=parseInt(parentStyle.paddingLeft);
495 }else{if(p.localName=="BODY"){var style=view.getComputedStyle(elt,"");
498 }}}else{if(p.localName=="BODY"){coords.x+=parseInt(parentStyle.borderLeftWidth);
505 }}else{if(elt.localName=="BODY"){var style=view.getComputedStyle(elt,"");
511 }if(elt.scrollLeft){coords.x+=elt.scrollLeft
512 }if(elt.scrollTop){coords.y+=elt.scrollTop
514 if(win&&(!singleFrame&&win.frameElement)){addOffset(win.frameElement,coords,win)
516 if(elt){addOffset(elt,coords,elt.ownerDocument.defaultView)
520 if(elt){bcrect=elt.getBoundingClientRect();
525 if(bcrect.width){dims.width=bcrect.width;
532 if(!od.body){return clientRect
535 if(pos==="absolute"||pos==="relative"){var borderLeft=parseInt(style.getPropertyValue("border-left-…
553 scrollParent=scrollParent.offsetParent){if(scrollParent.scrollHeight>scrollParent.offsetHeight){ret…
556 if(FBTrace.DBG_CONSOLE){FBTrace.sysout("isScrolledToBottom offsetHeight: "+element.offsetHeight+" o…
560 if(FBTrace.DBG_CONSOLE){FBTrace.sysout("scrollToBottom reset scrollTop "+element.scrollTop+" = "+el…
561 if(element.scrollHeight==element.offsetHeight){FBTrace.sysout("scrollToBottom attempt to scroll non…
570 this.linesIntoCenterView=function(element,scrollBox){if(!scrollBox){scrollBox=this.getOverflowParen…
571 }if(!scrollBox){return
575 if(topSpace<0||bottomSpace<0){var split=(scrollBox.clientHeight/2);
582 this.scrollIntoCenterView=function(element,scrollBox,notX,notY){if(!element){return
583 }if(!scrollBox){scrollBox=this.getOverflowParent(element)
584 }if(!scrollBox){return
586 if(!notY){var topSpace=offset.y-scrollBox.scrollTop;
588 if(topSpace<0||bottomSpace<0){var centerY=offset.y-(scrollBox.clientHeight/2);
590 }}if(!notX){var leftSpace=offset.x-scrollBox.scrollLeft;
592 if(leftSpace<0||rightSpace<0){var centerX=offset.x-(scrollBox.clientWidth/2);
594 }}if(FBTrace.DBG_SOURCEFILES){FBTrace.sysout("lib.scrollIntoCenterView ","Element:"+element.innerHT…
600 this.getCSSKeywordsByProperty=function(propName){if(!cssKeywordMap){cssKeywordMap={};
606 if(keywords){list.push.apply(list,keywords)
610 this.getCSSPropertyNames=function(){if(!cssPropNames){cssPropNames=[];
614 this.isColorKeyword=function(keyword){if(keyword=="transparent"){return false
615 }if(!cssColorNames){cssColorNames=[];
626 this.isImageRule=function(rule){if(!imageRules){imageRules=[];
629 if(r.match(suffix+"$")==suffix||r=="background"){imageRules.push(r)
633 if(view){if(!style){style=this.isIE?fromNode.currentStyle:view.getComputedStyle(fromNode,"")
641 if(view){if(!style){style=this.isIE?fromNode.currentStyle:view.getComputedStyle(fromNode,"")
655 }if(FBTrace.DBG_INSPECT){FBTrace.sysout("readBoxStyles ",styles)
664 if(element.id){label+="#"+element.id
665 }if(element.hasAttribute("class")){label+="."+element.getAttribute("class").split(" ")[0]
671 }if(styleSheet.ownerNode){return styleSheet.ownerNode.ownerDocument
673 this.getInstanceForStyleSheet=function(styleSheet,ownerDocument){if(FBL.isSystemStyleSheet(styleShe…
674 }if(FBTrace.DBG_CSS){FBTrace.sysout("getInstanceForStyleSheet: "+styleSheet.href+" "+styleSheet.med…
680 if(FBTrace.DBG_CSS){FBTrace.sysout("getInstanceForStyleSheet: compare href "+i+" "+curSheet.href+" …
681 }if(curSheet==styleSheet){break
682 }if(curSheet.href==href){ret++
685 var getElementType=this.getElementType=function(node){if(isElementXUL(node)){return"xul"
686 }else{if(isElementSVG(node)){return"svg"
687 }else{if(isElementMathML(node)){return"mathml"
688 }else{if(isElementXHTML(node)){return"xhtml"
689 }else{if(isElementHTML(node)){return"html"
691 var getElementSimpleType=this.getElementSimpleType=function(node){if(isElementSVG(node)){return"svg"
692 }else{if(isElementMathML(node)){return"mathml"
705 this.isSelfClosing=function(element){if(isElementSVG(element)||isElementMathML(element)){return true
710 function toHTML(elt){if(elt.nodeType==Node.ELEMENT_NODE){if(unwrapObject(elt).firebugIgnore){return
715 if(attr.localName.indexOf("firebug-")==0){continue
716 }if(attr.localName.indexOf("-moz-math")==0){continue
718 }if(elt.firstChild){html.push(">");
723 }if(pureText){html.push(escapeForHtmlEditor(elt.textContent))
728 }else{if(isElementSVG(elt)||isElementMathML(elt)){html.push("/>")
729 }else{if(self.isSelfClosing(elt)){html.push((isElementXHTML(elt))?"/>":">")
731 }}}}else{if(elt.nodeType==Node.TEXT_NODE){html.push(escapeForTextNode(elt.textContent))
732 }else{if(elt.nodeType==Node.CDATA_SECTION_NODE){html.push("<![CDATA[",elt.nodeValue,"]]>")
733 }else{if(elt.nodeType==Node.COMMENT_NODE){html.push("<!--",elt.nodeValue,"-->")
738 this.getElementXML=function(element){function toXML(elt){if(elt.nodeType==Node.ELEMENT_NODE){if(unw…
743 if(attr.localName.indexOf("firebug-")==0){continue
744 }if(attr.localName.indexOf("-moz-math")==0){continue
746 }if(elt.firstChild){xml.push(">");
752 }}else{if(elt.nodeType==Node.TEXT_NODE){xml.push(elt.nodeValue)
753 }else{if(elt.nodeType==Node.CDATA_SECTION_NODE){xml.push("<![CDATA[",elt.nodeValue,"]]>")
754 }else{if(elt.nodeType==Node.COMMENT_NODE){xml.push("<!--",elt.nodeValue,"-->")
759 this.hasClass=function(node,name){if(arguments.length==2){return(" "+node.className+" ").indexOf(" …
760 }if(!node||node.nodeType!=1){return false
765 if(!re.exec(node.className)){return false
768 this.old_hasClass=function(node,name){if(!node||node.nodeType!=1){return false
773 if(!re.exec(node.className)){return false
776 this.setClass=function(node,name){if(node&&(" "+node.className+" ").indexOf(" "+name+" ")==-1){node…
782 this.removeClass=function(node,name){if(node&&node.className){var index=node.className.indexOf(name…
783 if(index>=0){var size=name.length;
786 this.toggleClass=function(elt,name){if((" "+elt.className+" ").indexOf(" "+name+" ")!=-1){this.remo…
789 this.setClassTimed=function(elt,name,context,timeout){if(!timeout){timeout=1300
790 }if(elt.__setClassTimeout){context.clearTimeout(elt.__setClassTimeout)
796 this.cancelClassTimed=function(elt,name,context){if(elt.__setClassTimeout){FBL.removeClass(elt,name…
800 this.$=function(id,doc){if(doc){return doc.getElementById(id)
803 this.$$=function(selector,doc){if(doc||!FBL.Firebug.chrome){return FBL.Firebug.Selector(selector,do…
813 child=child.nextSibling){if(this.hasClass(child,className)){node=child;
819 parent=parent.parentNode){if(this.hasClass(parent,className)){return parent
825 child=child.nextSibling){if(this.hasClass(child,className)){result.push(child)
834 if(FBL.hasClass.apply(null,args1)){return child
836 if(found){return found
841 parent=parent.parentNode){if(parent==potentialAncestor){return true
850 this.getBody=function(doc){if(doc.body){return doc.body
852 if(body){return body
855 this.findNextDown=function(node,criteria){if(!node){return null
858 child=child.nextSibling){if(criteria(child)){return child
860 if(next){return next
862 this.findPreviousUp=function(node,criteria){if(!node){return null
866 if(next){return next
867 }if(criteria(child)){return child
869 this.findNext=function(node,criteria,upOnly,maxRoot){if(!node){return null
870 }if(!upOnly){var next=this.findNextDown(node,criteria);
871 if(next){return next
874 sib=sib.nextSibling){if(criteria(sib)){return sib
876 if(next){return next
877 }}if(node.parentNode&&node.parentNode!=maxRoot){return this.findNext(node.parentNode,criteria,true)
879 this.findPrevious=function(node,criteria,downOnly,maxRoot){if(!node){return null
883 if(prev){return prev
884 }if(criteria(sib)){return sib
885 }}if(!downOnly){var next=this.findPreviousUp(node,criteria);
886 if(next){return next
887 }}if(node.parentNode&&node.parentNode!=maxRoot){if(criteria(node.parentNode)){return node.parentNode
904 if(doc.createRange){var range=doc.createRange();
909 }else{if(!appendFragment||appendFragment.ownerDocument!=doc){appendFragment=doc.createDocumentFragm…
921 for(var name in properties){if(name!="document"){element[name]=properties[name]
928 if(FBL.isIE&&name=="class"){propname="className"
929 }if(name!="document"){element.setAttribute(propname,properties[name])
932 this.safeGetWindowLocation=function(window){try{if(window){if(window.closed){return"(window.closed)"
933 }if("location" in window){return window.location+""
936 }}catch(exc){if(FBTrace.DBG_WINDOWS||FBTrace.DBG_ERRORS){FBTrace.sysout("TabContext.getWindowLocati…
962 this.addEvent=function(object,name,handler,useCapture){if(object.addEventListener){object.addEventL…
965 this.removeEvent=function(object,name,handler,useCapture){try{if(object.removeEventListener){object…
967 }}catch(e){if(FBTrace.DBG_ERRORS){FBTrace.sysout("FBL.removeEvent error: ",object,name)
969 this.cancelEvent=function(e,preventDefault){if(!e){return
970 }if(preventDefault){if(e.preventDefault){e.preventDefault()
972 }}if(e.stopPropagation){e.stopPropagation()
978 if(this.Firebug.chrome.type=="popup"){this.addEvent(this.Firebug.chrome.document,name,handler)
986 if(this.Firebug.chrome.type=="popup"){this.removeEvent(this.Firebug.chrome.document,name,handler)
991 this.dispatch=function(listeners,name,args){if(!listeners){return
992 }try{if(typeof listeners.length!="undefined"){if(FBTrace.DBG_DISPATCH){FBTrace.sysout("FBL.dispatch…
996 if(listener[name]){listener[name].apply(listener,args)
997 }}}else{if(FBTrace.DBG_DISPATCH){FBTrace.sysout("FBL.dispatch",name+" to listeners of an object")
999 if(listener[name]){listener[name].apply(listener,args)
1000 }}}}catch(exc){if(FBTrace.DBG_ERRORS){FBTrace.sysout(" Exception in lib.dispatch "+name,exc)
1005 this.disableTextSelection=function(e){if(typeof e.onselectstart!="undefined"){this.addEvent(e,"sele…
1007 if(!this.isFirefox){this.addEvent(e,"mousedown",disableTextSelectionHandler)
1010 this.restoreTextSelection=function(e){if(typeof e.onselectstart!="undefined"){this.removeEvent(e,"s…
1012 if(!this.isFirefox){this.removeEvent(e,"mousedown",disableTextSelectionHandler)
1015 this.getEventFamily=function(eventType){if(!this.families){this.families={};
1025 this.splitURLBase=function(url){if(this.isDataURL(url)){return this.splitDataURL(url)
1029 if(mark!=4){return false
1031 if(point<mark){return false
1038 if(nv.length==2){props[nv[0]]=nv[1]
1039 }}if(props.hasOwnProperty("fileName")){var caller_URL=decodeURIComponent(props.fileName);
1041 if(props.hasOwnProperty("baseLineNumber")){props.path=caller_split.path;
1047 }}else{if(!props.hasOwnProperty("path")){props.path="data:"
1048 }if(!props.hasOwnProperty("name")){props.name=decodeURIComponent(props.encodedContent.substr(0,200)…
1052 if(!m){return{name:url,path:url}
1053 }else{if(!m[2]){return{path:m[1],name:m[1]}
1056 this.getFileExtension=function(url){if(!url){return null
1058 if(queryString!=-1){url=url.substr(0,queryString)
1062 this.isSystemURL=function(url){if(!url){return true
1063 }if(url.length==0){return true
1064 }if(url[0]=="h"){return false
1065 }if(url.substr(0,9)=="resource:"){return true
1066 }else{if(url.substr(0,16)=="chrome://firebug"){return true
1067 }else{if(url=="XPCSafeJSObjectWrapper.cpp"){return true
1068 }else{if(url.substr(0,6)=="about:"){return true
1069 }else{if(url.indexOf("firebug-service.js")!=-1){return true
1073 if(!doc){return false
1074 }if((doc.styleSheets.length&&doc.styleSheets[0].href=="chrome://global/content/xml/XMLPrettyPrint.c…
1082 this.getURIHost=function(uri){try{if(uri){return uri.host
1086 this.isLocalURL=function(url){if(url.substr(0,5)=="file:"){return true
1087 }else{if(url.substr(0,8)=="wyciwyg:"){return true
1092 this.getLocalPath=function(url){if(this.isLocalURL(url)){var fileHandler=ioService.getProtocolHandl…
1115 this.absoluteURLWithDots=function(url,baseURL){if(url[0]=="?"){return baseURL+url
1118 if(m){return url
1120 if(!m){return""
1123 if(url.substr(0,2)=="//"){return m[2]+url
1124 }else{if(url[0]=="/"){return head+url
1125 }else{if(tail[tail.length-1]=="/"){return baseURL+url
1129 this.normalizeURL=function(url){if(!url){return""
1130 }if(url.length<255){url=url.replace(/[^\/]+\/\.\.\//,"","g");
1133 if(url.indexOf("chrome:")==0){var m=reChromeCase.exec(url);
1134 if(m){url="chrome://"+m[1].toLowerCase()+"/"+m[2]
1140 if(q==-1){return[]
1143 if(h!=-1){search=search.substr(0,h)
1144 }if(!search){return[]
1154 if(parts.length==2){if(parts[1].length>maxValueLength){parts[1]=this.$STR("LargeData")
1157 }}catch(e){if(FBTrace.DBG_ERRORS){FBTrace.sysout("parseURLEncodedText EXCEPTION ",e);
1164 if(q==-1){return[]
1167 if(h!=-1){search=search.substr(0,h)
1168 }if(!search){return[]
1178 if(parts.length==2){if(parts[1].length>maxValueLength){parts[1]=this.$STR("LargeData")
1181 }}catch(e){if(FBTrace.DBG_ERRORS){FBTrace.sysout("parseURLEncodedText EXCEPTION ",e);
1200 }catch(e){if(FBTrace.DBG_ERRORS){FBTrace.sysout("lib.getResource FAILS for "+aURL,e)
1204 if(matches){jsonString=matches[1];
1205 if(jsonString[0]=="\\"&&jsonString[1]=="n"){jsonString=jsonString.substr(2)
1206 }if(jsonString[jsonString.length-2]=="\\"&&jsonString[jsonString.length-1]=="n"){jsonString=jsonStr…
1207 }}if(jsonString.indexOf("&&&START&&&")){regex=new RegExp(/&&&START&&& (.+) &&&END&&&/);
1209 if(matches){jsonString=matches[1]
1214 }catch(e){if(FBTrace.DBG_ERRORS||FBTrace.DBG_JSONVIEWER){FBTrace.sysout("jsonviewer.parseJSON EXCEP…
1221 this.setSelectionRange=function(input,start,length){if(input.createTextRange){var range=input.creat…
1225 }else{if(input.setSelectionRange){input.setSelectionRange(start,length);
1228 this.getInputSelectionStart=function(input){if(document.selection){var range=input.ownerDocument.se…
1230 if(text){return input.value.indexOf(text)
1233 }}else{if(typeof input.selectionStart!="undefined"){return input.selectionStart
1236 function onOperaTabBlur(e){if(this.lastKey==9){this.focus()
1256 this.isFunction=function(object){if(!object){return false
1261 this.instanceOf=function(object,className){if(!object||typeof object!="object"){return false
1262 }if(object.ownerDocument){var win=object.ownerDocument.defaultView||object.ownerDocument.parentWind…
1263 if(className in win&&object instanceof win[className]){return true
1265 if(className in win){return object instanceof win[className]
1267 if(!cache){return false
1271 for(var name in obj){if(!obj.hasOwnProperty(name)){continue
1273 if(n=="property"&&!(value in object)||n=="method"&&!this.isFunction(object[value])||n=="value"&&(""…
1279 var getDomMemberMap2=function(name){if(!domMemberMap2Sandbox){var doc=Firebug.chrome.document;
1288 if(name=="Window"){object=domMemberMap2Sandbox.window
1289 }else{if(name=="Document"){object=domMemberMap2Sandbox.document
1290 }else{if(name=="HTMLScriptElement"){object=domMemberMap2Sandbox.document.createElement("script")
1291 }else{if(name=="HTMLAnchorElement"){object=domMemberMap2Sandbox.document.createElement("a")
1292 }else{if(name.indexOf("Element")!=-1){object=domMemberMap2Sandbox.document.createElement("div")
1293 }}}}}if(object){for(var n in object){props.push(n)
1297 this.getDOMMembers=function(object){if(!domMemberCache){FBL.domMemberCache=domMemberCache={};
1303 }}}try{if(this.instanceOf(object,"Window")){return domMemberCache.Window
1304 }else{if(this.instanceOf(object,"Document")||this.instanceOf(object,"XMLDocument")){return domMembe…
1305 }else{if(this.instanceOf(object,"Location")){return domMemberCache.Location
1306 }else{if(this.instanceOf(object,"HTMLImageElement")){return domMemberCache.HTMLImageElement
1307 }else{if(this.instanceOf(object,"HTMLAnchorElement")){return domMemberCache.HTMLAnchorElement
1308 }else{if(this.instanceOf(object,"HTMLInputElement")){return domMemberCache.HTMLInputElement
1309 }else{if(this.instanceOf(object,"HTMLButtonElement")){return domMemberCache.HTMLButtonElement
1310 }else{if(this.instanceOf(object,"HTMLFormElement")){return domMemberCache.HTMLFormElement
1311 }else{if(this.instanceOf(object,"HTMLBodyElement")){return domMemberCache.HTMLBodyElement
1312 }else{if(this.instanceOf(object,"HTMLHtmlElement")){return domMemberCache.HTMLHtmlElement
1313 }else{if(this.instanceOf(object,"HTMLScriptElement")){return domMemberCache.HTMLScriptElement
1314 }else{if(this.instanceOf(object,"HTMLTableElement")){return domMemberCache.HTMLTableElement
1315 }else{if(this.instanceOf(object,"HTMLTableRowElement")){return domMemberCache.HTMLTableRowElement
1316 }else{if(this.instanceOf(object,"HTMLTableCellElement")){return domMemberCache.HTMLTableCellElement
1317 }else{if(this.instanceOf(object,"HTMLIFrameElement")){return domMemberCache.HTMLIFrameElement
1318 }else{if(this.instanceOf(object,"SVGSVGElement")){return domMemberCache.SVGSVGElement
1319 }else{if(this.instanceOf(object,"SVGElement")){return domMemberCache.SVGElement
1320 }else{if(this.instanceOf(object,"Element")){return domMemberCache.Element
1321 }else{if(this.instanceOf(object,"Text")||this.instanceOf(object,"CDATASection")){return domMemberCa…
1322 }else{if(this.instanceOf(object,"Attr")){return domMemberCache.Attr
1323 }else{if(this.instanceOf(object,"Node")){return domMemberCache.Node
1324 }else{if(this.instanceOf(object,"Event")||this.instanceOf(object,"EventCopy")){return domMemberCach…
1326 }}}}}}}}}}}}}}}}}}}}}}}catch(E){if(FBTrace.DBG_ERRORS){FBTrace.sysout("lib.getDOMMembers FAILED ",E)
1364 if(typeof KeyEvent=="undefined"){this.KeyEvent={DOM_VK_CANCEL:3,DOM_VK_HELP:6,DOM_VK_BACK_SPACE:8,D…
1378 if(s=="Uninitialized"||s=="Complete"||s=="Loaded"){this.sendRequest()
1380 if(data){if(typeof data=="string"){r[rl++]=data
1381 }else{if(data.innerHTML&&data.elements){for(var i=0,el,l=(el=data.elements).length;
1383 i++){if(el[i].name){r[rl++]=encodeURIComponent(el[i].name);
1395 if(data=FBL.Ajax.serialize(r.data)){t.setRequestHeader("Content-Type",r.contentType)
1401 if(fn=o["on"+state]){fn(this.getResponse(o),o)
1402 }if(state=="Complete"){var success=t.status==200,response=this.getResponse(o);
1403 if(fn=o.onUpdate){fn(response,o)
1404 }if(fn=o["on"+(success?"Success":"Failure")]){fn(response,o)
1406 if(this.requests.length>0){setTimeout(this.sendRequest,10)
1408 if(t.status!=200){return t.statusText
1409 }else{if(type=="text"){return t.responseText
1410 }else{if(type=="html"){return t.responseText
1411 }else{if(type=="xml"){return t.responseXML
1412 }else{if(type=="json"){return eval("("+t.responseText+")")
1415 this.createCookie=function(name,value,days){if("cookie" in document){if(days){var date=new Date();
1421 this.readCookie=function(name){if("cookie" in document){var nameEQ=name+"=";
1427 }if(c.indexOf(nameEQ)==0){return c.substring(nameEQ.length,c.length)
1460 FBL.$STRF=function(name,args){if(!oSTR.hasOwnProperty(name)){return name
1469 if(part&&typeof(part)=="object"){if(++trialIndex>objects.length){format="";
1477 if(part&&typeof(part)=="object"){result.push(""+args.shift())
1482 if(format.length<=0){return parts
1486 m=reg.exec(format)){if(m[0].substr(0,2)=="%%"){parts.push(format.substr(0,m.index));
1509 …Types:panelTypes,panelTypeMap:panelTypeMap,reps:reps,initialize:function(){if(FBTrace.DBG_INITIALI…
1515 if(Firebug.Inspector&&Firebug.Inspector.create){Firebug.Inspector.create()
1516 }if(FBL.CssAnalyzer&&FBL.CssAnalyzer.processAllStyleSheets){FBL.CssAnalyzer.processAllStyleSheets(F…
1519 if(Firebug.disableResourceFetching){Firebug.Console.logFormatted(['Some Firebug Lite features are n…
1520 }if(Env.onLoad){var onLoad=Env.onLoad;
1523 }},shutdown:function(){if(Firebug.saveCookies){Firebug.savePrefs()
1524 }if(Firebug.Inspector){Firebug.Inspector.destroy()
1527 for(var name in chromeMap){if(chromeMap.hasOwnProperty(name)){try{chromeMap[name].destroy()
1528 }catch(E){if(FBTrace.DBG_ERRORS){FBTrace.sysout("chrome.destroy() failed to: "+name)
1534 if(FBTrace.DBG_INITIALIZE){FBTrace.sysout("Firebug.registerModule")
1539 if(panelType.prototype.parentPanel){parentPanelMap[panelType.prototype.parentPanel]=1
1540 }}if(FBTrace.DBG_INITIALIZE){for(var i=0;
1550 if(isIE&&isFunction(object)){type="function"
1554 try{if(rep.supportsObject(object,type)){if(FBTrace.DBG_DOM){FBTrace.sysout("getRep type: "+type+" o…
1556 }}catch(exc){if(FBTrace.DBG_ERRORS){FBTrace.sysout("firebug.getRep FAILS: ",exc.message||exc);
1562 child=child.parentNode){if(hasClass(child,"repTarget")){target=child
1563 }if(child.repObject){if(!target&&hasClass(child,"repIgnore")){break
1567 child=child.parentNode){if(child.repObject){return child
1570 child=child.nextSibling){if(child.repObject==object){return child
1574 },setPrefs:function(prefs){for(var name in prefs){if(prefs.hasOwnProperty(name)){Firebug[name]=pref…
1582 for(var name in options){if(options.hasOwnProperty(name)){Firebug[name]=options[name]
1583 }}if(Firebug.context&&persistedState){Firebug.context.persistedState=persistedState
1587 for(var name in EnvOptions){if(EnvOptions.hasOwnProperty(name)){options[name]=Firebug[name]
1589 if(!persistedState){persistedState=Firebug.context.persistedState=FBL.defaultPersistedState
1597 if(!Env.Options.enablePersistent||Env.Options.enablePersistent&&Env.isChromeContext||Env.isDebugMod…
1607 Firebug.Listener.prototype={addListener:function(listener){if(!this.fbListeners){this.fbListeners=[]
1615 if(this.hasSidePanel){this.sidePanelBar=extend({},PanelBar);
1619 if(options.isPreRendered){this.panelNode=$(panelId);
1622 if(options.hasToolButtons){this.toolButtonsNode=$(panelId+"Buttons")
1623 }if(options.hasStatusBar){this.statusBarBox=$("fbStatusBarBox");
1630 if(isIE6){tabNode.href="javascript:void(0)"
1634 if(options.hasToolButtons){this.toolButtonsNode=createElement("span",{id:panelId+"Buttons",classNam…
1636 }if(options.hasStatusBar){this.statusBarBox=$("fbStatusBarBox");
1640 if(FBTrace.DBG_INITIALIZE){FBTrace.sysout("Firebug.Panel.create",this.name)
1642 },destroy:function(state){if(FBTrace.DBG_INITIALIZE){FBTrace.sysout("Firebug.Panel.destroy",this.na…
1643 }if(this.hasSidePanel){this.sidePanelBar.destroy();
1654 },initialize:function(){if(FBTrace.DBG_INITIALIZE){FBTrace.sysout("Firebug.Panel.initialize",this.n…
1655 }if(this.hasSidePanel){this.sidePanelBar.initialize()
1661 if(options.hasStatusBar){this.statusBarBox=$("fbStatusBarBox");
1663 }if(options.hasToolButtons){this.toolButtonsNode=$(panelId+"Buttons")
1669 if(Firebug.InfoTip){Firebug.InfoTip.initializeBrowser(Firebug.chrome)
1670 }},shutdown:function(){if(FBTrace.DBG_INITIALIZE){FBTrace.sysout("Firebug.Panel.shutdown",this.name)
1671 }if(Firebug.InfoTip){Firebug.InfoTip.uninitializeBrowser(Firebug.chrome)
1672 }if(Firebug.chrome.largeCommandLineVisible){Firebug.chrome.hideLargeCommandLine()
1673 }if(this.hasSidePanel){}this.lastScrollTop=this.containerNode.scrollTop;
1675 },detach:function(oldChrome,newChrome){if(oldChrome&&oldChrome.selectedPanel&&oldChrome.selectedPan…
1676 }},reattach:function(doc){if(this.options.innerHTMLSync){this.synchronizeUI()
1679 if(options.hasStatusBar){this.statusBarBox.style.display="inline";
1681 }if(options.hasToolButtons){this.toolButtonsNode.style.display="inline"
1684 if(!this.parentPanel){Firebug.chrome.layout(this)
1686 if(options.hasStatusBar){this.statusBarBox.style.display="none";
1688 }if(options.hasToolButtons){this.toolButtonsNode.style.display="none"
1691 …name,value){},showToolbarButtons:function(buttonsId,show){try{if(!this.context.browser){if(FBTrace…
1694 if(buttons){collapse(buttons,show?"false":"true")
1695 }}catch(exc){if(FBTrace.DBG_ERRORS){FBTrace.dumpProperties("firebug.Panel showToolbarButtons FAILS"…
1696 if(!this.context.browser){FBTrace.dumpStack("firebug.Panel showToolbarButtons no browser")
1699 },select:function(object,forceUpdate){if(!object){object=this.getDefaultSelection(this.context)
1700 }if(FBTrace.DBG_PANELS){FBTrace.sysout("firebug.select "+this.name+" forceUpdate: "+forceUpdate+" "…
1701 }if(forceUpdate||object!=this.selection){this.selection=object;
1703 }},updateSelection:function(object){},markChange:function(skipSelf){if(this.dependents){if(skipSelf…
1706 if(panelName!=this.name){this.context.invalidatePanels(panelName)
1712 if(locA.path>locB.path){return 1
1713 }if(locA.path<locB.path){return -1
1714 }if(locA.name>locB.name){return 1
1715 }if(locA.name<locB.name){return -1
1720 curPos++){}function transformIndex(index){if(reverse){var intermediate=curPos-index-1;
1726 if(match(object)){this.navigate(object);
1741 if(!tab){return
1742 }if(show){tab.setAttribute("highlight","true")
1746 if(!tab){tab=chrome.$("fbPanelBar1").getTab(this.name)
1750 },onContextMenu:function(event){if(!this.getContextMenuItems){return
1754 if(!menu){return
1759 Firebug.MeasureBox={startMeasuring:function(target){if(!this.measureBox){this.measureBox=target.own…
1767 if(!Firebug.showTextNodesWithWhitespace){value=value.replace(/\t/g,"mmmmmm").replace(/\ /g,"m")
1775 if(FBL.domplate){Firebug.Rep=domplate({className:"",inspectable:true,supportsObject:function(object…
1781 if(m){return m[1]
1782 }else{if(isIE&&(label=="[object]"||typeof object=="object"&&typeof label=="undefined")){return"Obje…
1798 i++){if(typeof arg[0]=="string"){arg[0]=$$(arg[0],this.controllerContext)
1808 j++){if(arg[0]==c[0]&&arg[1]==c[1]&&arg[2]==c[3]){removeEvent.apply(this,c)
1815 if(ownerPanel){ownerPanel.sidePanelBarNode=createElement("span");
1821 i++){if(!ownerPanel&&!p.prototype.parentPanel||ownerPanel&&p.prototype.parentPanel&&ownerPanel.name…
1830 },initialize:function(){if(this.ownerPanel){this.ownerPanel.sidePanelBarNode.style.display="inline"
1837 if(selectedPanel){removeClass(selectedPanel.tabNode,"fbSelectedTab");
1840 }if(this.ownerPanel){this.ownerPanel.sidePanelBarNode.style.display="none"
1846 if(panel.hasOwnProperty(panelName)){panel.destroy()
1849 if(panel&&selectedPanel!=panel){if(selectedPanel){removeClass(selectedPanel.tabNode,"fbSelectedTab"…
1852 }if(!panel.parentPanel){Firebug.context.persistedState.selectedPanelName=panelName
1864 if(this.element){this.container=this.element.parentNode
1868 if(this.title){this.element.title=this.title
1872 if(this.shouldDestroy){this.container.removeChild(this.element)
1879 if(this.type=="normal"){this.addController([element,"mouseup",this.handleUnpress],[element,"mouseou…
1884 },changeDisplay:function(display){if(display!=this.display){if(display=="pressed"){setClass(this.el…
1885 }else{if(display=="unpressed"){removeClass(this.element,this.pressedClassName)
1888 if(this.type=="normal"){this.changeDisplay("pressed");
1890 }else{if(this.type=="toggle"){if(this.state=="pressed"){this.changeState("unpressed");
1891 if(this.onUnpress){this.onUnpress.apply(this.owner,arguments)
1893 if(this.onPress){this.onPress.apply(this.owner,arguments)
1894 }}if(this.onClick){this.onClick.apply(this.owner,arguments)
1897 if(this.beforeClick){this.changeDisplay("unpressed")
1900 if(this.type=="normal"){if(this.onClick){this.onClick.apply(this.owner)
1909 if(isIE6){menuItemProps.href="javascript:void(0)"
1910 }if(FBL.domplate){var MenuPlate=domplate(Firebug.Rep,{tag:DIV({"class":"fbMenu fbShadow"},DIV({"cla…
1914 if(typeof item=="string"&&item.indexOf("-")==0){result.push({tag:this.separatorTag});
1923 if(type=="checkbox"){className+="fbMenuCheckBox ";
1925 }else{if(type=="radiobutton"){className+="fbMenuRadioButton ";
1927 }else{if(type=="group"){className+="fbMenuGroup ";
1929 }else{if(type=="shortcut"){className+="fbMenuShortcut ";
1931 }}}}if(item.checked){className+="fbMenuChecked "
1932 }else{if(item.selected){className+="fbMenuRadioSelected "
1933 }}if(item.disabled){className+="fbMenuDisabled "
1939 }FBL.Menu=function(options){if(!options.element){if(options.getItems){options.items=options.getItem…
1942 if(typeof this.element=="string"){this.id=this.element;
1944 }else{if(this.id){this.element.id=this.id
1955 if(this.parentMenu){this.parentMenu.childMenu=null
1965 if(this.isVisible){return
1968 if(this.parentMenu){var oldChildMenu=this.parentMenu.childMenu;
1969 if(oldChildMenu&&oldChildMenu!=this){oldChildMenu.destroy()
1983 if(isFunction(this.onShow)){this.onShow.apply(this,arguments)
1986 if(!this.isVisible){return
1988 if(this.childMenu){this.childMenu.destroy();
1990 }if(this.parentTarget){removeClass(this.parentTarget,"fbMenuGroupSelected")
1993 if(isFunction(this.onHide)){this.onHide.apply(this,arguments)
2004 },clearHideTimeout:function(){if(this.hideTimeout){Firebug.chrome.window.clearTimeout(this.hideTime…
2006 }},clearShowChildTimeout:function(){if(this.showChildTimeout){Firebug.chrome.window.clearTimeout(th…
2013 if(!target||hasClass(target,"fbMenuGroup")){return false
2014 }if(target&&!hasClass(target,"fbMenuDisabled")){var type=target.getAttribute("type");
2015 if(type=="checkbox"){var checked=target.getAttribute("checked");
2018 if(wasChecked){removeClass(target,"fbMenuChecked");
2022 }if(isFunction(this.onCheck)){this.onCheck.call(this,target,value,!wasChecked)
2023 }}if(type=="radiobutton"){var selectedRadios=getElementsByClass(target.parentNode,"fbMenuRadioSelec…
2028 if(radio.getAttribute("group")==group){removeClass(radio,"fbMenuRadioSelected");
2034 if(isFunction(cmd)){handler=cmd
2035 }else{if(typeof cmd=="string"){handler=this[cmd]
2037 if(handler){closeMenu=handler.call(this,target)!==false
2038 }if(closeMenu){topParent.hide()
2042 if(!target){removeEvent(Firebug.chrome.document,"mousedown",this.handleWindowMouseDown);
2048 if(!target){return
2050 if(childMenu){removeClass(childMenu.parentTarget,"fbMenuGroupSelected");
2051 if(childMenu.parentTarget!=target&&childMenu.isVisible){childMenu.clearHideTimeout();
2054 }}if(hasClass(target,"fbMenuGroup")){this.showChildMenu(target)
2075 if(isIE&&!this.window.eval){this.window.execScript("null");
2076 if(!this.window.eval){throw new Error("Firebug Error: eval() method not found in this window")
2080 if(win.setTimeout==this.setTimeout){throw new Error("setTimeout recursion")
2082 if(!this.timeouts){this.timeouts={}
2086 if(this.timeouts){delete this.timeouts[timeout]
2089 if(!this.intervals){this.intervals={}
2093 if(this.intervals){delete this.intervals[timeout]
2094 }},invalidatePanels:function(){if(!this.invalidPanels){this.invalidPanels={}
2098 if(!Firebug.chrome||!Firebug.chrome.selectedPanel){return
2100 if(panel&&!panel.noRefresh){this.invalidPanels[panelName]=1
2101 }}if(this.refreshTimeout){this.clearTimeout(this.refreshTimeout);
2105 if(panel){if(panel.visible&&!panel.editing){panel.refresh()
2107 }if(panel.editing){invalids.push(panelName)
2110 if(invalids.length){this.invalidatePanels.apply(this,invalids)
2114 if(context=="window"){if(isObjectLiteral){cmd=api?"with("+api+"){ ("+expr+") }":"("+expr+")"
2118 if(result&&result[evalError]){var msg=result.name?(result.name+": "):"";
2120 if(errorHandler){result=errorHandler(msg)
2124 if(typeof this.window.innerWidth=="number"){width=this.window.innerWidth;
2126 }else{if((el=this.document.documentElement)&&(el.clientHeight||el.clientWidth)){width=el.clientWidt…
2128 }else{if((el=this.document.body)&&(el.clientHeight||el.clientWidth)){width=el.clientWidth;
2132 if(!isIEQuiksMode&&(el=this.document.documentElement)&&(el.scrollHeight||el.scrollWidth)){width=el.…
2134 }if((el=this.document.body)&&(el.scrollHeight||el.scrollWidth)&&(el.scrollWidth>width||el.scrollHei…
2138 if(typeof this.window.pageYOffset=="number"){top=this.window.pageYOffset;
2140 }else{if((el=this.document.body)&&(el.scrollTop||el.scrollLeft)){top=el.scrollTop;
2142 }else{if((el=this.document.documentElement)&&(el.scrollTop||el.scrollLeft)){top=el.scrollTop;
2145 },getElementFromPoint:function(x,y){if(shouldFixElementFromPoint){var scroll=this.getWindowScrollPo…
2155 if(el.getBoundingClientRect){var rect=el.getBoundingClientRect();
2170 if(!cssValue){return result
2171 }if(cssValue.toLowerCase()=="auto"){return result
2174 if(m){result.value=m[1]-0;
2177 },getMeasurementInPixels:function(el,name){if(!el){return null
2181 if(unit=="px"){return value
2182 }else{if(unit=="pt"){return this.pointsToPixels(name,value)
2183 }else{if(unit=="em"){return this.emToPixels(el,value)
2184 }else{if(unit=="%"){return this.percentToPixels(el,value)
2185 }else{if(unit=="ex"){return this.exToPixels(el,value)
2194 if(isIE){var propName,cssValue;
2200 if(cssValue=="auto"){if(!autoMargin){autoMargin=this.getCSSAutoMarginBox(el)
2207 },getCSSAutoMarginBox:function(el){if(isIE&&" meta title input script link a ".indexOf(" "+el.nodeN…
2208 }if(isIE&&" h1 h2 h3 h4 h5 h6 h7 ul p ".indexOf(" "+el.nodeName.toLowerCase()+" ")==-1){return{top:…
2210 if(false&&isIEStantandMode){var scrollSize=Firebug.browser.getWindowScrollSize();
2226 if(size.unit=="px"){return size.value
2229 if(calibration){divStyle+=" font-size:"+calibration+"px;"
2243 },emToPixels:function(el,value){if(!el){return null
2246 },exToPixels:function(el,value){if(!el){return null
2253 },percentToPixels:function(el,value){if(!el){return null
2266 FBL.FirebugChrome={chromeMap:{},htmlSelectionStack:[],create:function(){if(FBTrace.DBG_INITIALIZE){…
2268 },initialize:function(){if(FBTrace.DBG_INITIALIZE){FBTrace.sysout("FirebugChrome.initialize","initi…
2269 }if(Env.chrome.type=="frame"||Env.chrome.type=="div"){ChromeMini.create(Env.chrome)
2273 if(Env.Options.enablePersistent&&chrome.type=="popup"){var frame=FirebugChrome.chromeMap.frame;
2274 if(frame){frame.close()
2277 if(FBChrome.hasOwnProperty(name)&&!isFunction(prop)){this[name]=prop
2284 …context.document.getElementsByTagName("body")[0],formatNode=function(node){if(!Env.isDebugMode){no…
2299 if(style.styleSheet){style.styleSheet.cssText=rules
2305 if(isIE){setTimeout(function(){node.firstChild.style.height="1px";
2314 try{if(type=="div"){createChromeDiv();
2316 }else{if(isChromeFrame){var node=chrome.node=createGlobalElement("iframe");
2331 if(node){try{node.focus()
2336 }}}if(!useLocalSkin){var tpl=getChromeTemplate(!isChromeFrame),doc=isChromeFrame?node.contentWindow…
2339 }var win,waitDelay=useLocalSkin?isChromeFrame?200:300:100,waitForWindow=function(){if(isChromeFrame…
2347 if(/access/i.test(msg)){if(isChromeFrame){body.removeChild(node)
2348 }else{if(type=="popup"){node.close()
2353 if(FBTrace.DBG_INITIALIZE){FBTrace.sysout("Chrome onChromeLoad","chrome window loaded")
2354 }if(Env.Options.enablePersistent){Env.FirebugChrome=FirebugChrome;
2357 if(Env.isDevelopmentMode){Env.browser.window.FBDev.loadChromeApplication(chrome)
2362 }}else{if(chrome.type=="frame"||chrome.type=="div"){setTimeout(function(){FBL.Firebug.initialize()
2364 }else{if(chrome.type=="popup"){var oldChrome=FirebugChrome.chromeMap.frame;
2401 if(Firebug.Inspector){this.inspectButton=new Button({type:"toggle",element:$("fbChrome_btInspect"),…
2402 }},destroy:function(){if(Firebug.Inspector){this.inspectButton.destroy()
2419 if(target){this.updateMenu(target)
2423 if(enabled){Menu.check(firstOption)
2425 }if(enabled){Menu.check(options[0])
2432 if(pref){Menu.check(option)
2434 }if(enabled){Menu.enable(option)
2441 if(menu.isVisible){menu.hide()
2448 },initialize:function(){if(Env.bookmarkletOutdated){Firebug.Console.logFormatted(["A new bookmarkle…
2449 }if(Firebug.Console){Firebug.Console.flush()
2450 }if(Firebug.Trace){FBTrace.flush(Firebug.Trace)
2451 }if(FBTrace.DBG_INITIALIZE){FBTrace.sysout("Firebug.chrome.initialize","initializing chrome applica…
2485 if(isIE6&&Firebug.Selector){var as=$$(".fbHover");
2489 }}if(Firebug.Inspector){this.inspectButton.initialize()
2493 if(Firebug.context.persistedState.selectedPanelName=="Console"&&Firebug.CommandLine){Firebug.chrome…
2496 if(FBL.isLeftClick(event)){var editable=FBL.getAncestorByClass(target,"editable");
2497 if(editable){Firebug.Editor.startEditing(editable);
2499 }else{if(!hasClass(target,"textEditorInner")){Firebug.Editor.stopEditing()
2500 }}}else{if(FBL.isMiddleClick(event)&&Firebug.getRepNode(target)){FBL.cancelEvent(event)
2505 if(!panel){if(Firebug.chrome.selectedPanel.sidePanelBar){panel=Firebug.chrome.selectedPanel.sidePan…
2513 if(event.keyCode==keyCode&&(!filter||filter(event))){listener.listener();
2519 if(!onKeyCodeListenersMap[keyCode]){onKeyCodeListenersMap[keyCode]=[]
2527 if(FBL.domplate){this.testMenu()
2528 }},shutdown:function(){if(Firebug.Inspector){this.inspectButton.shutdown()
2561 },toggle:function(forceOpen,popup){if(popup){this.detach()
2562 }else{if(isOpera&&Firebug.chrome.type=="popup"&&Firebug.chrome.node.closed){var frame=FirebugChrome…
2567 }if(Firebug.chrome.type=="popup"){return
2569 if(shouldOpen){this.open()
2571 }}},detach:function(){if(!FirebugChrome.chromeMap.popup){this.close();
2578 if(panel.options.innerHTMLSync){panel.panelNode.innerHTML=oldPanelMap[name].panelNode.innerHTML
2580 if(newChrome.type=="popup"){newChrome.initialize()
2587 if(isIE||isOpera){fbVSplitterStyle.height=Math.max(y-topPartialHeight-commandLineHeight,0)+"px"
2590 if(Firebug.chrome.sidePanelVisible){sideWidthValue=Math.max(sideWidthValue-6,0);
2594 if(Firebug.chrome.largeCommandLineVisible){fbLargeCommandLine=$("fbLargeCommandLine");
2605 if(noFixedPosition&&(self.type=="frame"||self.type=="div")){self.fixIEPosition()
2607 },layout:function(panel){if(FBTrace.DBG_CHROME){FBTrace.sysout("Chrome.layout","")
2613 if(!chrome.largeCommandLineVisible){chrome.largeCommandLineVisible=true;
2614 if(chrome.selectedPanel.options.hasCommandLine){if(Firebug.CommandLine){Firebug.CommandLine.blur()
2623 if(Firebug.CommandLine){Firebug.CommandLine.setMultiLine(true)
2624 }}},hideLargeCommandLine:function(){if(Firebug.chrome.largeCommandLineVisible){Firebug.chrome.large…
2625 if(Firebug.CommandLine){Firebug.CommandLine.setMultiLine(false)
2632 if(Firebug.chrome.selectedPanel.options.hasCommandLine){changeCommandLineVisibility(true)
2635 if(focusCommandLineState==0||selectedPanelName!="Console"){focusCommandLineState=0;
2638 }if(focusCommandLineState==1){panelToSelect=lastFocusedPanelName
2640 try{if(Firebug.CommandLine){if(panelToSelect=="Console"){Firebug.CommandLine.focus()
2645 if(isFirefox){this.node.style.display="block"
2646 }if(Env.Options.startInNewWindow){this.close();
2649 }if(Env.Options.startOpened){this.open()
2653 if(Firebug.saveCookies){Firebug.savePrefs()
2665 if(!Env.Options.enablePersistent){this.addController([Firebug.browser.window,"unload",Firebug.shutd…
2666 }if(noFixedPosition){this.addController([Firebug.browser.window,"scroll",this.fixIEPosition])
2676 },open:function(){if(!Firebug.context.persistedState.isOpen){Firebug.context.persistedState.isOpen=…
2677 if(Env.isChromeExtension){localStorage.setItem("Firebug","1,1")
2680 if(Firebug.showIconWhenHidden){if(ChromeMini.isInitialized){ChromeMini.shutdown()
2687 if(noFixedPosition){self.fixIEPosition()
2690 }},close:function(){if(Firebug.context.persistedState.isOpen){if(this.isInitialized){this.shutdown()
2692 if(Env.isChromeExtension){localStorage.setItem("Firebug","1,0")
2694 if(Firebug.showIconWhenHidden){node.style.visibility="hidden";
2700 }}},deactivate:function(){if(Env.isChromeExtension){localStorage.removeItem("Firebug");
2712 if((this.type=="frame"||this.type=="div")&&(bodyStyle.marginLeft||bodyStyle.marginRight)){this.node…
2713 }if(fbVSplitterStyle){fbVSplitterStyle.right=Firebug.context.persistedState.sidePanelWidth+"px"
2726 if(errors.offsetWidth){width+=errors.offsetWidth+10
2732 if(this.node.nodeName.toLowerCase()=="iframe"){node.setAttribute("allowTransparency","true");
2735 }if(noFixedPosition){this.fixIEPosition()
2737 if(noFixedPosition){this.addController([Firebug.browser.window,"scroll",this.fixIEPosition])
2744 if(this.node.nodeName.toLowerCase()=="iframe"){node.setAttribute("allowTransparency","false");
2747 }if(noFixedPosition){this.fixIEPosition()
2757 if(Env.Options.enablePersistent){this.persist=bind(this.persist,this);
2769 if(Firebug.saveCookies){Firebug.savePrefs()
2771 if(frame){dispatch(frame.panelMap,"detach",[this,frame]);
2773 }if(Env.Options.enablePersistent){removeEvent(Firebug.browser.window,"unload",this.persist)
2783 try{if(window.opener&&!window.opener.FirebugOldBrowser&&(doc=window.opener.document)){try{if(Env.is…
2808 if(visible!=last){if(visible){fbBottom.className="";
2809 if(Firebug.CommandLine){Firebug.CommandLine.activate()
2810 }}else{if(Firebug.CommandLine){Firebug.CommandLine.deactivate()
2815 if(Firebug.chrome.sidePanelVisible!=last){fbPanelBox2.className=Firebug.chrome.sidePanelVisible?"":…
2821 if(keyCode==123&&(!isFirefox&&!shiftKey||shiftKey&&isFirefox)){Firebug.chrome.toggle(false,ctrlKey);
2823 if(Env.isChromeExtension){Firebug.GoogleChrome.dispatch("FB_enableIcon")
2824 }}else{if(keyCode==67&&ctrlKey&&shiftKey){Firebug.Inspector.toggleInspect();
2826 }else{if(keyCode==76&&ctrlKey&&shiftKey){Firebug.chrome.focusCommandLine();
2834 if(isIE){addEvent(Firebug.browser.document.documentElement,"mouseleave",onHSplitterMouseUp)
2841 if(!win){return
2842 }if(win!=win.parent){var frameElement=win.frameElement;
2843 if(frameElement){var framePos=Firebug.browser.getElementPosition(frameElement).top;
2845 if(frameElement.style.position!="fixed"){clientY-=Firebug.browser.getWindowScrollPosition().top
2846 }}}if(isOpera&&isQuiksMode&&win.frameElement.id=="FirebugUI"){clientY=Firebug.browser.getWindowSize…
2848 if(new Date().getTime()-lastHSplitterMouseMove>chromeRedrawSkipRate){lastHSplitterMouseMove=new Dat…
2850 }else{if(!onHSplitterMouseMoveTimer){onHSplitterMouseMoveTimer=setTimeout(handleHSplitterMouseMove,…
2854 var handleHSplitterMouseMove=function(){if(onHSplitterMouseMoveTimer){clearTimeout(onHSplitterMouse…
2868 if(noFixedPosition){Firebug.chrome.fixIEPosition()
2873 if(isIE){removeEvent(Firebug.browser.document.documentElement,"mouseleave",onHSplitterMouseUp)
2882 var onVSplitterMouseMove=function onVSplitterMouseMove(event){if(new Date().getTime()-lastVSplitter…
2883 if(target&&target.ownerDocument){var clientX=event.clientX;
2885 if(win!=win.parent){clientX+=win.frameElement?win.frameElement.offsetLeft:0
2911 if(!id){id=++cacheUID;
2913 }if(!map.hasOwnProperty(id)){map[id]=element;
2917 if(!id){return
2918 }if(supportsDeleteExpando){delete element[CID]
2919 }else{if(element.removeAttribute){element.removeAttribute(CID)
2925 },each:function(callback){for(var key in map){if(map.hasOwnProperty(key)){callback(key,map[key])
2926 }}},data:function(element,name,value){if(value){if(!name){return null
2935 if(!supportsDeleteExpando&&id&&map.hasOwnProperty(id)&&map[id]!=element){element.removeAttribute(CI…
2951 Firebug.Lite.Proxy._callbacks[uid]=function(data){if(callback){callback(data)
2956 if(doc.documentElement){doc.documentElement.appendChild(script)
2960 if(match){source=match[1]
2965 var fetchResource=function(url){if(Firebug.disableResourceFetching){var source=sourceMap[url]=Fireb…
2967 }if(sourceMap.hasOwnProperty(url)){return sourceMap[url]
2974 var fetchProxyResource=function(url){if(sourceMap.hasOwnProperty(url)){return sourceMap[url]
3005 }if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(…
3015 if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)
3016 }if(typeof rep==="function"){value=rep.call(holder,key,value)
3020 case"object":if(!value){return"null"
3023 if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;
3030 }if(rep&&typeof rep==="object"){length=rep.length;
3034 if(typeof k==="string"){v=str(k,value);
3035 if(v){partial.push(quote(k)+(gap?": ":":")+v)
3036 }}}}else{for(k in value){if(Object.hasOwnProperty.call(value,k)){v=str(k,value);
3037 if(v){partial.push(quote(k)+(gap?": ":":")+v)
3041 }}if(typeof JSON.stringify!=="function"){JSON.stringify=function(value,replacer,space){var i;
3044 if(typeof space==="number"){for(i=0;
3047 }}else{if(typeof space==="string"){indent=space
3049 if(replacer&&typeof replacer!=="function"&&(typeof replacer!=="object"||typeof replacer.length!=="n…
3052 }if(typeof JSON.parse!=="function"){JSON.parse=function(text,reviver){var j;
3054 if(value&&typeof value==="object"){for(k in value){if(Object.hasOwnProperty.call(value,k)){v=walk(v…
3055 if(v!==undefined){value[k]=v
3060 if(cx.test(text)){text=text.replace(cx,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)…
3062 }if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\…
3075 if(typeof val=="undefined"){val={}
3081 api.deserialize=function(value){if(typeof value!="string"){return undefined
3088 }}if(isLocalStorageNameSupported()){storage=win[localStorageName];
3097 }else{if(isGlobalStorageNameSupported()){storage=win[globalStorageName][win.location.hostname];
3106 }else{if(doc.documentElement.addBehavior){var storage=doc.createElement("div");
3132 if(api.get(namespace)!=namespace){api.disabled=true
3137 if(typeof module!="undefined"){module.exports=store
3146 if(context.nodeType!==1&&context.nodeType!==9){return[]
3147 }if(!selector||typeof selector!=="string"){return results
3151 if(m[2]){extra=m[3];
3153 }}if(parts.length>1&&origPOS.exec(selector)){if(parts.length===2&&Expr.relative[parts[0]]){set=posP…
3156 if(Expr.relative[selector]){selector+=parts.shift()
3158 }}}else{if(!seed&&parts.length>1&&context.nodeType===9&&!contextXML&&Expr.match.ID.test(parts[0])&&…
3160 }if(context){var ret=seed?{expr:parts.pop(),set:makeArray(seed)}:Sizzle.find(parts.pop(),parts.leng…
3162 if(parts.length>0){checkSet=makeArray(set)
3165 if(!Expr.relative[cur]){cur=""
3167 }if(pop==null){pop=context
3170 }}if(!checkSet){checkSet=set
3171 }if(!checkSet){throw"Syntax error, unrecognized expression: "+(cur||selector)
3172 }if(toString.call(checkSet)==="[object Array]"){if(!prune){results.push.apply(results,checkSet)
3173 }else{if(context&&context.nodeType===1){for(var i=0;
3175 i++){if(checkSet[i]&&(checkSet[i]===true||checkSet[i].nodeType===1&&contains(context,checkSet[i])))…
3178 i++){if(checkSet[i]&&checkSet[i].nodeType===1){results.push(set[i])
3180 }if(extra){Sizzle(extra,origContext,results,seed);
3184 Sizzle.uniqueSort=function(results){if(sortOrder){hasDuplicate=baseHasDuplicate;
3186 if(hasDuplicate){for(var i=1;
3188 i++){if(results[i]===results[i-1]){results.splice(i--,1)
3194 if(!expr){return[]
3198 if((match=Expr.leftMatch[type].exec(expr))){var left=match[1];
3200 if(left.substr(left.length-1)!=="\\"){match[1]=(match[1]||"").replace(/\\/g,"");
3202 if(set!=null){expr=expr.replace(Expr.match[type],"");
3204 }}}}if(!set){set=context.getElementsByTagName("*")
3208 while(expr&&set.length){for(var type in Expr.filter){if((match=Expr.match[type].exec(expr))!=null){…
3210 if(curLoop==result){result=[]
3211 }if(Expr.preFilter[type]){match=Expr.preFilter[type](match,curLoop,inplace,result,not,isXMLFilter);
3212 if(!match){anyFound=found=true
3213 }else{if(match===true){continue
3214 }}}if(match){for(var i=0;
3216 i++){if(item){found=filter(item,match,i,curLoop);
3218 if(inplace&&found!=null){if(pass){anyFound=true
3220 }}else{if(pass){result.push(item);
3222 }}}}}if(found!==undefined){if(!inplace){curLoop=result
3224 if(!anyFound){return[]
3226 }}}if(expr==old){if(anyFound==null){throw"Syntax error, unrecognized expression: "+expr
3233 if(isTag&&!isXML){part=part.toUpperCase()
3236 i++){if((elem=checkSet[i])){while((elem=elem.previousSibling)&&elem.nodeType!==1){}checkSet[i]=isPa…
3237 }}if(isPartStrNotTag){Sizzle.filter(part,checkSet,true)
3239 if(isPartStr&&!/\W/.test(part)){part=isXML?part:part.toUpperCase();
3243 if(elem){var parent=elem.parentNode;
3248 if(elem){checkSet[i]=isPartStr?elem.parentNode:elem.parentNode===part
3249 }}if(isPartStr){Sizzle.filter(part,checkSet,true)
3251 if(!/\W/.test(part)){var nodeCheck=part=isXML?part:part.toUpperCase();
3255 if(typeof part==="string"&&!/\W/.test(part)){var nodeCheck=part=isXML?part:part.toUpperCase();
3258 }},find:{ID:function(match,context,isXML){if(typeof context.getElementById!=="undefined"&&!isXML){v…
3260 }},NAME:function(match,context,isXML){if(typeof context.getElementsByName!=="undefined"){var ret=[]…
3263 i++){if(results[i].getAttribute("name")===match[1]){ret.push(results[i])
3267 if(isXML){return match
3270 i++){if(elem){if(not^(elem.className&&(" "+elem.className+" ").indexOf(match)>=0)){if(!inplace){res…
3271 }}else{if(inplace){curLoop[i]=false
3277 },CHILD:function(match){if(match[1]=="nth"){var test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(match[2]=="eve…
3283 if(!isXML&&Expr.attrMap[name]){match[1]=Expr.attrMap[name]
3284 }if(match[2]==="~="){match[4]=" "+match[4]+" "
3286 },PSEUDO:function(match,curLoop,inplace,result,not){if(match[1]==="not"){if((chunker.exec(match[3])…
3288 if(!inplace){result.push.apply(result,ret)
3290 }}else{if(Expr.match.POS.test(match[0])||Expr.match.CHILD.test(match[0])){return true
3322 if(filter){return filter(elem,i,match,array)
3323 }else{if(name==="contains"){return(elem.textContent||elem.innerText||"").indexOf(match[3])>=0
3324 }else{if(name==="not"){var not=match[3];
3327 i++){if(not[i]===elem){return false
3330 switch(type){case"only":case"first":while((node=node.previousSibling)){if(node.nodeType===1){return…
3331 }}if(type=="first"){return true
3333 case"last":while((node=node.nextSibling)){if(node.nodeType===1){return false
3336 if(first==1&&last==0){return true
3338 if(parent&&(parent.sizcache!==doneName||!elem.nodeIndex)){var count=0;
3341 node=node.nextSibling){if(node.nodeType===1){node.nodeIndex=++count
3344 if(first==0){return diff==0
3352 if(filter){return filter(elem,i,match,array)
3358 if(results){results.push.apply(results,array);
3364 if(toString.call(array)==="[object Array]"){Array.prototype.push.apply(ret,array)
3365 }else{if(typeof array.length==="number"){for(var i=0,l=array.length;
3374 if(document.documentElement.compareDocumentPosition){sortOrder=function(a,b){if(!a.compareDocumentP…
3377 if(ret===0){hasDuplicate=true
3380 }else{if("sourceIndex" in document.documentElement){sortOrder=function(a,b){if(!a.sourceIndex||!b.s…
3383 if(ret===0){hasDuplicate=true
3386 }else{if(document.createRange){sortOrder=function(a,b){if(!a.ownerDocument||!b.ownerDocument){if(a=…
3394 if(ret===0){hasDuplicate=true
3401 if(!!document.getElementById(id)){Expr.find.ID=function(match,context,isXML){if(typeof context.getE…
3412 if(div.getElementsByTagName("*").length>0){Expr.find.TAG=function(match,context){var results=contex…
3413 if(match[1]==="*"){var tmp=[];
3416 i++){if(results[i].nodeType===1){tmp.push(results[i])
3421 if(div.firstChild&&typeof div.firstChild.getAttribute!=="undefined"&&div.firstChild.getAttribute("h…
3425 if(document.querySelectorAll){(function(){var oldSizzle=Sizzle,div=document.createElement("div");
3427 if(div.querySelectorAll&&div.querySelectorAll(".TEST").length===0){return
3429 if(!seed&&context.nodeType===9&&!isXML(context)){try{return makeArray(context.querySelectorAll(quer…
3435 }if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){v…
3437 if(div.getElementsByClassName("e").length===0){return
3439 if(div.getElementsByClassName("e").length===1){return
3441 Expr.find.CLASS=function(match,context,isXML){if(typeof context.getElementsByClassName!=="undefined…
3449 if(elem){if(sibDir&&elem.nodeType===1){elem.sizcache=doneName;
3453 while(elem){if(elem.sizcache===doneName){match=checkSet[elem.sizset];
3455 }if(elem.nodeType===1&&!isXML){elem.sizcache=doneName;
3457 }if(elem.nodeName===cur){match=elem;
3465 if(elem){if(sibDir&&elem.nodeType===1){elem.sizcache=doneName;
3469 while(elem){if(elem.sizcache===doneName){match=checkSet[elem.sizset];
3471 }if(elem.nodeType===1){if(!isXML){elem.sizcache=doneName;
3473 }if(typeof cur!=="string"){if(elem===cur){match=true;
3475 }}else{if(Sizzle.filter(cur,[elem]).length>0){match=elem;
3503 },toggleInspect:function(){if(isInspecting){this.stopInspecting()
3515 if(outlineVisible){this.hideOutline()
3520 if(Firebug.chrome.type=="popup"){Firebug.chrome.node.focus()
3525 if(id&&/^fbOutline\w$/.test(id)){return
3526 }if(id=="FirebugUI"){return
3529 },onInspecting:function(e){if(new Date().getTime()-lastInspecting>30){fbInspectFrame.style.display=…
3533 if(id&&/^fbOutline\w$/.test(id)){return
3534 }if(id=="FirebugUI"){return
3536 }if(targ.nodeName.toLowerCase()=="body"){return
3538 if(ElementCache(targ)){var target=""+ElementCache.key(targ);
3540 if(Firebug.HTML){Firebug.HTML.selectTreeNode(""+ElementCache.key(targ))
3542 if(inspectorTimer){clearTimeout(inspectorTimer);
3544 }if(new Date().getTime()-inspectorTS>200){setTimeout(lazySelect,0)
3547 }},onInspectingBody:function(e){if(new Date().getTime()-lastInspecting>30){var targ=e.target;
3549 if(id&&/^fbOutline\w$/.test(id)){return
3550 }if(id=="FirebugUI"){return
3552 }if(targ.nodeName.toLowerCase()=="body"){return
3554 if(ElementCache.has(targ)){FBL.Firebug.HTML.selectTreeNode(""+ElementCache.key(targ))
3582 if(freeVerticalSpace>0){style.top=top+height+"px";
3589 if(freeHorizontalSpace>0){style.top=top-border+"px";
3597 }if(!outlineVisible){this.showOutline()
3598 }},hideOutline:function(){if(!outlineVisible){return
3601 },showOutline:function(){if(outlineVisible){return
3602 }if(boxModelVisible){this.hideBoxModel()
3605 },drawBoxModel:function(el){if(!el||!el.parentNode){return
3610 if(box.top>scrollPosition.top+windowSize.height-offsetHeight||box.left>scrollPosition.left+windowSi…
3634 if(!boxModelVisible){this.showBoxModel()
3635 }},hideBoxModel:function(){if(!boxModelVisible){return
3638 },showBoxModel:function(){if(boxModelVisible){return
3639 }if(outlineVisible){this.hideOutline()
3669 var destroyInspectorFrame=function destroyInspectorFrame(){if(fbInspectFrame){Firebug.browser.docum…
3724 if(isTag(val)){val.tag.subject=lastSubject
3739 FBL.DomplateTag.prototype={merge:function(args,oldTag){if(oldTag){this.tagName=oldTag.tagName
3751 if(domplate.topContext){this.context=domplate.topContext
3752 }if(args.length){parseChildren(args,hasAttrs?1:0,this.vars,this.children)
3753 }if(hasAttrs){this.parseAttrs(attrs)
3757 if(name.indexOf("on")==0){var eventName=name.substr(2);
3758 if(!this.listeners){this.listeners=[]
3760 }else{if(name.indexOf("_")==0){var propName=name.substr(1);
3761 if(!this.props){this.props={}
3763 }else{if(name.indexOf("$")==0){var className=name.substr(1);
3764 if(!this.classes){this.classes={}
3766 }else{if(name=="class"&&this.attrs.hasOwnProperty(name)){this.attrs[name]+=" "+val
3768 }}}}}},compile:function(){if(this.renderMarkup){return
3780 if(this.subject){fnBlock.push("with (this) {")
3781 }if(this.context){fnBlock.push("with (__context__) {")
3784 if(this.subject){fnBlock.push("}")
3785 }if(this.context){fnBlock.push("}")
3787 function __link__(tag,code,outputs,args){if(!tag||!tag.tag){return
3804 if(iter instanceof Array){iter=new ArrayIterator(iter)
3809 }}catch(exc){if(exc!=StopIteration){throw exc
3814 },getVarNames:function(args){if(this.vars){args.push.apply(args,this.vars)
3818 if(isTag(child)){child.tag.getVarNames(args)
3819 }else{if(child instanceof Parts){for(var i=0;
3821 ++i){if(child.parts[i] instanceof Variable){var name=child.parts[i].name;
3825 for(var name in this.attrs){if(name!="class"){var val=this.attrs[name];
3829 }}if(this.listeners){for(var i=0;
3832 }}if(this.props){for(var name in this.props){readPartNames(this.props[name],topOuts)
3833 }}if(this.attrs.hasOwnProperty("class")||this.classes){topBlock.push(', " class=\\""');
3834 if(this.attrs.hasOwnProperty("class")){addParts(this.attrs["class"],",",topBlock,info,true)
3846 if(isTag(child)){child.tag.generateMarkup(topBlock,topOuts,blocks,info)
3848 }}},addCode:function(topBlock,topOuts,blocks){if(topBlock.length){blocks.push('__code__.push(""',to…
3849 }if(topOuts.length){blocks.push("__out__.push(",topOuts.join(","),");")
3858 if(map.hasOwnProperty(name)){continue
3884 }if(this.subject){fnBlock.push("with (this) {")
3885 }if(this.context){fnBlock.push("with (context) {")
3887 if(this.subject){fnBlock.push("}")
3888 }if(this.context){fnBlock.push("}")
3893 }function __link__(node,tag,args){if(!tag||!tag.tag){return
3911 if(i==3){index+=offset
3912 }if(index==-1){parent=parent.parentNode
3919 },generateDOM:function(path,blocks,args){if(this.listeners||this.props){this.generateNodePath(path,…
3920 }if(this.listeners){for(var i=0;
3925 }}if(this.props){for(var name in this.props){var val=this.props[name];
3939 if(isTag(child)){path[path.length-1]+="+"+child.tag.generateDOM(path,blocks,args)
3951 },getVarNames:function(names){if(this.value instanceof Parts){names.push(this.value.parts[0].name)
3952 }if(this.vars){names.push.apply(names,this.vars)
3958 for(var name in this.attrs){if(lastName){blocks.push(",")
3978 },getVarNames:function(names){if(this.iter instanceof Parts){names.push(this.iter.parts[0].name)
3982 if(this.iter instanceof Parts){var part=this.iter.parts[0];
3984 if(part.format){for(var i=0;
3995 if(!path.length){path.push(-1,0)
4005 if(isTag(child)){nodeCount+="+"+child.tag.generateDOM(path,subBlocks,args)
4027 if(pre){parts.push(pre)
4031 }if(!index){return str
4033 if(post){parts.push(post)
4041 }}function readPartNames(val,vars){if(val instanceof Parts){for(var i=0;
4044 if(part instanceof Variable){vars.push(part.name)
4045 }}}}function generateArg(val,path,args){if(val instanceof Parts){var vals=[];
4049 if(part instanceof Variable){var varName="d"+path.renderIndex++;
4050 if(part.format){for(var j=0;
4059 if(val instanceof Parts){for(var i=0;
4062 if(part instanceof Variable){var partName=part.name;
4063 if(part.format){for(var j=0;
4066 }}if(escapeIt){vals.push("__escape__("+partName+")")
4069 }}}else{if(isTag(val)){info.args.push(val);
4073 if(parts){block.push(delim,parts)
4081 if(oldArray){for(var i=0;
4090 }}function addEvent(object,name,handler){if(document.all){object.attachEvent("on"+name,handler)
4093 this.next=function(){if(++index>=array.length){throw StopIteration
4114 if(after){parent.insertBefore(lastRow,after)
4117 if(before.tagName=="TR"){var node=firstRow.parentNode.firstChild;
4128 },insertNode:function(args,doc,element,isAfter,self){if(!args){args={}
4133 if(!womb||womb.ownerDocument!=doc){womb=doc.createElement("div")
4136 if(isAfter){while(womb.firstChild){if(element.nextSibling){element.parentNode.insertBefore(womb.fir…
4148 if(parent.nodeType==1){parent.innerHTML=html;
4150 }else{if(!parent||parent.nodeType!=9){parent=document
4151 }if(!womb||womb.ownerDocument!=parent){womb=parent.createElement("div")
4162 if(!womb||womb.ownerDocument!=parent.ownerDocument){womb=parent.ownerDocument.createElement("div")
4202 },monitor:function(fn,script,monitored){if(monitored){Firebug.Debugger.unmonitorScript(fn,script,"m…
4206 if(sourceLink){Firebug.chrome.select(sourceLink)
4207 }if(FBTrace.DBG_FUNCTION_NAME){FBTrace.sysout("reps.function.inspectObject selected sourceLink is "…
4209 if(script){return $STRF("Line",[normalizeURL(script.fileName),script.baseLineNumber])
4210 }else{if(fn.toString){return fn.toString()
4213 },getContextMenuItems:function(fn,target,context,script){if(!script){script=findScriptForFunctionIn…
4214 }if(!script){return
4221 if(!object){return[]
4235 if(type=="boolean"||type=="number"||(type=="string"&&value)||(type=="object"&&value&&value.toString…
4238 if(length<=maxLength){props.push({tag:tag,name:name,object:value,equal:"=",delim:", "});
4242 if(maxLengthReached&&numProperties>numPropertiesShown){break
4243 }}if(numProperties>numPropertiesShown){props.push({object:"...",tag:FirebugReps.Caption.tag,name:""…
4244 }else{if(props.length>0){props[props.length-1].delim=""
4247 if(!object){return[]
4254 if(t=="boolean"||t=="number"||(t=="string"&&value)||(t=="object"&&value&&value.toString)){var rep=F…
4256 if(t=="object"){value=rep.getTitle(value);
4259 if(count<=max){props.push({tag:tag,name:name,object:value,equal:"=",delim:", "})
4261 }}}if(count>max){props[Math.max(1,max-1)]={object:"more...",tag:FirebugReps.Caption.tag,name:"",equ…
4262 }else{if(props.length>0){props[props.length-1].delim=""
4283 }if(array.length>3){items.push({object:(array.length-3)+" more...",tag:FirebugReps.Caption.tag,deli…
4288 child=child.previousSibling){if(child.repObject){++arrayIndex
4291 },isArray:function(obj){try{if(!obj){return false
4292 }else{if(isIE&&!isFunction(obj)&&typeof obj=="object"&&isFinite(obj.length)&&obj.nodeType!=8){retur…
4293 }else{if(isFinite(obj.length)&&isFunction(obj.splice)){return true
4294 }else{if(isFinite(obj.length)&&isFunction(obj.callee)){return true
4295 }else{if(instanceOf(obj,"HTMLCollection")){return true
4296 }else{if(instanceOf(obj,"NodeList")){return true
4298 }}}}}}}catch(exc){if(FBTrace.DBG_ERRORS){FBTrace.sysout("isArray FAILS:",exc);
4320 if(elt instanceof HTMLImageElement){value=getFileName(elt.src)
4321 }else{if(elt instanceof HTMLAnchorElement){value=getFileName(elt.href)
4322 }else{if(elt instanceof HTMLInputElement){value=elt.value
4323 }else{if(elt instanceof HTMLFormElement){value=getFileName(elt.action)
4324 }else{if(elt instanceof HTMLScriptElement){value=getFileName(elt.src)
4328 if(elt.attributes){for(var i=0;
4331 if(!attr.specified||attr.nodeName&&attr.nodeName.indexOf("firebug-")!=-1){continue
4332 }else{if(attr.nodeName=="id"){idAttr=attr
4333 }else{if(attr.nodeName=="class"){classAttr=attr
4334 }else{if(attr.nodeName=="style"){attrs.push({nodeName:attr.nodeName,nodeValue:attr.nodeValue||elt.s…
4337 }}}}}}if(classAttr){attrs.splice(0,0,classAttr)
4338 }if(idAttr){attrs.splice(0,0,idAttr)
4341 if(elt.attributes){for(var i=0;
4344 if(attr.nodeName=="id"||attr.nodeName=="class"){attrs.push(attr)
4349 if(Firebug.showFullTextNodes){return text
4352 if(!Firebug.showFullTextNodes){text=cropString(text,50)
4354 if(Firebug.showTextNodesWithWhitespace){escapeGroups.push({group:"whitespace","class":"nodeWhiteSpa…
4355 }if(Firebug.showTextNodesWithEntities){escapeGroups.push({group:"text","class":"nodeTextEntity",ext…
4356 }if(escapeGroups.length){return escapeGroupsForEntities(text,escapeGroups)
4367 if(tag=="script"){openNewTab(elt.src)
4368 }else{if(tag=="link"){openNewTab(elt.href)
4369 }else{if(tag=="a"){openNewTab(elt.href)
4370 }else{if(tag=="img"){openNewTab(elt.src)
4402 }catch(exc){if(FBTrace.DBG_ERRORS){FBTrace.sysout("reps.Window window closed?")
4409 },getTooltip:function(win){if(win&&!win.closed){return win.location.href
4413 if(eventFamily=="mouse"){info.push("clientX=",event.clientX,", clientY=",event.clientY)
4414 }else{if(eventFamily=="key"){info.push("charCode=",event.charCode,", keyCode=",event.keyCode)
4421 },getSourceLinkTitle:function(sourceLink){if(!sourceLink){return""
4425 }catch(exc){if(FBTrace.DBG_ERRORS){FBTrace.sysout("reps.getSourceLinkTitle decodeURIComponent fails…
4431 },inspectObject:function(sourceLink,context){if(sourceLink.type=="js"){var scriptFile=getSourceFile…
4432 if(scriptFile){return Firebug.chrome.select(sourceLink)
4433 }}else{if(sourceLink.type=="css"){if(sourceLink.object){Firebug.chrome.select(sourceLink.object);
4436 if(stylesheet){var ownerNode=stylesheet.ownerNode;
4437 if(ownerNode){Firebug.chrome.select(sourceLink,"html");
4440 if(panel&&panel.getRuleByLine(stylesheet,sourceLink.line)){return Firebug.chrome.select(sourceLink)
4456 },argIterator:function(frame){if(!frame.args){return[]
4461 if(!arg){break
4475 },getTitle:function(frame,context){if(!frame.isValid){return"(invalid frame)"
4477 },getTooltip:function(frame,context){if(!frame.isValid){return"(invalid frame)"
4479 if(sourceInfo){return $STRF("Line",[sourceInfo.sourceFile.href,sourceInfo.lineNo])
4493 },getLine:function(error){if(error.category=="js"){if(error.source){return cropString(error.source,…
4494 }else{if(error.href&&error.href.indexOf("XPCSafeJSObjectWrapper")==-1){return cropString(error.getS…
4497 },getSourceType:function(error){if(error.source){return"syntax"
4498 }else{if(error.lineNo==1&&getFileExtension(error.href)!="js"){return"none"
4499 }else{if(error.category=="css"){return"none"
4500 }else{if(!error.href||!error.lineNo){return"none"
4503 if(hasClass(event.target,"errorBreak")){this.breakOnThisError(target.repObject)
4504 }else{if(hasClass(event.target,"errorSource")){var panel=Firebug.getElementPanel(event.target);
4506 }else{if(hasClass(event.target,"errorTitle")){var traceBox=target.childNodes[1];
4509 if(hasClass(target,"opened")){if(target.stackTrace){var node=FirebugReps.StackTrace.tag.append({obj…
4510 }if(Firebug.A11yModel.enabled){var panel=Firebug.getElementPanel(event.target);
4515 },breakOnThisError:function(error){if(this.hasErrorBreak(error)){Firebug.Debugger.clearErrorBreakpo…
4522 if(error.category=="css"){items.push("-",{label:"BreakOnThisError",type:"checkbox",checked:breakOnT…
4550 },className:"applicationCache",supportsObject:function(object,type){if(Ci.nsIDOMOfflineResourceList…
4573 if(hasClass(target,"insertBefore")||hasClass(target,"insertAfter")){return
4575 if(!panel.editable){return
4576 }if(FBTrace.DBG_EDITOR){FBTrace.sysout("editor.startEditing "+value,target)
4578 if(value==undefined){var textContent=isIE?"innerText":"textContent";
4580 if(value==defaultValue){value=""
4589 if(!currentEditor){currentEditor=getDefaultEditor(currentPanel)
4594 if(currentGroup){setClass(currentGroup,"editing")
4597 if(FBTrace.DBG_EDITOR){FBTrace.sysout("Editor start panel "+currentPanel.name)
4599 },stopEditing:function(cancel){if(!currentTarget){return
4600 }if(FBTrace.DBG_EDITOR){FBTrace.sysout("editor.stopEditing cancel:"+cancel+" saveTimeout: "+this.sa…
4606 if(currentGroup){removeClass(currentGroup,"editing")
4608 if(value==defaultValue){value=""
4610 try{if(cancel){if(value!=originalValue){this.saveEditAndNotifyListeners(currentTarget,originalValue…
4611 }if(removeGroup&&!originalValue&¤tGroup){currentGroup.parentNode.removeChild(currentGroup)
4612 }}else{if(!value){this.saveEditAndNotifyListeners(currentTarget,null,previousValue);
4613 if(removeGroup&¤tGroup){currentGroup.parentNode.removeChild(currentGroup)
4625 },update:function(saveNow){if(this.saveTimeout){clearTimeout(this.saveTimeout)
4628 if(saveNow){this.save()
4631 if(FBTrace.DBG_EDITOR){FBTrace.sysout("editor.update saveTimeout: "+this.saveTimeout)
4632 }}},save:function(value){if(!invalidEditor){return
4633 }if(value==undefined){value=currentEditor.getValue()
4634 }if(FBTrace.DBG_EDITOR){FBTrace.sysout("editor.save saveTimeout: "+this.saveTimeout+" currentPanel:…
4638 }catch(exc){if(FBTrace.DBG_ERRORS){FBTrace.sysout("editor.save FAILS "+exc,exc)
4640 },setEditTarget:function(element){if(!element){dispatch([Firebug.A11yModel],"onInlineEditorClose",[…
4642 }else{if(hasClass(element,"insertBefore")){this.insertRow(element,"before")
4643 }else{if(hasClass(element,"insertAfter")){this.insertRow(element,"after")
4645 }}}},tabNextEditor:function(){if(!currentTarget){return
4651 },tabPreviousEditor:function(){if(!currentTarget){return
4661 if(!currentEditor){currentEditor=getDefaultEditor(currentPanel)
4663 if(!currentGroup){return
4665 if(editable){this.setEditTarget(editable)
4667 if(container){relative=getChildByClass(container,"insertBefore");
4668 if(relative){this.insertRow(relative,"before")
4674 if(editor.arrowCompletion){this.listeners.push(chrome.keyCodeListen("UP",null,bindFixed(editor.comp…
4675 }if(currentEditor.tabNavigation){this.listeners.push(chrome.keyCodeListen("RETURN",null,bind(this.t…
4676 }else{if(currentEditor.multiLine){this.listeners.push(chrome.keyCodeListen("TAB",null,insertTab))
4678 if(currentEditor.tabCompletion){this.listeners.push(chrome.keyCodeListen("TAB",null,bind(editor.com…
4679 }}}},detachListeners:function(editor,context){if(!this.listeners){return
4684 if(chrome){for(var i=0;
4689 },onBlur:function(event){if(currentEditor.enterOnBlur&&isAncestor(event.target,currentEditor.box)){…
4705 if(isIE){inlineEditorAttributes.onpropertychange="$onInput";
4719 },initializeInline:function(doc){if(FBTrace.DBG_EDITOR){FBTrace.sysout("Firebug.InlineEditor initia…
4722 if(isIElt8){this.input.style.top="-8px"
4732 if(isEmptyElement){target.innerHTML="."
4734 if(isEmptyElement){target.innerHTML=innerHTML
4742 if(this.fixedWidth){this.updateLayout(true)
4746 if(hasClass(parent,"textEditorInner2")){var yDiff=this.textSize.height-this.shadowExpand;
4747 if(isIE6){yDiff-=2
4752 if(isIElt8){panel.panelNode.appendChild(this.box)
4754 }if(isIE){this.input.style.fontFamily="Monospace";
4756 }if(!this.fixedWidth){copyBoxStyles(target,this.expander);
4766 if(!this.fixedWidth){this.stopMeasuring();
4768 if(this.expander.parentNode){this.expander.parentNode.removeChild(this.expander)
4769 }}if(this.box.parentNode){this.input.blur();
4773 },layout:function(forceAll){if(!this.fixedWidth){this.textSize=this.measureInputText(this.input.val…
4774 }if(forceAll){this.targetOffset=getClientOffset(this.expander)
4778 …CompleteList:function(preExpr,expr,postExpr){},getAutoCompleter:function(){if(!this.autoCompleter)…
4781 if(selectRangeCallback){Firebug.Editor.update(true);
4782 if(isSafari){setTimeout(selectRangeCallback,0)
4786 if(isIE){var start=getInputSelectionStart(this.input),end=start
4789 if(!range||range.type!="int"){range={start:0,end:value.length-1}
4794 if(!!intValue||intValue==0){var m=/\d+/.exec(expr);
4802 }},onKeyPress:function(event){if(event.keyCode==27&&!this.completeAsYouType){var reverted=this.getA…
4803 if(reverted){cancelEvent(event)
4804 }}else{if(event.charCode&&this.advanceToNext(this.target,event.charCode)){Firebug.Editor.tabNextEdi…
4806 }else{if(this.numeric&&event.charCode&&(event.charCode<48||event.charCode>57)&&event.charCode!=45&&…
4809 },onKeyDown:function(event){if(event.keyCode>46||event.keyCode==32||event.keyCode==8){this.keyDownP…
4810 }},onInput:function(event){if(isIE){if(event.propertyName!="value"||!isVisible(this.input)||!this.k…
4813 if(this.ignoreNextInput){this.ignoreNextInput=false;
4815 }else{if(this.completeAsYouType){selectRangeCallback=this.getAutoCompleter().complete(currentPanel.…
4818 if(selectRangeCallback){if(isSafari){setTimeout(selectRangeCallback,0)
4825 if(menu){for(var i=0;
4828 }}if(!popup.firstChild){return false
4831 },updateLayout:function(initial,forceAll,extraWidth){if(this.fixedWidth){this.box.style.left=(this.…
4837 }else{if(initial||forceAll){this.box.style.left=this.targetOffset.x+"px";
4842 if(wrapped){var style=isIE?this.target.currentStyle:this.target.ownerDocument.defaultView.getComput…
4848 if(extraWidth){charWidth*=extraWidth
4850 if(initial){if(isIE){var xDiff=13;
4858 }if(forceAll){scrollIntoCenterView(this.box,null,true)
4870 this.revert=function(textBox){if(originalOffset!=-1){textBox.value=originalValue;
4886 if(isSafari&&!cycle&&offset>=0){offset++
4887 }if(!selectMode&&originalOffset!=-1){offset=originalOffset
4888 }if(!candidates||!cycle||offset!=lastOffset){originalOffset=offset;
4894 if(!range){range={start:0,end:parsed.length-1}
4899 if(!cycle){if(!expr){return
4900 }else{if(lastExpr&&lastExpr.indexOf(expr)!=0){candidates=null
4901 }else{if(lastExpr&&lastExpr.length>=expr.length){candidates=null;
4907 if(expr&&offset!=parseStart+range.end+1){if(cycle){offset=range.start;
4912 if(!values){return
4913 }if(expr){candidates=[];
4914 if(caseSensitive){for(var i=0;
4917 if(name.indexOf&&name.indexOf(expr)==0){candidates.push(name)
4922 if(name.indexOf&&name.toLowerCase().indexOf(lowerExpr)==0){candidates.push(name)
4924 }else{if(searchExpr){var searchIndex=-1;
4925 if(caseSensitive){searchIndex=values.indexOf(expr)
4930 if(name&&name.toLowerCase().indexOf(lowerExpr)==0){searchIndex=i;
4932 }}}if(searchIndex==-1){return this.reset()
4940 ++i){if(values[i].substr){candidates.push(values[i])
4942 }}}if(cycle){expr=lastExpr;
4944 }if(!candidates.length){return
4945 }if(lastIndex>=candidates.length){lastIndex=0
4946 }else{if(lastIndex<0){lastIndex=candidates.length-1
4952 return function(){if(selectMode){setSelectionRange(textBox,offset,offsetEnd)
4957 var getDefaultEditor=function getDefaultEditor(panel){if(!defaultEditor){var doc=panel.document;
4977 if(s.display!="inline"){return lastInline
4985 FBL.ns(function(){with(FBL){if(Env.Options.disableXHRListener){return
4993 var updateSelfProperties=function(){if(supportsXHRIterator){for(var propName in xhrRequest){if(prop…
4995 if(propValue&&!isFunction(propValue)){self[propName]=propValue
4996 }}catch(E){}}}else{if(xhrRequest.readyState==4){self.status=xhrRequest.status;
5002 var updateXHRProperties=function(){for(var propName in self){if(propName in updateXHRPropertiesIgno…
5004 if(propValue&&!xhrRequest[propName]){xhrRequest[propName]=propValue
5007 if(row){setClass(row,"loading");
5019 if(match){var name=match[1];
5021 if(name=="Content-Type"){spy.mimeType=value
5025 if(!row){return
5032 if(xhrRequest.readyState==4){finishXHR();
5038 if(!success){FBL.setClass(row,"error")
5041 if(time){var item=FBL.$$(".spyTime",row)[0];
5047 if(spy.loaded){spy=new XHRSpy()
5054 try{if(supportsApply){xhrRequest.open.apply(xhrRequest,arguments)
5063 if(!spy.async){self.readyState=xhrRequest.readyState;
5080 if(propName in updateSelfPropertiesIgnore){continue
5082 if(isFunction(propValue)){if(typeof self[propName]=="undefined"){this[propName]=(function(name,xhr)…
5092 if(isIE6){_ActiveXObject=window.ActiveXObject;
5097 }finally{if(!error){if(xhrObjects.indexOf(" "+name+" ")!=-1){return new XMLHttpRequestWrapper(activ…
5101 }if(!isIE6){var _XMLHttpRequest=XMLHttpRequest;
5130 if(panel){panel.clear()
5134 if(Firebug.TraceModule){Firebug.TraceModule.addListener(this.TraceListener)
5140 if(Firebug.TraceModule){Firebug.TraceModule.removeListener(this.TraceListener)
5148 if(name.length>limit){name=name.substr(0,limit)+"..."
5152 if(name.length>limit){return name
5168 if(tab){this.selectTab(tab)
5172 if(selectedTab){removeClass(netInfoBox.selectedText,"netInfoTextSelected");
5185 },updateInfo:function(netInfoBox,file,context){if(FBTrace.DBG_NET){FBTrace.sysout("net.updateInfo; …
5186 }if(!netInfoBox){if(FBTrace.DBG_NET||FBTrace.DBG_ERRORS){FBTrace.sysout("net.updateInfo; ERROR netI…
5189 if(hasClass(tab,"netInfoParamsTab")){if(file.urlParams&&!netInfoBox.urlParamsPresented){netInfoBox.…
5191 }}else{if(hasClass(tab,"netInfoHeadersTab")){var headersText=$$(".netInfoHeadersText",netInfoBox)[0…
5192 if(file.responseHeaders&&!netInfoBox.responseHeadersPresented){netInfoBox.responseHeadersPresented=…
5194 }if(file.requestHeaders&&!netInfoBox.requestHeadersPresented){netInfoBox.requestHeadersPresented=tr…
5196 }}else{if(hasClass(tab,"netInfoPostTab")){if(!netInfoBox.postPresented){netInfoBox.postPresented=tr…
5199 }}else{if(hasClass(tab,"netInfoPutTab")){if(!netInfoBox.putPresented){netInfoBox.putPresented=true;
5202 }}else{if(hasClass(tab,"netInfoResponseTab")&&file.loaded&&!netInfoBox.responsePresented){var respo…
5203 if(file.category=="image"){netInfoBox.responsePresented=true;
5209 }}else{if(hasClass(tab,"netInfoCacheTab")&&file.loaded&&!netInfoBox.cachePresented){var responseTex…
5210 if(file.cacheEntry){netInfoBox.cachePresented=true;
5212 }}else{if(hasClass(tab,"netInfoHtmlTab")&&file.loaded&&!netInfoBox.htmlPresented){netInfoBox.htmlPr…
5221 if(isIE){responseTextBox.style.whiteSpace="nowrap"
5227 if(limitReached){text=text.substr(0,limit)+"..."
5228 }if(text){insertWrappedText(text,responseTextBox)
5230 }if(limitReached){var object={text:$STR("net.responseSizeLimitMessage"),onClickLink:function(){var …
5235 if(FBTrace.DBG_NET){FBTrace.sysout("net.setResponseText; response text updated")
5236 }},insertHeaderRows:function(netInfoBox,headers,tableName,rowName){if(!headers.length){return
5239 if(!tbody){tbody=headersTable.firstChild
5249 if(target.sourceDisplayed){var headers=requestHeaders?file.requestHeaders:file.responseHeaders;
5264 if(!headers.length){return
5273 if(file.requestHeadersText){removeClass(viewSource,"collapsed")
5275 if(file.responseHeadersText){removeClass(viewSource,"collapsed")
5276 }},renderHeaders:function(parent,headers,rowName){if(!parent.firstChild){this.init(parent)
5285 if(contentType&&contentType=="application/x-www-form-urlencoded"||data&&data.indexOf("=")!=-1){var …
5286 if(params){this.insertParameters(parentNode,params)
5288 if(Firebug.JSONViewerModel.isJSON(contentType,data)){this.insertJSON(parentNode,jsonData,context)
5290 if(postText){this.insertSource(parentNode,postText)
5291 }},insertParameters:function(parentNode,params){if(!params||!params.length){return
5296 },insertParts:function(parentNode,data){if(!data.params||!data.params.length){return
5302 if(!data){return
5305 if(!this.toggles){this.toggles={}
5316 if(text==undefined){return null
5329 if(part.length!=2){continue
5348 },observe:function(subject,topic,data){if(topic!="nsPref:changed"){return
5349 }if(data.indexOf("net.logLimit")!=-1){this.updateMaxLimit()
5357 Firebug.NetMonitor.Utils={findHeader:function(headers,name){if(!headers){return null
5362 if(headerName==name){return headers[i].value
5363 }}},formatPostText:function(text){if(text instanceof XMLDocument){return getElementXML(text.documen…
5365 }},getPostText:function(file,context,noLimit){if(!file.postText){file.postText=readPostTextFromRequ…
5366 if(!file.postText&&context){file.postText=readPostTextFromPage(file.href,context)
5367 }}if(!file.postText){return file.postText
5369 if(file.postText.length>limit&&!noLimit){return cropString(file.postText,limit,"\n\n... "+$STR("net…
5373 if(text&&text.toLowerCase().indexOf("content-type: application/x-www-form-urlencoded")==0){return t…
5375 if(headerValue&&headerValue.indexOf("application/x-www-form-urlencoded")==0){return true
5378 if(text&&text.toLowerCase().indexOf("content-type: multipart/form-data")==0){return true
5380 },getMimeType:function(mimeType,uri){if(!mimeType||!(mimeCategoryMap.hasOwnProperty(mimeType))){var…
5381 if(!ext){return mimeType
5393 if(!file.responseHeaders&&Firebug.collectHttpHeaders){var requestHeaders=[],responseHeaders=[];
5400 }}catch(exc){if(FBTrace.DBG_ERRORS){FBTrace.sysout("net.getHttpHeaders FAILS "+file.href,exc)
5403 if(FBTrace.DBG_NET){FBTrace.sysout("net.isXHR; "+(xhrRequest!=null)+", "+safeGetName(request))
5406 },getFileCategory:function(file){if(file.category){if(FBTrace.DBG_NET){FBTrace.sysout("net.getFileC…
5408 }if(file.isXHR){if(FBTrace.DBG_NET){FBTrace.sysout("net.getFileCategory; XHR for: "+file.href,file)
5410 }if(!file.mimeType){var ext=getFileExtension(file.href);
5411 if(ext){file.mimeType=mimeExtensionMap[ext.toLowerCase()]
5412 }}if(!file.mimeType){return""
5414 if(mimeType){mimeType=mimeType.split(";")[0]
5421 Firebug.Spy=extend(Firebug.Module,{dispatchName:"spy",initialize:function(){if(Firebug.TraceModule)…
5424 if(Firebug.TraceModule){Firebug.TraceModule.removeListener(this.TraceListener)
5426 if(Firebug.showXMLHttpRequests&&Firebug.Console.isAlwaysEnabled()){this.attachObserver(context,cont…
5427 }if(FBTrace.DBG_SPY){FBTrace.sysout("spy.initContext "+contexts.length+" ",context.getName())
5429 if(FBTrace.DBG_SPY&&context.spies.length){FBTrace.sysout("spy.destroyContext; ERROR There are leaki…
5431 if(FBTrace.DBG_SPY){FBTrace.sysout("spy.destroyContext "+contexts.length+" ",context.getName())
5432 }},watchWindow:function(context,win){if(Firebug.showXMLHttpRequests&&Firebug.Console.isAlwaysEnable…
5435 }},updateOption:function(name,value){if(name=="showXMLHttpRequests"){var tach=value?this.attachObse…
5441 }}},skipSpy:function(win){if(!win){return true
5443 if(uri&&(uri.indexOf("about:")==0||uri.indexOf("chrome:")==0)){return true
5444 }},attachObserver:function(context,win){if(Firebug.Spy.skipSpy(win)){return
5447 ++i){if((contexts[i].context==context)&&(contexts[i].win==win)){return
5448 }}if(contexts.length==0){httpObserver.addObserver(SpyHttpObserver,"firebug-http-event",false);
5451 if(FBTrace.DBG_SPY){FBTrace.sysout("spy.attachObserver (HTTP) "+contexts.length+" ",context.getName…
5454 ++i){if(contexts[i].context==context){if(win&&(contexts[i].win!=win)){continue
5456 if(contexts.length==0){httpObserver.removeObserver(SpyHttpObserver,"firebug-http-event");
5458 }if(FBTrace.DBG_SPY){FBTrace.sysout("spy.detachObserver (HTTP) "+contexts.length+" ",context.getNam…
5460 }}},getXHR:function(request){if(!(request instanceof Ci.nsIHttpChannel)){return null
5463 }catch(exc){if(exc.name=="NS_NOINTERFACE"){if(FBTrace.DBG_SPY){FBTrace.sysout("spy.getXHR; Request …
5469 if(spy.statusCode){text+=spy.statusCode+" "
5470 }if(spy.statusText){return text+=spy.statusText
5474 if(isLeftClick(event)){toggleClass(logRow,"opened");
5477 if(hasClass(logRow,"opened")){updateHttpSpyInfo(spy,logRow);
5478 if(spyHeadTable){spyHeadTable.setAttribute("aria-expanded","true")
5481 if(!text){return
5493 if(spy.postText){items.push({label:"CopyLocationParameters",command:bindFixed(this.copyParams,this,…
5498 if(spy.responseTime){timeBox.textContent=" "+formatTime(spy.responseTime)
5505 if(errorRange==4||errorRange==5){setClass(spy.logRow,"error")
5506 }}catch(exc){}}var updateHttpSpyInfo=function updateHttpSpyInfo(spy,logRow){if(!spy.logRow&&logRow)…
5507 }if(!spy.logRow||!hasClass(spy.logRow,"opened")){return
5508 }if(!spy.params){spy.params=parseURLParams(spy.href+"")
5509 }if(!spy.requestHeaders){spy.requestHeaders=getRequestHeaders(spy)
5510 }if(!spy.responseHeaders&&spy.loaded){spy.responseHeaders=getResponseHeaders(spy)
5513 if(!netInfoBox){var head=getChildByClass(spy.logRow,"spyHead");
5521 if(channel instanceof Ci.nsIHttpChannel){channel.visitRequestHeaders({visitHeader:function(name,val…
5526 if(channel instanceof Ci.nsIHttpChannel){channel.visitResponseHeaders({visitHeader:function(name,va…
5528 }}catch(exc){if(FBTrace.DBG_SPY||FBTrace.DBG_ERRORS){FBTrace.sysout("spy.getResponseHeaders; EXCEPT…
5536 },initTabBody:function(infoBox,file){if(FBTrace.DBG_JSONVIEWER){FBTrace.sysout("jsonviewer.initTabB…
5538 if(!file.jsonObject){if(this.isJSON(file.mimeType,file.responseText)){file.jsonObject=this.parseJSO…
5539 }}if(file.jsonObject&&hasProperties(file.jsonObject)){Firebug.NetMonitor.NetInfoBody.appendTab(info…
5540 if(FBTrace.DBG_JSONVIEWER){FBTrace.sysout("jsonviewer.initTabBody; JSON object available "+(typeof(…
5542 if(responseText&&responseText.indexOf("{")==0){return true
5543 }if(!contentType){return false
5549 if(!hasClass(tab,"netInfoJSONTab")||tabBody.updated){return
5551 if(file.jsonObject){Firebug.DOMPanel.DirTable.tag.replace({object:file.jsonObject,toggles:this.togg…
5562 },initTabBody:function(infoBox,file){if(FBTrace.DBG_XMLVIEWER){FBTrace.sysout("xmlviewer.initTabBod…
5563 }if(this.isXML(file.mimeType,file.responseText)){Firebug.NetMonitor.NetInfoBody.appendTab(infoBox,"…
5564 if(FBTrace.DBG_XMLVIEWER){FBTrace.sysout("xmlviewer.initTabBody; XML response available")
5565 }}},isXML:function(contentType){if(!contentType){return false
5568 i++){if(contentType.indexOf(xmlContentTypes[i])==0){return true
5572 if(!hasClass(tab,"netInfoXMLTab")||tabBody.updated){return
5579 if(FBTrace.DBG_XMLVIEWER){FBTrace.sysout("xmlviewer.updateTabBody; XML response parsed",doc)
5585 if(parts.length!=2){return error.source
5588 if(column>=limit){parts[0]="..."+parts[0].substr(column-limit);
5590 }if(parts[0].length>80){parts[0]=parts[0].substr(0,80)+"..."
5604 if(!context){context=FirebugContext
5605 }if(FBTrace.DBG_ERRORS&&!context){FBTrace.sysout("Console.logRow has no context, skipping objects",…
5606 }if(!context){return
5607 }if(noThrottle||!context){var panel=this.getPanel(context);
5608 if(panel){var row=panel.append(appender,objects,className,rep,sourceLink,noRow);
5612 }}else{if(!context.throttle){return
5615 }},appendFormatted:function(args,row,context){if(!context){context=FirebugContext
5618 },clear:function(context){if(!context){context=Firebug.context
5620 if(panel){panel.clear()
5632 if(!element){if(FBTrace.DBG_CONSOLE){FBTrace.sysout("getFirebugConsoleElement forcing element")
5634 if(context.stopped){Firebug.Console.injector.evaluateConsoleScript(context)
5636 }if(FBTrace.DBG_CONSOLE){FBTrace.sysout("getFirebugConsoleElement forcing element result "+r,r)
5638 if(!element){if(FBTrace.DBG_ERRORS){FBTrace.sysout("console.getFirebugConsoleElement: no _firebugCo…
5641 },isReadyElsePreparing:function(context,win){if(FBTrace.DBG_CONSOLE){FBTrace.sysout("console.isRead…
5642 }if(win){return this.injector.attachIfNeeded(context,win)
5647 }if(context.windows.indexOf(context.window)==-1){FBTrace.sysout("isReadyElsePreparing *************…
5648 }if(FBTrace.DBG_CONSOLE){FBTrace.sysout("console.isReadyElsePreparing attached to "+context.windows…
5651 },enable:function(){if(Firebug.Console.isAlwaysEnabled()){this.watchForErrors()
5652 }},disable:function(){if(Firebug.Console.isAlwaysEnabled()){this.unwatchForErrors()
5657 },clearReloadWarning:function(context){if(context.consoleReloadWarning){var panel=context.getPanel(…
5666 },onPanelEnable:function(panelName){if(panelName!=this.panelName){return
5667 }if(FBTrace.DBG_CONSOLE){FBTrace.sysout("console.onPanelEnable**************")
5670 },onPanelDisable:function(panelName){if(panelName!=this.panelName){return
5671 }if(FBTrace.DBG_CONSOLE){FBTrace.sysout("console.onPanelDisable**************")
5675 },onSuspendFirebug:function(){if(FBTrace.DBG_CONSOLE){FBTrace.sysout("console.onSuspendFirebug\n")
5676 }if(Firebug.Console.isAlwaysEnabled()){this.unwatchForErrors()
5677 }},onResumeFirebug:function(){if(FBTrace.DBG_CONSOLE){FBTrace.sysout("console.onResumeFirebug\n")
5678 }if(Firebug.Console.isAlwaysEnabled()){this.watchForErrors()
5684 },onFunctionCall:function(context,frame,depth,calling){if(calling){Firebug.Console.openGroup([frame…
5686 }},logRow:function(appender,objects,context,className,rep,sourceLink,noThrottle,noRow){if(!context)…
5687 }if(FBTrace.DBG_WINDOWS&&!context){FBTrace.sysout("Console.logRow: no context \n")
5688 }if(this.isAlwaysEnabled()){return Firebug.ConsoleBase.logRow.apply(this,arguments)
5693 if(noRow){appender.apply(this,[objects])
5696 if(sourceLink){FirebugReps.SourceLink.tag.append({object:sourceLink},row)
5699 if(this.wasScrolledToBottom){scrollToBottom(this.panelNode)
5701 }},clear:function(){if(this.panelNode){if(FBTrace.DBG_CONSOLE){FBTrace.sysout("ConsolePanel.clear")
5713 },clearReloadWarning:function(){if(this.warningRow){this.warningRow.parentNode.removeChild(this.war…
5715 }},appendObject:function(object,row,rep){if(!rep){rep=Firebug.getRep(object)
5717 },appendFormatted:function(objects,row,rep){if(!objects||!objects.length){return
5722 if(typeof(format)!="string"){format="";
5724 }else{if(objects.length===1){if(format.length<1){logText("(an empty string)",row);
5731 if(part&&typeof(part)=="object"){if(++trialIndex>objects.length){format="";
5738 if(part&&typeof(part)=="object"){var object=objects[++objIndex];
5739 if(typeof(object)!="undefined"){this.appendObject(object,row,part.rep)
5746 if(typeof(object)=="string"){FirebugReps.Text.tag.append({object:object},row)
5748 }}},appendOpenGroup:function(objects,row,rep){if(!this.groups){this.groups=[]
5753 if(rep){rep.tag.replace({objects:objects},innerRow)
5760 addEvent(innerRow,"mousedown",function(event){if(isLeftClick(event)){var target=event.target||event…
5763 if(hasClass(groupRow,"opened")){removeClass(groupRow,"opened");
5768 },appendCloseGroup:function(object,row,rep){if(this.groups){this.groups.pop()
5769 }},onMouseMove:function(event){if(!Firebug.Inspector){return
5773 if(object&&instanceOf(object,"Element")&&object.nodeType==1){if(object!=lastHighlightedObject){Fire…
5779 if(!repObject){return
5780 }if(hasClass(object,"objectLink-object")){Firebug.chrome.selectPanel("DOM");
5782 }else{if(hasClass(object,"objectLink-element")){Firebug.chrome.selectPanel("HTML");
5791 if(!this.persistedContent&&Firebug.Console.isAlwaysEnabled()){this.insertLogLimit(this.context);
5793 if(this.context.consoleReloadWarning){this.insertReloadWarning()
5797 },initializeNode:function(){if(FBTrace.DBG_CONSOLE){this.onScroller=bind(this.onScroll,this);
5802 },destroyNode:function(){if(this.onScroller){removeEvent(this.panelNode,"scroll",this.onScroller)
5808 },ishow:function(state){if(FBTrace.DBG_CONSOLE){FBTrace.sysout("Console.panel show; "+this.context.…
5810 if(enabled){Firebug.Console.disabledPanelPage.hide(this);
5814 if(state&&state.wasScrolledToBottom){this.wasScrolledToBottom=state.wasScrolledToBottom;
5816 }if(this.wasScrolledToBottom){scrollToBottom(this.panelNode)
5817 }if(FBTrace.DBG_CONSOLE){FBTrace.sysout("console.show ------------------ wasScrolledToBottom: "+thi…
5820 }},ihide:function(state){if(FBTrace.DBG_CONSOLE){FBTrace.sysout("Console.panel hide; "+this.context…
5823 if(FBTrace.DBG_CONSOLE){FBTrace.sysout("console.hide ------------------ wasScrolledToBottom: "+this…
5824 }},destroy:function(state){if(this.panelNode.offsetHeight){this.wasScrolledToBottom=isScrolledToBot…
5825 }if(state){state.wasScrolledToBottom=this.wasScrolledToBottom
5826 }if(FBTrace.DBG_CONSOLE){FBTrace.sysout("console.destroy ------------------ wasScrolledToBottom: "+…
5829 },enablePanel:function(module){if(FBTrace.DBG_CONSOLE){FBTrace.sysout("console.ConsolePanel.enableP…
5832 if(this.wasScrolledToBottom){scrollToBottom(this.panelNode)
5833 }},disablePanel:function(module){if(FBTrace.DBG_CONSOLE){FBTrace.sysout("console.ConsolePanel.disab…
5838 if(FirebugContext&&!Firebug.Debugger.isAlwaysEnabled()){menuItem.disabled=true
5845 },search:function(text){if(!text){return
5846 }if(this.matchSet){for(var i in this.matchSet){removeClass(this.matchSet[i],"matched")
5851 if(!logRow){dispatch([Firebug.A11yModel],"onConsoleSearchMatchFound",[this,text,[]]);
5863 },getTopContainer:function(){if(this.groups&&this.groups.length){return this.groups[this.groups.len…
5865 }},filterLogRow:function(logRow,scrolledToBottom){if(this.searchText){setClass(logRow,"matching");
5867 setTimeout(bindFixed(function(){if(this.searchFilter(this.searchText,logRow)){this.matchSet.push(lo…
5870 if(scrolledToBottom){scrollToBottom(this.panelNode)
5881 },observe:function(subject,topic,data){if(topic!="nsPref:changed"){return
5884 if(prefName=="console.logLimit"){this.updateMaxLimit()
5888 if(shouldShow){collapse(Firebug.chrome.$("fbCommandBox"),false);
5893 if(FBTrace.DBG_CONSOLE){FBTrace.sysout("console.onScroll ------------------ wasScrolledToBottom: "+…
5894 }},onResize:function(event){if(FBTrace.DBG_CONSOLE){FBTrace.sysout("console.onResize --------------…
5895 }if(this.wasScrolledToBottom){scrollToBottom(this.panelNode)
5898 if(format.length<=0){return parts
5902 m=reg.exec(format)){if(m[0].substr(0,2)=="%%"){parts.push(format.substr(0,m.index));
5942 if(win.console){if(Env.Options.overrideConsole){sandbox=new win.Function("arguments.callee.install(…
5948 },isAttached:function(context,win){if(win.wrappedJSObject){var attached=(win.wrappedJSObject._getFi…
5949 if(FBTrace.DBG_CONSOLE){FBTrace.sysout("Console.isAttached:"+attached+" to win.wrappedJSObject "+sa…
5951 }else{if(FBTrace.DBG_CONSOLE){FBTrace.sysout("Console.isAttached? to win "+win.location+" fnc:"+win…
5953 }},attachIfNeeded:function(context,win){if(FBTrace.DBG_CONSOLE){FBTrace.sysout("Console.attachIfNee…
5954 }if(this.isAttached(context,win)){return true
5955 }if(FBTrace.DBG_CONSOLE){FBTrace.sysout("Console.attachIfNeeded found isAttached false ")
5960 if(attached){dispatch(Firebug.Console.fbListeners,"onConsoleInjected",[context,win])
5963 if(FBTrace.DBG_CONSOLE){FBTrace.sysout("attachConsoleInjector evaluating in "+win.location,consoleI…
5965 if(FBTrace.DBG_CONSOLE){FBTrace.sysout("attachConsoleInjector evaluation completed for "+win.locati…
5966 }},getConsoleInjectionScript:function(){if(!this.consoleInjectionScript){var script="";
5971 if(FBTrace.DBG_CONSOLE){script+=" window.dump('loadFirebugConsole '+window.location+'\\n');\n"
5977 },forceConsoleCompilationInPage:function(context,win){if(!win){if(FBTrace.DBG_CONSOLE){FBTrace.syso…
5980 if(context.stopped){Firebug.Console.injector.evaluateConsoleScript(context)
5982 }if(FBTrace.DBG_CONSOLE){FBTrace.sysout("forceConsoleCompilationInPage "+win.location,consoleForcer)
5985 },addConsoleListener:function(context,win){if(!context.activeConsoleHandlers){context.activeConsole…
5988 i++){if(context.activeConsoleHandlers[i].window==win){context.activeConsoleHandlers[i].detach();
5989 if(FBTrace.DBG_CONSOLE){FBTrace.sysout("consoleInjector addConsoleListener removed handler("+contex…
5992 if(element){element.setAttribute("FirebugVersion",Firebug.version)
5997 if(FBTrace.DBG_CONSOLE){FBTrace.sysout("consoleInjector addConsoleListener attached handler("+handl…
5999 },detachConsole:function(context,win){if(win&&win.document){var element=win.document.getElementById…
6000 if(element){element.parentNode.removeChild(element)
6011 this.handleEvent=function(event){if(FBTrace.DBG_CONSOLE){FBTrace.sysout("FirebugConsoleHandler("+th…
6012 }if(!Firebug.CommandLine.CommandHandler.handle(event,this,win)){if(FBTrace.DBG_CONSOLE){FBTrace.sys…
6032 this.assert=function(x){if(!x){var rest=[];
6040 this.dirxml=function(o){if(instanceOf(o,"Window")){o=o.document.documentElement
6041 }else{if(instanceOf(o,"Document")){o=o.documentElement
6058 if(frameId){if(!frameCounters){frameCounters={}
6059 }if(key!=undefined){frameId+=key
6061 if(!frameCounter){var logRow=logFormatted(["0"],null,true,true);
6068 this.trace=function(){var getFuncName=function getFuncName(f){if(f.getName instanceof Function){ret…
6069 }if(f.name){return f.name
6075 i++){if(frames[i].fn==fn){return true
6079 if(traceRecursion>1){traceRecursion--;
6084 fn=fn.caller){if(wasVisited(fn)){break
6095 if(FBL.isSafari){var reChromeStackItem=/^\s+at\s+(.*)((?:http|https|ftp|file):\/\/.*)$/;
6104 if(match){var name=match[1];
6105 if(name){name=name.replace(reChromeStackItemName,"");
6108 if(value){frame.href=value[1];
6110 }}}}else{if(FBL.isFirefox){var reFirefoxStackItem=/^(.*)@(.*)$/;
6118 if(match){var name=match[1];
6120 if(value){frame.href=value[1];
6125 this.trace_ok=function(){var getFuncName=function getFuncName(f){if(f.getName instanceof Function){…
6126 }if(f.name){return f.name
6132 i++){if(frames[i].fn==fn){return true
6138 fn=fn.caller){if(wasVisited(fn)){break
6148 this.time=function(name,reset){if(!name){return
6150 if(!this.timeCounters){this.timeCounters={}
6152 if(!reset&&this.timeCounters[key]){return
6156 if(!this.timeCounters){return
6159 if(timeCounter){var diff=time-timeCounter;
6165 this.evaluated=function(result,context){if(FBTrace.DBG_CONSOLE){FBTrace.sysout("consoleInjector.Fir…
6173 if(!args||!args.length||args.length==0){var msg=[FBL.$STR("Assertion")]
6175 }if(Firebug.errorStackTrace){var trace=Firebug.errorStackTrace;
6177 if(FBTrace.DBG_CONSOLE){FBTrace.sysout("logAssert trace from errorStackTrace",trace)
6178 }}else{if(msg.stack){var trace=parseToStackTrace(msg.stack);
6179 if(FBTrace.DBG_CONSOLE){FBTrace.sysout("logAssert trace from msg.stack",trace)
6181 if(FBTrace.DBG_CONSOLE){FBTrace.sysout("logAssert trace from getJSDUserStack",trace)
6183 if(trace&&trace.frames&&trace.frames[0]){errorObject.correctWithStackTrace(trace)
6186 if(args.length>1){objects=[errorObject];
6194 if(FBTrace.DBG_CONSOLE){FBTrace.sysout("consoleInjector.getComponentsStackDump initial stack for us…
6196 }if(frame){frame=frame.caller
6197 }if(frame){frame=frame.caller
6198 }if(FBTrace.DBG_CONSOLE){FBTrace.sysout("consoleInjector.getComponentsStackDump final stack for use…
6203 if(frames&&(frames.length>0)){var oldest=frames.length-1;
6206 i++){if(frames[oldest-i].href.indexOf("chrome:")==0){break
6208 if(fn&&(fn.indexOf("_firebugEvalEvent")!=-1)){break
6249 if(this.isActive){if(this.isMultiLine==multiLine){return
6254 if(multiLine){onRun=onRun||this.enter;
6265 if(!fbCommandLine){return
6267 }if(isOpera){fixOperaTabKey(this.element)
6268 }if(this.lastValue){this.element.value=this.lastValue
6270 },deactivate:function(){if(!this.isActive){return
6273 if(this.isMultiLine){removeEvent(this.element,"keydown",this.onMultiLineKeyDown);
6290 if(!command){return
6295 },prevCommand:function(){if(Firebug.context.persistedState.commandPointer>0&&Firebug.context.persis…
6299 if(i<limit){element.value=Firebug.context.persistedState.commandHistory[++Firebug.context.persisted…
6300 }else{if(i==limit){++Firebug.context.persistedState.commandPointer;
6308 if(!isAutoCompleting){var reObj=/(.*[^_$\w\d\.])?((?:[_$\w][_$\w\d]*\.)*)([_$\w][_$\w\d]*)?$/;
6310 if(r[1]||r[2]||r[3]){commandBegin=r[1]||"";
6313 }else{if(val==""){commandBegin=objName=prefix=""
6316 if(objName==""){obj=window
6322 i++){if(o=target[ni]){target=o
6326 }if(obj){autoCompletePrefix=prefix;
6332 }if(buffer){prefix=autoCompletePrefix;
6337 if(bi.indexOf(prefix)==0){autoCompletePosition=i;
6340 }}}if(result){element.value=autoCompleteExpr+result
6341 }},setMultiLine:function(multiLine){if(multiLine==this.isMultiLine){return
6349 if(code!=9&&code!=16&&code!=17&&code!=18){isAutoCompleting=false
6350 }if(code==13){this.enter();
6352 }else{if(code==27){setTimeout(this.clear,0)
6353 }else{if(code==38){this.prevCommand()
6354 }else{if(code==40){this.nextCommand()
6355 }else{if(code==9){this.autocomplete(e.shiftKey)
6361 if(code==13&&e.ctrlKey){this.enter()
6369 if((c==","||c==";"||c==" ")&&!bracketCount){break
6370 }if(reOpenBracket.test(c)){if(bracketCount){--bracketCount
6372 }}else{if(reCloseBracket.test(c)){++bracketCount
6378 },dirxml:function(o){if(instanceOf(o,"Window")){o=o.document.documentElement
6379 }else{if(instanceOf(o,"Document")){o=o.documentElement
6383 for(var m in CommandLineAPI){if(!Env.browser.window[m]){Firebug.CommandLine.API[m]=CommandLineAPI[m]
6385 if(stack){Firebug.CommandLine.API.$0=stack[0];
6392 if(Firebug.ignoreFirebugElements){ignoreHTMLProps[cacheID]=1
6394 if(!nodeArray.length){nodeArray=[nodeArray]
6397 n++){if(node.nodeType==1){if(Firebug.ignoreFirebugElements&&node.firebugIgnore){continue
6405 if(isIE&&nodeControl){html.push(nodeControl)
6406 }if(typeof uid!="undefined"){html.push('<div class="objectBox-element" ','id="',uid,'">',!isIE&&nod…
6411 if(!attr.specified||isIE&&(browserVersion-0<9)&&typeof attr.nodeValue!="string"||Firebug.ignoreFire…
6415 }if(hasSingleTextChild){var value=child[0].nodeValue.replace(reTrim,"");
6416 if(value){html.push('><span class="nodeText">',escapeHTML(value),'</span></<span class="nodeT…
6418 }}else{if(childLength>0){html.push("></span></div>")
6420 }}}else{if(node.nodeType==3){if(node.parentNode&&(node.parentNode.nodeName.toLowerCase()=="script"|…
6421 if(isIE){var src=value+"\n"
6431 if(value){html.push('<div class="nodeText">',escapeHTML(value),"</div>")
6435 if(parentNode.childNodes.length==0){return
6458 if(id){this.selectTreeNode(id)
6463 if(node){id=ElementCache(node)
6468 if(stack.length>0&&ElementCache.get(id).childNodes.length>0){this.appendTreeChildren(node)
6470 if(fbPanel1){fbPanel1.scrollTop=Math.round(node.offsetTop-fbPanel1.clientHeight/2)
6476 if(Env.Options.enablePersistent||Firebug.chrome.type!="popup"){this.createUI()
6477 }if(this.sidePanelBar&&!this.sidePanelBar.selectedPanel){this.sidePanelBar.selectPanel("css")
6490 if(!selectedElement){Firebug.context.persistedState.selectedHTMLElementId=Firebug.context.persisted…
6501 },reattach:function(){if(Firebug.context.persistedState.selectedHTMLElementId){Firebug.HTML.selectT…
6503 if(id){Firebug.HTML.selectTreeNode(id)
6512 var selectElement=function selectElement(e){if(e!=selectedElement){if(selectedElement){selectedElem…
6514 if(FBL.isFirefox){e.style.MozBorderRadius="2px"
6515 }else{if(FBL.isSafari){e.style.WebkitBorderRadius="2px"
6524 if(stack.length>2){stack.pop()
6526 if(selectedSidePanel){selectedSidePanel.select(target,true)
6528 if(selectedSidePanelTimer){clearTimeout(selectedSidePanelTimer);
6530 }if(new Date().getTime()-selectedSidePanelTS>100){setTimeout(lazySelect,0)
6535 if(e.target){targ=e.target
6536 }else{if(e.srcElement){targ=e.srcElement
6537 }}if(targ.nodeType==3){targ=targ.parentNode
6538 }if(targ.className.indexOf("nodeControl")!=-1||targ.className=="nodeTag"){if(targ.className=="nodeT…
6540 if(control.className.indexOf("nodeControl")==-1){return
6544 if(control.className.indexOf(" nodeMaximized")!=-1){FBL.Firebug.HTML.removeTreeChildren(treeNode)
6546 }}else{if(targ.className=="nodeValue"||targ.className=="nodeName"){}}};
6549 if(e.target){targ=e.target
6550 }else{if(e.srcElement){targ=e.srcElement
6551 }}if(targ.nodeType==3){targ=targ.parentNode
6552 }if(hasClass(targ,"fbPanel")){FBL.Firebug.Inspector.hideBoxModel();
6558 if(e.target){targ=e.target
6559 }else{if(e.srcElement){targ=e.srcElement
6560 }}if(targ.nodeType==3){targ=targ.parentNode
6562 while(targ&&!found){if(!/\snodeBox\s|\sobjectBox-selector\s/.test(" "+targ.className+" ")){targ=tar…
6564 }}if(!targ){FBL.Firebug.Inspector.hideBoxModel();
6567 }if(typeof targ.attributes[cacheID]=="undefined"){return
6569 if(!uid){return
6572 if(FBL.isIE&&" meta title script link ".indexOf(" "+nodeName+" ")!=-1){return
6573 }if(!/\snodeBox\s|\sobjectBox-selector\s/.test(" "+targ.className+" ")){return
6574 }if(el.id=="FirebugUI"||" html head body br script link iframe ".indexOf(" "+nodeName+" ")!=-1){FBL…
6577 }if((new Date().getTime()-hoverElementTS>40)&&hoverElement!=el){hoverElementTS=new Date().getTime();
6590 },appendObject:function(object,html){try{if(object==undefined){this.appendNull("undefined",html)
6591 }else{if(object==null){this.appendNull("null",html)
6592 }else{if(typeof object=="string"){this.appendString(object,html)
6593 }else{if(typeof object=="number"){this.appendInteger(object,html)
6594 }else{if(typeof object=="boolean"){this.appendInteger(object,html)
6595 }else{if(typeof object=="function"){this.appendFunction(object,html)
6596 }else{if(object.nodeType==1){this.appendSelector(object,html)
6597 }else{if(typeof object=="object"){if(typeof object.length!="undefined"){this.appendArray(object,htm…
6608 if(object.id){html.push('<span class="selectorId">#',escapeHTML(object.id),"</span>")
6609 }if(object.className){html.push('<span class="selectorClass">.',escapeHTML(object.className),"</spa…
6611 },appendNode:function(node,html){if(node.nodeType==1){var uid=ElementCache(node);
6617 if(!attr.specified||attr.nodeName==cacheID){continue
6621 }if(node.firstChild){html.push('></div><div class="nodeChildren">');
6627 }}else{if(node.nodeType==3){var value=trim(node.nodeValue);
6628 if(value){html.push('<div class="nodeText">',escapeHTML(value),"</div>")
6633 if(i<l-1){html.push(", ")
6644 if(!bgImg){return
6645 }if(isIE){removeClass(innerBox,"infoTipLoading")
6648 if(repeat=="repeat-x"||(w==1&&h>1)){collapse(img,true);
6652 if(h>maxHeight){bgImg.style.height=maxHeight+"px"
6654 }}else{if(repeat=="repeat-y"||(h==1&&w>1)){collapse(img,true);
6658 if(w>maxWidth){bgImg.style.width=maxWidth+"px"
6660 }}else{if(repeat=="repeat"||(w==1&&h==1)){collapse(img,true);
6665 }else{if(w>maxWidth||h>maxHeight){if(w>h){img.style.width=maxWidth+"px";
6671 if(isIE){setTimeout(updateInfoTip,0)
6677 if(!doc){return
6682 },uninitializeBrowser:function(browser){if(browser.infoTip){var doc=browser.document;
6689 }},showInfoTip:function(infoTip,panel,target,x,y,rangeParent,rangeOffset){if(!Firebug.showInfoTips)…
6692 if(panel.showInfoTip(infoTip,target,scrollX,y,rangeParent,rangeOffset)){var htmlElt=infoTip.ownerDo…
6695 if(x+infoTip.offsetWidth+infoTipMargin>panelWidth){infoTip.style.left=Math.max(0,panelWidth-(infoTi…
6699 }if(y+infoTip.offsetHeight+infoTipMargin>panelHeight){infoTip.style.top=Math.max(0,panelHeight-(inf…
6703 }if(FBTrace.DBG_INFOTIP){FBTrace.sysout("infotip.showInfoTip; top: "+infoTip.style.top+", left: "+i…
6706 }},hideInfoTip:function(infoTip){if(infoTip){infoTip.removeAttribute("active")
6707 }},onMouseOut:function(event,browser){if(!event.relatedTarget){this.hideInfoTip(browser.infoTip)
6708 }},onMouseMove:function(event,browser){if(getAncestorByClass(event.target,"infoTip")){return
6709 }if(browser.currentPanel){var x=event.clientX,y=event.clientY,target=event.target||event.srcElement;
6714 },populateImageInfoTip:function(infoTip,url,repeat){if(!repeat){repeat="no-repeat"
6717 },disable:function(){},showPanel:function(browser,panel){if(panel){var infoTip=panel.panelBrowser.i…
6718 if(!infoTip){infoTip=this.initializeBrowser(panel.panelBrowser)
6750 if(ch=="\n"||ch=="\r"){if(ch=="\r"&&i<il-1&&text.charAt(i+1)=="\n"){i++
6756 if(!line_indexes){var line_indexes=saveLineIndexes(text)
6764 if(r.start>=line_indexes[j]&&r.start<line_indexes[j+1]){r.line=j+1+startLine;
6776 if(!rule_start.length){rule_start.push(i)
6777 }switch(ch){case"@":if(!in_comment){if(hasStr(i,"@import")){var m=text.substr(i).match(/^@import\s*…
6778 if(m){cur_parent.addChild(i,i+7,i+m[0].length);
6782 }}case"/":if(!in_comment&&ch2=="*"){in_comment++
6784 case"*":if(ch2=="/"){in_comment--
6786 case"{":if(!in_comment){rule_body_start.push(i);
6790 case"}":if(!in_comment){var last_rule=stack.pop();
6798 if(rule_node){for(var i=0,il=rule_node.children.length;
6801 if(r.selector==selector){result.push(r)
6802 }}}if(result.length){return result
6837 ){if(parsedRules[i].selector.indexOf("@")!=-1){parsedRules.splice(i,1)
6845 if(FBTrace.DBG_CSS){var start=new Date().getTime()
6849 if("firebugIgnore" in styleSheet){continue
6857 if(isIE){var imports=styleSheet.imports;
6867 }}else{if(rules){for(var j=0,rulesLength=rules.length;
6871 if(importedStyleSheet){importedRules=importedStyleSheet.cssRules;
6878 }}}}if(FBTrace.DBG_CSS){FBTrace.sysout("FBL.processAllStyleSheets","all stylesheet rules processed …
6880 var processStyleSheet=function(doc,styleSheet){if(styleSheet.restricted){return
6885 if(shouldParseCSS){try{var parsedRules=CssAnalyzer.parseStyleSheet(href)
6886 }catch(e){if(FBTrace.DBG_ERRORS){FBTrace.sysout("processStyleSheet FAILS",e.message||e)
6898 if(!selector||selector.indexOf("@")!=-1){continue
6899 }if(isIE){selector=selector.replace(reSelectorTag,function(s){return s.toLowerCase()
6901 }if(shouldParseCSS){var parsedRule=parsedRules[parsedRulesIndex];
6903 if(dontSupportGroupedRules&&parsedSelector.indexOf(",")!=-1&&group.length==0){group=parsedSelector.…
6904 }if(dontSupportGroupedRules&&group.length>0){groupItem=group.shift();
6905 if(CssParser.normalizeSelector(selector)==groupItem){lineNo=parsedRule.line
6906 }if(group.length==0){parsedRulesIndex++
6907 }}else{if(CssParser.normalizeSelector(selector)==parsedRule.selector){lineNo=parsedRule.line;
6915 if(!ElementCSSRulesMap[eid]){ElementCSSRulesMap[eid]=[]
6922 if(!hasDomain){name=name.replace(/^(["'])(.+)\1$/,"$2");
6924 if(first=="/"){var m=/^([^:]+:\/{1,3}[^\/]+)/.exec(url);
6934 if(!oldStyle){return
6935 }if(!oldStyle.parentNode){return
6945 if(processAllStyleSheetsTimeout){clearTimeout(processAllStyleSheetsTimeout)
6953 if(!rules){return
6961 if(rule.selector.indexOf(",")!=-1){var selectors=rule.selector.split(",");
6967 if(Selector.matches(sel,arr).length==1){spec=getCSSRuleSpecificity(sel);
6968 if(spec>maxSpecificity){maxSpecificity=spec;
6978 if(specificityA>specificityB){return 1
6979 }else{if(specificityA<specificityB){return -1
6984 if(ruleA.specificity==ruleB.specificity){return ruleA.order>ruleB.order?1:-1
6996 if(href){sourceData.source=Firebug.Lite.Proxy.load(href)
7008 i++){if(source.charAt(i)=="\n"){startLine++
7021 (function(){this.getElementXPath=function(element){try{if(element&&element.id){return'//*[@id="'+el…
7031 sibling=sibling.previousSibling){if(sibling.nodeType!=1){continue
7032 }if(sibling.nodeName==nodeName){++index
7077 Firebug.CSSModule=extend(Firebug.Module,{freeEdit:function(styleSheet,value){if(!styleSheet.editSty…
7085 if(ownerNode.hasAttribute("media")){editStyleSheet.setAttribute("media",ownerNode.getAttribute("med…
7089 if(FBTrace.DBG_CSS){FBTrace.sysout("css.saveEdit styleSheet.href:"+styleSheet.href+" got innerHTML:…
7091 },insertRule:function(styleSheet,cssText,ruleIndex){if(FBTrace.DBG_CSS){FBTrace.sysout("Insert: "+r…
7095 },deleteRule:function(styleSheet,ruleIndex){if(FBTrace.DBG_CSS){FBTrace.sysout("deleteRule: "+ruleI…
7100 if(style.getPropertyValue){var prevValue=style.getPropertyValue(propName);
7105 }if(propName){dispatch(this.fbListeners,"onCSSSetProperty",[style,propName,propValue,propPriority,p…
7108 if(style.getPropertyValue){var prevValue=style.getPropertyValue(propName);
7112 }if(propName){dispatch(this.fbListeners,"onCSSRemoveProperty",[style,propName,prevValue,prevPriorit…
7115 …),DIV({"class":"cssSheet editable insertBefore"},""))}),refresh:function(){if(this.location){this.…
7116 }else{if(this.selection){this.updateSelection(this.selection)
7117 }}},toggleEditing:function(){if(!this.stylesheetEditor){this.stylesheetEditor=new StyleSheetEditor(…
7118 }if(this.editing){Firebug.Editor.stopEditing()
7119 }else{if(!this.location){return
7124 }},getStylesheetURL:function(rule){if(this.location.href){return this.location.href
7126 }},getRuleByLine:function(styleSheet,line){if(!domUtils){return null
7131 if(rule instanceof CSSStyleRule){var ruleLine=domUtils.getRuleLine(rule);
7132 if(ruleLine>=line){return rule
7134 if(ruleElement){scrollIntoCenterView(ruleElement,this.panelNode);
7140 if(instanceOf(rule,"CSSStyleRule")){var props=this.getRuleProperties(context,rule);
7143 if(isIE){selector=selector.replace(reSelectorTag,function(s){return s.toLowerCase()
7147 }else{if(instanceOf(rule,"CSSImportRule")){rules.push({tag:CSSImportRuleTag.tag,rule:rule})
7148 }else{if(instanceOf(rule,"CSSMediaRule")){appendRules.apply(this,[rule.cssRules])
7149 }else{if(FBTrace.DBG_ERRORS||FBTrace.DBG_CSS){FBTrace.sysout("css getStyleSheetRules failed to clas…
7154 if(Firebug.expandShorthandProps){var count=style.length-1,index=style.length;
7162 if(!m){continue
7163 }if(m[2]){this.addProperty(m[1],m[2],!!m[3],false,inheritMode,props)
7171 },addOldProperties:function(context,ruleId,inheritMode,props){if(context.selectorMap&&context.selec…
7177 if(inheritMode&&!inheritedStyleNames[name]){return
7179 if(name){value=stripUnits(rgbToHex(value));
7183 }},translateName:function(name,value){if((value=="-moz-initial"&&(name=="-moz-background-clip"||nam…
7184 }if(name=="margin-left-value"){return"margin-left"
7185 }else{if(name=="margin-right-value"){return"margin-right"
7186 }else{if(name=="margin-top-value"){return"margin-top"
7187 }else{if(name=="margin-bottom-value"){return"margin-bottom"
7188 }else{if(name=="padding-left-value"){return"padding-left"
7189 }else{if(name=="padding-right-value"){return"padding-right"
7190 }else{if(name=="padding-top-value"){return"padding-top"
7191 }else{if(name=="padding-bottom-value"){return"padding-bottom"
7195 if(!styleRuleBox){var rule={rule:this.selection,inherited:false,selector:"element.style",props:[]};
7196 if(!rulesBox){styleRuleBox=this.template.cascadedTag.replace({rules:[rule],inherited:[],inheritLabe…
7203 if(!location){location=getChildByClass(this.panelNode,"cssSheet");
7212 if(this.context.selectorMap&&this.context.selectorMap.hasOwnProperty(ruleId)){var map=this.context.…
7215 ++i){if(map[i].name==propName){map.splice(i,1);
7217 }}}if(this.name=="stylesheet"){dispatch([Firebug.A11yModel],"onInlineEditorClose",[this,row.firstCh…
7223 if(!this.context.selectorMap){this.context.selectorMap={}
7225 if(!(this.context.selectorMap.hasOwnProperty(ruleId))){this.context.selectorMap[ruleId]=[]
7229 if(hasClass(row,"disabledStyle")){Firebug.CSSModule.removeProperty(rule,propName);
7236 if(!isLeftClick(event)||offset>20){return
7238 if(hasClass(target,"textEditor")){return
7240 if(row&&hasClass(row,"editGroup")){this.disablePropertyRow(row);
7243 if(!isLeftClick(event)||offset<=20){return
7245 if(hasClass(target,"textEditorInner")){return
7247 if(row&&!getAncestorByClass(target,"cssPropName")&&!getAncestorByClass(target,"cssPropValue")){this…
7252 if(this.name=="stylesheet"){this.onChangeSelect=bind(this.onChangeSelect,this);
7271 if(this.name=="stylesheet"){var styleSheets=Firebug.browser.document.styleSheets;
7272 if(styleSheets.length>0){addEvent(this.selectNode,"change",this.onChangeSelect);
7275 if(this.name=="stylesheet"){removeEvent(this.selectNode,"change",this.onChangeSelect)
7285 if(this.context.loaded&&!this.location){restoreObjects(this,state);
7286 if(!this.location){this.location=this.getDefaultLocation()
7287 }if(state&&state.scrollTop){this.panelNode.scrollTop=state.scrollTop
7290 },supportsObject:function(object){if(object instanceof CSSStyleSheet){return 1
7291 }else{if(object instanceof CSSStyleRule){return 2
7292 }else{if(object instanceof CSSStyleDeclaration){return 2
7293 }else{if(object instanceof SourceLink&&object.type=="css"&&reCSS.test(object.href)){return 2
7295 }}}}},updateLocation:function(styleSheet){if(!styleSheet){return
7296 }if(styleSheet.editStyleSheet){styleSheet=styleSheet.editStyleSheet.sheet
7297 }if(styleSheet.restricted){FirebugReps.Warning.tag.replace({object:"AccessRestricted"},this.panelNo…
7302 if(rules.length){result=this.template.tag.replace({rules:rules},this.panelNode)
7305 if(object instanceof CSSStyleDeclaration){object=object.parentRule
7306 }if(object instanceof CSSStyleRule){this.navigate(object.parentStyleSheet);
7308 }else{if(object instanceof CSSStyleSheet){this.navigate(object)
7309 }else{if(object instanceof SourceLink){try{var sourceLink=object;
7311 if(sourceFile){clearNode(this.panelNode);
7314 if(lineNo){this.scrollToLine(lineNo,this.jumpHighlightFactory(lineNo,this.context))
7316 if(stylesheet){this.navigate(stylesheet)
7317 }else{if(FBTrace.DBG_CSS){FBTrace.sysout("css.updateSelection no sourceFile for "+sourceLink.href,s…
7318 }}}}catch(exc){if(FBTrace.DBG_CSS){FBTrace.sysout("css.upDateSelection FAILS "+exc,exc)
7319 }}}}}},updateOption:function(name,value){if(name=="expandShorthandProps"){this.refresh()
7324 if(this.infoTipType=="color"){items.push({label:"CopyColor",command:bindFixed(copyToClipboard,FBL,t…
7325 }else{if(this.infoTipType=="image"){items.push({label:"CopyImageLocation",command:bindFixed(copyToC…
7326 }}if(isElement(this.selection)){items.push({label:"EditStyle",command:bindFixed(this.editElementSty…
7327 }else{if(!isSystemStyleSheet(this.selection)){items.push({label:"NewRule",command:bindFixed(this.in…
7329 if(cssRule&&hasClass(cssRule,"cssEditableRule")){items.push("-",{label:"NewProp",command:bindFixed(…
7331 if(propRow){var propName=getChildByClass(propRow,"cssPropName")[textContent];
7336 },browseObject:function(object){if(this.infoTipType=="image"){openNewTab(this.infoTipObject);
7339 if(propValue){var offset=getClientOffset(propValue);
7345 if(cssValue){if(cssValue.value==this.infoTipValue){return true
7347 if(cssValue.type=="rgb"||(!cssValue.type&&isColorKeyword(cssValue.value))){this.infoTipType="color";
7350 }else{if(cssValue.type=="url"){var propNameNode=getElementByClass(target.parentNode,"cssPropName");
7351 if(propNameNode&&isImageRule(propNameNode[textContent])){var rule=Firebug.getRepObject(target);
7362 …on(target,value){if(target==this.panelNode||hasClass(target,"cssSelector")||hasClass(target,"cssRu…
7364 }else{if(!this.editor){this.editor=new CSSEditor(this.document)
7367 if(styleSheets.length){var sheet=styleSheets[0];
7369 }}catch(exc){if(FBTrace.DBG_LOCATIONS){FBTrace.sysout("css.getDefaultLocation FAILS "+exc,exc)
7373 if(instance){baseDescription.name=baseDescription.name+" #"+(instance+1)
7376 if(!curDoc&&Firebug.searchGlobal){return this.searchOtherDocs(text,reverse)
7381 i++){if(scanRE.test(styleSheet.cssRules[i].cssText)){return true
7382 }}}if(this.navigateToNextDocument(scanDoc,reverse)){return this.searchCurrentDoc(true,text,reverse)
7383 }},searchCurrentDoc:function(wrapSearch,text,reverse){if(!text){delete this.currentSearch;
7386 if(this.currentSearch&&text==this.currentSearch.text){row=this.currentSearch.findNext(wrapSearch,fa…
7387 }else{if(this.editing){this.currentSearch=new TextSearch(this.stylesheetEditor.box);
7389 if(row){var sel=this.document.defaultView.getSelection();
7398 }}if(row){this.document.defaultView.getSelection().selectAllChildren(row);
7409 if(rules.length||sections.length){var inheritLabel="Inherited from";
7412 }if(CssAnalyzer.hasExternalStyleSheet()){CssAnalyzer.externalStyleSheetWarning.tag.append({object:"…
7413 }},getStylesheetURL:function(rule){if(rule&&rule.parentStyleSheet&&rule.parentStyleSheet.href){retu…
7416 if(parent&&parent.nodeType==1){this.getInheritedRules(parent,sections,usedProps);
7419 if(rules.length){sections.splice(0,0,{element:parent,rules:rules})
7422 if(inspectedRules){for(var i=0,length=inspectedRules.length;
7432 if(!Firebug.showUserAgentCSS&&isSystemSheet){continue
7433 }if(!href){href=element.ownerDocument.location.href
7435 if(inheritMode&&!props.length){continue
7441 }}if(element.style){this.getStyleProperties(element,rules,usedProps,inheritMode)
7442 }if(FBTrace.DBG_CSS){FBTrace.sysout("getElementRules "+rules.length+" rules for "+getElementXPath(e…
7446 if(usedProps.hasOwnProperty(prop.name)){var deadProps=usedProps[prop.name];
7450 if(!deadProp.disabled&&!deadProp.wasInherited&&deadProp.important&&!prop.important){prop.overridden…
7451 }else{if(!prop.disabled){deadProp.overridden=true
7459 if(props.length){rules.splice(0,0,{rule:element,id:getElementXPath(element),selector:"element.style…
7464 if(selection){this.select(selection,true)
7465 }},ishow:function(state){},watchWindow:function(win){if(domUtils){var doc=win.document
7467 if(isAncestor(this.stateChangeEl,doc)){this.removeStateChangeHandlers()
7470 if(domUtils){this.contentState=safeGetContentState(element);
7472 }},updateSelection:function(element){if(!instanceOf(element,"Element")){return
7473 }if(sothinkInstalled){FirebugReps.Warning.tag.replace({object:"SothinkWarning"},this.panelNode);
7475 }if(!element){return
7477 },updateOption:function(name,value){if(name=="showUserAgentCSS"||name=="expandShorthandProps"){this…
7479 if(domUtils&&this.selection){var state=safeGetContentState(this.selection);
7489 if(sel){}},contentStateCheck:function(state){if(!state||this.contentState&state){var timeoutRunner=…
7490 if(newState!=this.contentState){this.context.invalidatePanels(this.name)
7495 }catch(e){if(FBTrace.DBG_ERRORS){FBTrace.sysout("css.safeGetContentState; EXCEPTION",e)
7507 if(propValue===undefined||propValue===null){continue
7509 if(propValue){group.props.push({name:propName,value:propValue})
7517 if(insertWhere=="before"){return CSSPropTag.tag.insertBefore({prop:emptyProp,rule:rule},target)
7519 }},saveEdit:function(target,value,previousValue){if(!value){return
7522 if(hasClass(row,"disabledStyle")){toggleClass(row,"disabledStyle")
7524 if(hasClass(target,"cssPropName")){if(value&&previousValue!=value){var propValue=getChildByClass(ro…
7526 if(propValue&&propValue!="undefined"){if(FBTrace.DBG_CSS){FBTrace.sysout("CSSEditor.saveEdit : "+pr…
7527 }if(previousValue){Firebug.CSSModule.removeProperty(rule,previousValue)
7529 }}else{if(!value){Firebug.CSSModule.removeProperty(rule,previousValue)
7530 }}}else{if(getAncestorByClass(target,"cssPropValue")){var propName=getChildByClass(row,"cssPropName…
7532 if(FBTrace.DBG_CSS){FBTrace.sysout("CSSEditor.saveEdit propName=propValue: "+propName+" = "+propVal…
7533 }if(value&&value!="null"){var parsedValue=parsePriority(value);
7535 }else{if(previousValue&&previousValue!="null"){Firebug.CSSModule.removeProperty(rule,propName)
7537 },advanceToNext:function(target,charCode){if(charCode==58&&hasClass(target,"cssPropName")){return t…
7538 }},getAutoCompleteRange:function(value,offset){if(hasClass(this.target,"cssPropName")){return{start…
7540 }},getAutoCompleteList:function(preExpr,expr,postExpr){if(hasClass(this.target,"cssPropName")){retu…
7549 if(insertWhere=="before"){return CSSStyleRuleTag.tag.insertBefore({rule:emptyRule},target)
7551 }},saveEdit:function(target,value,previousValue){if(FBTrace.DBG_CSS){FBTrace.sysout("CSSRuleEditor.…
7553 if(value===previousValue){return
7560 if(rule||Firebug.getRepObject(row.nextSibling)){var searchRule=rule||Firebug.getRepObject(row.nextS…
7563 ruleIndex++){}}if(oldRule){Firebug.CSSModule.deleteRule(styleSheet,ruleIndex)
7564 }if(value){var cssText=[value,"{"];
7569 if(!hasClass(propEl,"disabledStyle")){cssText.push(getChildByClass(propEl,"cssPropName")[textConten…
7578 }catch(err){if(FBTrace.DBG_CSS||FBTrace.DBG_ERRORS){FBTrace.sysout("CSS Insert Error: "+err,err)
7584 if(!oldRule){var ruleId="new/"+value+"/"+(++CSSRuleEditor.uniquifier);
7601 if(this.box.parentNode==this.panel.panelNode){this.panel.panelNode.removeChild(this.box)
7634 if(m&&m.index+m[0].length<offset){value=value.substr(m.index+m[0].length);
7638 }}if(m){var type;
7639 if(m[1]){type="url"
7640 }else{if(m[2]||m[3]){type="rgb"
7641 }else{if(m[4]){type="int"
7645 ++i){if(props[i].name==name){return i
7650 child=child.nextSibling){if(child.offsetTop+child.offsetHeight>panelNode.scrollTop){var rule=child.…
7651 if(rule){return{line:domUtils.getRuleLine(rule),offset:panelNode.scrollTop-child.offsetTop}
7653 }function getStyleSheetCSS(sheet,context){if(sheet.ownerNode instanceof HTMLStyleElement){return sh…
7678 i++){if(Firebug.ignoreFirebugElements&&script.getAttribute("firebugIgnore")){continue
7698 if(!option){return
7704 if(!option){return
7707 },renderSourceCode:function(index){if(this.sourceIndex!=index){var renderProcess=function renderPro…
7738 try{if(Firebug.disableResourceFetching){renderProcess(Firebug.Lite.Proxy.fetchResourceDisabledMessa…
7739 }else{if(isExternal){Ajax.request({url:url,onSuccess:renderProcess,onFailure:onFailure})
7752 if(file){var fileName=file[1];
7754 if(reProtocol.test(script.src)){path=rePath.exec(script.src)[1]
7760 if(backDir){var j=backDir[1].length/3;
7764 }else{if(src.indexOf("/")!=-1){if(/^\.\/./.test(src)){path+=src.substring(2)
7765 }else{if(/^\/./.test(src)){var domain=/^(\w+:\/\/[^\/]+)/.exec(path);
7769 if(path&&m){return path+fileName
7771 var getFileName=function getFileName(path){if(!path){return""
7780 if(Firebug.ignoreFirebugElements){ignoreVars[Firebug.Lite.Cache.ID]=1
7787 },onClick:function(event){if(!isLeftClick(event)){return
7791 if(label&&hasClass(row,"hasChildren")){var row=label.parentNode.parentNode;
7794 if(typeof(object)=="function"){Firebug.chrome.select(object,"script");
7796 }else{if(event.detail==2&&!object){var panel=row.parentNode.parentNode.domPanel;
7797 if(panel){var rowValue=panel.getRowPropertyValue(row);
7798 if(typeof(rowValue)=="boolean"){panel.setPropertyValue(row,!rowValue)
7804 if(hasClass(row,"opened")){removeClass(row,"opened");
7805 if(toggles){var path=getPath(row);
7808 ++i){if(i==path.length-1){delete toggles[path[i]]
7814 firstRow=row.nextSibling){if(parseInt(firstRow.getAttribute("level"))<=level){break
7818 if(toggles){var path=getPath(row);
7822 if(toggles.hasOwnProperty(name)){toggles=toggles[name]
7829 …s.splice(0,insertSliceSize),isLast:!members.length}){setTimeout(function(){if(lastRow.parentNode){…
7831 }if(isLast){row.removeAttribute("insertTimeout")
7837 …d(Firebug.Panel,{tag:DirTablePlate.tableTag,getRealObject:function(object){if(!object){return obje…
7838 }if(object.wrappedJSObject){return object.wrappedJSObject
7843 if(!this.parentPanel){updateStatusBar(this)
7844 }},showMembers:function(members,update,scrollTop){if(this.timeouts){for(var i=0;
7848 }if(!members.length){return this.showEmptyMembers()
7861 …,isLast:!members.length}){timeouts.push(this.context.setTimeout(function(){if(!tbody.lastChild){re…
7863 if((panelNode.scrollHeight+panelNode.offsetHeight)>=priorScrollTop){panelNode.scrollTop=priorScroll…
7866 }}if(offscreen){timeouts.push(this.context.setTimeout(function(){if(panelNode.firstChild){panelNode…
7877 ++i){if(this.getPathObject(i)===object){return i
7880 if(object instanceof Property){return object.getObject()
7886 if(object){var propName=getRowName(row);
7887 if(object instanceof jsdIStackFrame){return Firebug.Debugger.evaluate(propName,this.context)
7892 if(object&&instanceOf(object,"Element")&&object.nodeType==1){if(object!=lastHighlightedObject){Fire…
7907 },ishow:function(state){if(this.context.loaded&&!this.selection){if(!state){this.select(null);
7909 }if(state.viewPath){this.viewPath=state.viewPath
7910 }if(state.propertyPath){this.propertyPath=state.propertyPath
7913 if(state.firstSelection){var restored=state.firstSelection(this.context);
7914 if(restored){selectObject=restored;
7918 }if(this.propertyPath.length>1){for(var i=1;
7921 if(!name){continue
7925 }if(selectObject){this.objectPath.push(new Property(object,name))
7933 }},supportsObject:function(object){if(object==null){return 1000
7934 }if(typeof(object)=="undefined"){return 1000
7935 }else{if(object instanceof SourceLink){return 0
7943 if(newPath||pathIndex==-1){this.toggles={};
7944 if(newPath){if(previousView){if(this.panelNode.scrollTop){previousView.scrollTop=this.panelNode.scr…
7950 if(!value){if(FBTrace.DBG_ERRORS){FBTrace.sysout("dom.updateSelection no pathObject for "+previousI…
7957 }catch(exc){if(FBTrace.DBG_ERRORS){FBTrace.sysout("dom.updateSelection FAILS at path_i="+i+" for na…
7965 if(object===win){this.pathIndex=0;
7978 if(previousView&&this.panelNode.scrollTop){previousView.scrollTop=this.panelNode.scrollTop
7991 if(isIE6){r.push(' href="javascript:void(0)"')
7995 if(i<l-1){r.push('<span class="fbStatusSeparator">></span>')
8002 if(element){var pathIndex=element.getAttribute("pathIndex");
8003 if(pathIndex){this.select(this.getPathObject(pathIndex))
8004 }}},selectRow:function(row,target){if(!target){target=row.lastChild.firstChild
8005 }if(!target||!target.repObject){return
8008 if(hasClass(valueBox,"objectBox-array")){var arrayIndex=FirebugReps.Arr.getItemIndex(target);
8013 if(repNode){var row=getAncestorByClass(target,"memberRow");
8014 if(row){this.selectRow(row,repNode);
8028 var getMembers=function getMembers(object,level){if(!level){level=0
8031 if(object.wrappedJSObject){var insecureObject=object.wrappedJSObject
8033 }if(isIE&&isFunction(object)){addMember("user",userProps,"prototype",object.prototype,level)
8034 }for(var name in insecureObject){if(ignoreVars[name]==1){continue
8037 }catch(exc){if(FBTrace.DBG_ERRORS&&FBTrace.DBG_DOM){FBTrace.sysout("dom.getMembers cannot access "+…
8039 if(ordinal||ordinal==0){addMember("ordinal",ordinals,name,val,level)
8040 }else{if(isFunction(val)){if(isClassFunction(val)&&!(name in domMembers)){addMember("userClass",use…
8041 }else{if(name in domMembers){addMember("domFunction",domFuncs,name,val,level,domMembers[name])
8044 if(name in domMembers&&!(name in domConstantMap)){addMember("dom",domProps,(prefix+name),val,level,…
8045 }else{if(name in domConstantMap){addMember("dom",domConstants,(prefix+name),val,level)
8048 if(FBTrace.DBG_ERRORS&&FBTrace.DBG_DOM){FBTrace.sysout("dom.getMembers FAILS: ",exc)
8058 if(Firebug.showUserProps){userProps.sort(sortName);
8060 }if(Firebug.showUserFuncs){userClasses.sort(sortName);
8064 }if(Firebug.showDOMProps){domProps.sort(sortName);
8066 }if(Firebug.showDOMFuncs){domFuncs.sort(sortName);
8068 }if(Firebug.showDOMConstants){members.push.apply(members,domConstants)
8075 if(member.level>level){break
8076 }if(toggles.hasOwnProperty(member.name)){member.open="opened";
8107 if(parentRow){return getRowValue(parentRow)
8112 row=row.previousSibling){if(parseInt(row.getAttribute("level"))==level){return row
8119 row=row.previousSibling){if(parseInt(row.getAttribute("level"))==level){var name=getRowName(row);
8128 …type=extend(Firebug.DOMBasePanel.prototype,{selectRow:function(row,target){if(!target){target=row.…
8129 }if(!target||!target.repObject){return
8132 if(hasClass(valueBox,"objectBox-array")){var arrayIndex=FirebugReps.Arr.getItemIndex(target);
8135 if(instanceOf(object,"Element")){Firebug.HTML.selectTreeNode(ElementCache(object))
8140 if(repNode){var row=getAncestorByClass(target,"memberRow");
8141 if(row){this.selectRow(row,repNode);
8148 if(selection){this.select(selection,true)
8158 this.initialize=function(){if(!this.messageQueue){this.messageQueue=[]
8182 if(i==0){html.push("<b>");
8189 if(panel&&panel.panelNode){this.writeMessage(message,className)
8196 if(isScrolledToBottom){container.scrollTop=container.scrollHeight-container.offsetHeight
8217 FBL.ns(function(){with(FBL){if(!Env.Options.enableTrace){return
8237 append(Firebug,{extend:function(fn){if(Firebug.chrome&&Firebug.chrome.addPanel){var namespace=ns(fn…
8244 if(FBTrace.DBG_INITIALIZE){FBTrace.sysout("Firebug.registerModule")
8249 ++i){if(panelType.prototype.name=="Dev"){continue
8252 if(parentPanelName){parentPanelMap[parentPanelName]=1
8260 }}if(FBTrace.DBG_INITIALIZE){for(var i=0;