Lines Matching defs:context

78 }if(FBTrace.DBG_INITIALIZE&&isChromeContext){FBTrace.sysout("FBL.initialize - persistent application","initialize chrome context")
789 this.setClassTimed=function(elt,name,context,timeout){if(!timeout){timeout=1300
790 }if(elt.__setClassTimeout){context.clearTimeout(elt.__setClassTimeout)
792 }elt.__setClassTimeout=context.setTimeout(function(){delete elt.__setClassTimeout;
796 this.cancelClassTimed=function(elt,name,context){if(elt.__setClassTimeout){FBL.removeClass(elt,name);
797 context.clearTimeout(elt.__setClassTimeout);
935 }}else{return"(no context.window)"
1212 try{jsonObject=Firebug.context.evaluate(jsonString,null,null,function(){return null
1359 this.cssKeywords={appearance:["button","button-small","checkbox","checkbox-container","checkbox-small","dialog","listbox","menuitem","menulist","menulist-button","menulist-textfield","menupopup","progressbar","radio","radio-container","radio-small","resizer","scrollbar","scrollbarbutton-down","scrollbarbutton-left","scrollbarbutton-right","scrollbarbutton-up","scrollbartrack-horizontal","scrollbartrack-vertical","separator","statusbar","tab","tab-left-edge","tabpanels","textfield","toolbar","toolbarbutton","toolbox","tooltip","treeheadercell","treeheadersortarrow","treeitem","treetwisty","treetwistyopen","treeview","window"],systemColor:["ActiveBorder","ActiveCaption","AppWorkspace","Background","ButtonFace","ButtonHighlight","ButtonShadow","ButtonText","CaptionText","GrayText","Highlight","HighlightText","InactiveBorder","InactiveCaption","InactiveCaptionText","InfoBackground","InfoText","Menu","MenuText","Scrollbar","ThreeDDarkShadow","ThreeDFace","ThreeDHighlight","ThreeDLightShadow","ThreeDShadow","Window","WindowFrame","WindowText","-moz-field","-moz-fieldtext","-moz-workspace","-moz-visitedhyperlinktext","-moz-use-text-color"],color:["AliceBlue","AntiqueWhite","Aqua","Aquamarine","Azure","Beige","Bisque","Black","BlanchedAlmond","Blue","BlueViolet","Brown","BurlyWood","CadetBlue","Chartreuse","Chocolate","Coral","CornflowerBlue","Cornsilk","Crimson","Cyan","DarkBlue","DarkCyan","DarkGoldenRod","DarkGray","DarkGreen","DarkKhaki","DarkMagenta","DarkOliveGreen","DarkOrange","DarkOrchid","DarkRed","DarkSalmon","DarkSeaGreen","DarkSlateBlue","DarkSlateGray","DarkTurquoise","DarkViolet","DeepPink","DarkSkyBlue","DimGray","DodgerBlue","Feldspar","FireBrick","FloralWhite","ForestGreen","Fuchsia","Gainsboro","GhostWhite","Gold","GoldenRod","Gray","Green","GreenYellow","HoneyDew","HotPink","IndianRed","Indigo","Ivory","Khaki","Lavender","LavenderBlush","LawnGreen","LemonChiffon","LightBlue","LightCoral","LightCyan","LightGoldenRodYellow","LightGrey","LightGreen","LightPink","LightSalmon","LightSeaGreen","LightSkyBlue","LightSlateBlue","LightSlateGray","LightSteelBlue","LightYellow","Lime","LimeGreen","Linen","Magenta","Maroon","MediumAquaMarine","MediumBlue","MediumOrchid","MediumPurple","MediumSeaGreen","MediumSlateBlue","MediumSpringGreen","MediumTurquoise","MediumVioletRed","MidnightBlue","MintCream","MistyRose","Moccasin","NavajoWhite","Navy","OldLace","Olive","OliveDrab","Orange","OrangeRed","Orchid","PaleGoldenRod","PaleGreen","PaleTurquoise","PaleVioletRed","PapayaWhip","PeachPuff","Peru","Pink","Plum","PowderBlue","Purple","Red","RosyBrown","RoyalBlue","SaddleBrown","Salmon","SandyBrown","SeaGreen","SeaShell","Sienna","Silver","SkyBlue","SlateBlue","SlateGray","Snow","SpringGreen","SteelBlue","Tan","Teal","Thistle","Tomato","Turquoise","Violet","VioletRed","Wheat","White","WhiteSmoke","Yellow","YellowGreen","transparent","invert"],auto:["auto"],none:["none"],captionSide:["top","bottom","left","right"],clear:["left","right","both"],cursor:["auto","cell","context-menu","crosshair","default","help","pointer","progress","move","e-resize","all-scroll","ne-resize","nw-resize","n-resize","se-resize","sw-resize","s-resize","w-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","col-resize","row-resize","text","vertical-text","wait","alias","copy","move","no-drop","not-allowed","-moz-alias","-moz-cell","-moz-copy","-moz-grab","-moz-grabbing","-moz-contextmenu","-moz-zoom-in","-moz-zoom-out","-moz-spinning"],direction:["ltr","rtl"],bgAttachment:["scroll","fixed"],bgPosition:["top","center","bottom","left","right"],bgRepeat:["repeat","repeat-x","repeat-y","no-repeat"],borderStyle:["hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","-moz-bg-inset","-moz-bg-outset","-moz-bg-solid"],borderCollapse:["collapse","separate"],overflow:["visible","hidden","scroll","-moz-scrollbars-horizontal","-moz-scrollbars-none","-moz-scrollbars-vertical"],listStyleType:["disc","circle","square","decimal","decimal-leading-zero","lower-roman","upper-roman","lower-greek","lower-alpha","lower-latin","upper-alpha","upper-latin","hebrew","armenian","georgian","cjk-ideographic","hiragana","katakana","hiragana-iroha","katakana-iroha","inherit"],listStylePosition:["inside","outside"],content:["open-quote","close-quote","no-open-quote","no-close-quote","inherit"],fontStyle:["normal","italic","oblique","inherit"],fontVariant:["normal","small-caps","inherit"],fontWeight:["normal","bold","bolder","lighter","inherit"],fontSize:["xx-small","x-small","small","medium","large","x-large","xx-large","smaller","larger"],fontFamily:["Arial","Comic Sans MS","Georgia","Tahoma","Verdana","Times New Roman","Trebuchet MS","Lucida Grande","Helvetica","serif","sans-serif","cursive","fantasy","monospace","caption","icon","menu","message-box","small-caption","status-bar","inherit"],display:["block","inline","inline-block","list-item","marker","run-in","compact","table","inline-table","table-row-group","table-column","table-column-group","table-header-group","table-footer-group","table-row","table-cell","table-caption","-moz-box","-moz-compact","-moz-deck","-moz-grid","-moz-grid-group","-moz-grid-line","-moz-groupbox","-moz-inline-block","-moz-inline-box","-moz-inline-grid","-moz-inline-stack","-moz-inline-table","-moz-marker","-moz-popup","-moz-runin","-moz-stack"],position:["static","relative","absolute","fixed","inherit"],"float":["left","right"],textAlign:["left","right","center","justify"],tableLayout:["fixed"],textDecoration:["underline","overline","line-through","blink"],textTransform:["capitalize","lowercase","uppercase","inherit"],unicodeBidi:["normal","embed","bidi-override"],whiteSpace:["normal","pre","nowrap"],verticalAlign:["baseline","sub","super","top","text-top","middle","bottom","text-bottom","inherit"],thickness:["thin","medium","thick"],userFocus:["ignore","normal"],userInput:["disabled","enabled"],userSelect:["normal"],mozBoxSizing:["content-box","padding-box","border-box"],mozBoxAlign:["start","center","end","baseline","stretch"],mozBoxDirection:["normal","reverse"],mozBoxOrient:["horizontal","vertical"],mozBoxPack:["start","center","end"]};
1511 Firebug.context=Firebug.browser;
1513 Firebug.context.persistedState.isOpen=false;
1519 if(Firebug.disableResourceFetching){Firebug.Console.logFormatted(['Some Firebug Lite features are not working because resource fetching is disabled. To enabled it set the Firebug Lite option "disableResourceFetching" to "false". More info at http://getfirebug.com/firebuglite#Options'],Firebug.context,"warn")
1532 Firebug.context=null
1583 }}if(Firebug.context&&persistedState){Firebug.context.persistedState=persistedState
1588 }}var persistedState=Firebug.context.persistedState;
1589 if(!persistedState){persistedState=Firebug.context.persistedState=FBL.defaultPersistedState
1611 Firebug.Module=extend(new Firebug.Listener(),{initialize:function(){},shutdown:function(){},initContext:function(context){},reattachContext:function(browser,context){},destroyContext:function(context,persistedState){},showContext:function(browser,context){},loadedContext:function(context){},showPanel:function(browser,panel){},showSidePanel:function(browser,panel){},updateOption:function(name,value){},getObjectByURL:function(context,url){}});
1612 Firebug.Panel={name:"HelloWorld",title:"Hello World!",parentPanel:null,options:{hasCommandLine:false,hasStatusBar:false,hasToolButtons:false,isPreRendered:false,innerHTMLSync:false},tabNode:null,panelNode:null,sidePanelNode:null,statusBarNode:null,toolButtonsNode:null,panelBarNode:null,sidePanelBarBoxNode:null,sidePanelBarNode:null,sidePanelBar:null,searchable:false,editable:true,order:2147483647,statusSeparator:"<",create:function(context,doc){this.hasSidePanel=parentPanelMap.hasOwnProperty(this.name);
1691 },watchWindow:function(win){},unwatchWindow:function(win){},updateOption:function(name,value){},showToolbarButtons:function(buttonsId,show){try{if(!this.context.browser){if(FBTrace.DBG_ERRORS){FBTrace.sysout("firebug.Panel showToolbarButtons this.context has no browser, this:",this)
1693 }var buttons=this.context.browser.chrome.$(buttonsId);
1696 if(!this.context.browser){FBTrace.dumpStack("firebug.Panel showToolbarButtons no browser")
1699 },select:function(object,forceUpdate){if(!object){object=this.getDefaultSelection(this.context)
1706 if(panelName!=this.name){this.context.invalidatePanels(panelName)
1707 }}}else{this.context.invalidatePanels.apply(this.context,this.dependents)
1776 },inspectObject:function(object,context){Firebug.chrome.select(object)
1777 },browseObject:function(object,context){},persistObject:function(object,context){},getRealObject:function(object,context){return object
1785 },getContextMenuItems:function(object,target,context){return[]
1793 FBL.ns(function(){with(FBL){FBL.Controller={controllers:null,controllerContext:null,initialize:function(context){this.controllers=[];
1794 this.controllerContext=context||Firebug.chrome
1852 }if(!panel.parentPanel){Firebug.context.persistedState.selectedPanelName=panelName
2112 },evaluate:function(expr,context,api,errorHandler){context=context||"window";
2114 if(context=="window"){if(isObjectLiteral){cmd=api?"with("+api+"){ ("+expr+") }":"("+expr+")"
2116 }}else{cmd=api?"(function(arguments){ with("+api+"){ "+expr+" } }).call("+context+",undefined)":"(function(arguments){ "+expr+" }).call("+context+",undefined)"
2284 var chrome={},context=options.context||Env.browser,type=chrome.type=Env.Options.enablePersistent?"popup":options.type,isChromeFrame=type=="frame",useLocalSkin=Env.useLocalSkin,url=useLocalSkin?Env.Location.skin:"about:blank",body=context.document.getElementsByTagName("body")[0],formatNode=function(node){if(!Env.isDebugMode){node.firebugIgnore=true
2300 }else{style.appendChild(context.document.createTextNode(rules))
2330 var options=["true,top=",popupTop,",left=",popupLeft,",height=",popupHeight,",width=",popupWidth,",resizable"].join(""),node=chrome.node=context.window.open(url,"popup",options);
2448 },initialize:function(){if(Env.bookmarkletOutdated){Firebug.Console.logFormatted(["A new bookmarklet version is available. Please visit http://getfirebug.com/firebuglite#Install and update it."],Firebug.context,"warn")
2492 setTimeout(function(){self.selectPanel(Firebug.context.persistedState.selectedPanelName);
2493 if(Firebug.context.persistedState.selectedPanelName=="Console"&&Firebug.CommandLine){Firebug.chrome.focusCommandLine()
2568 }var shouldOpen=forceOpen||!Firebug.context.persistedState.isOpen;
2581 }else{Firebug.context.persistedState.selectedPanelName=oldChrome.selectedPanel.name
2584 var commandLineHeight=Firebug.chrome.commandLineVisible?fbCommandLine.offsetHeight:0,y=Math.max(size.height,topHeight),heightValue=Math.max(y-topHeight-commandLineHeight,0),height=heightValue+"px",sideWidthValue=Firebug.chrome.sidePanelVisible?Firebug.context.persistedState.sidePanelWidth:0,width=Math.max(size.width-sideWidthValue,0)+"px";
2652 Firebug.context.persistedState.height=size.height;
2676 },open:function(){if(!Firebug.context.persistedState.isOpen){Firebug.context.persistedState.isOpen=true;
2690 }},close:function(){if(Firebug.context.persistedState.isOpen){if(this.isInitialized){this.shutdown()
2691 }Firebug.context.persistedState.isOpen=false;
2713 }if(fbVSplitterStyle){fbVSplitterStyle.right=Firebug.context.persistedState.sidePanelWidth+"px"
2740 node.style.height=Firebug.context.persistedState.height+"px";
2765 Firebug.context.persistedState.popupTop=top;
2766 Firebug.context.persistedState.popupLeft=left;
2767 Firebug.context.persistedState.popupWidth=size.width;
2768 Firebug.context.persistedState.popupHeight=size.height;
2787 Firebug.browser=Firebug.context=new Context(Env.browser);
2795 Firebug.Console.logFormatted(["Firebug could not capture console calls during "+persistDelay+"ms"],Firebug.context,"info");
2866 Firebug.context.persistedState.height=chromeHeight;
2888 Firebug.context.persistedState.sidePanelWidth=x;
2948 var isLocalResource=!resourceDomain||resourceDomain==Firebug.context.window.location.host;
2950 },loadJSONP:function(url,callback){var script=createGlobalElement("script"),doc=Firebug.context.document,uid=""+new Date().getTime(),callbackName="callback=Firebug.Lite.Proxy._callbacks."+uid,jsonpURL=url.indexOf("?")!=-1?url+"&"+callbackName:url+"?"+callbackName;
3144 var Sizzle=function(selector,context,results,seed){results=results||[];
3145 var origContext=context=context||document;
3146 if(context.nodeType!==1&&context.nodeType!==9){return[]
3148 }var parts=[],m,set,checkSet,check,mode,extra,prune=true,contextXML=isXML(context),soFar=selector;
3153 }}if(parts.length>1&&origPOS.exec(selector)){if(parts.length===2&&Expr.relative[parts[0]]){set=posProcess(parts[0]+parts[1],context)
3154 }else{set=Expr.relative[parts[0]]?[context]:Sizzle(parts.shift(),context);
3158 }}}else{if(!seed&&parts.length>1&&context.nodeType===9&&!contextXML&&Expr.match.ID.test(parts[0])&&!Expr.match.ID.test(parts[parts.length-1])){var ret=Sizzle.find(parts.shift(),context,contextXML);
3159 context=ret.expr?Sizzle.filter(ret.expr,ret.set)[0]:ret.set[0]
3160 }if(context){var ret=seed?{expr:parts.pop(),set:makeArray(seed)}:Sizzle.find(parts.pop(),parts.length===1&&(parts[0]==="~"||parts[0]==="+")&&context.parentNode?context.parentNode:context,contextXML);
3167 }if(pop==null){pop=context
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]))){results.push(set[i])
3193 Sizzle.find=function(expr,context,isXML){var set,match;
3201 set=Expr.find[type](match,context,isXML);
3204 }}}}if(!set){set=context.getElementsByTagName("*")
3258 }},find:{ID:function(match,context,isXML){if(typeof context.getElementById!=="undefined"&&!isXML){var m=context.getElementById(match[1]);
3260 }},NAME:function(match,context,isXML){if(typeof context.getElementsByName!=="undefined"){var ret=[],results=context.getElementsByName(match[1]);
3265 }},TAG:function(match,context){return context.getElementsByTagName(match[1])
3401 if(!!document.getElementById(id)){Expr.find.ID=function(match,context,isXML){if(typeof context.getElementById!=="undefined"&&!isXML){var m=context.getElementById(match[1]);
3412 if(div.getElementsByTagName("*").length>0){Expr.find.TAG=function(match,context){var results=context.getElementsByTagName(match[1]);
3428 }Sizzle=function(query,context,extra,seed){context=context||document;
3429 if(!seed&&context.nodeType===9&&!isXML(context)){try{return makeArray(context.querySelectorAll(query),extra)
3430 }catch(e){}}return oldSizzle(query,context,extra,seed)
3441 Expr.find.CLASS=function(match,context,isXML){if(typeof context.getElementsByClassName!=="undefined"&&!isXML){return context.getElementsByClassName(match[1])
3484 var posProcess=function(selector,context){var tmpSet=[],later="",match,root=context.nodeType?[context]:context;
3609 var offsetHeight=Firebug.chrome.type=="frame"?Firebug.context.persistedState.height:0;
3728 FBL.domplate.context=function(context,fn){var lastContext=domplate.lastContext;
3729 domplate.topContext=context;
3730 fn.apply(context);
3740 }this.context=oldTag?oldTag.context:null;
3751 if(domplate.topContext){this.context=domplate.topContext
3781 }if(this.context){fnBlock.push("with (__context__) {")
3785 }if(this.context){fnBlock.push("}")
3790 var markupArgs=[code,tag.tag.context,args,tagOutputs];
3870 var fnBlock=["r=(function (root, context, o"];
3885 }if(this.context){fnBlock.push("with (context) {")
3888 }if(this.context){fnBlock.push("}")
3895 var domArgs=[node,tag.tag.context,0];
4099 var markupArgs=[code,this.tag.context,args,outputs];
4121 }}var domArgs=[firstRow,this.tag.context,offset];
4139 }}var domArgs=[root,this.tag.context,0];
4154 }var domArgs=[root,this.tag.context,0];
4167 var domArgs=[root,this.tag.context,0];
4205 },inspectObject:function(fn,context){var sourceLink=findSourceForFunction(fn,context);
4208 }},getTooltip:function(fn,context){var script=findScriptForFunctionInContext(context,fn);
4211 }}},getTitle:function(fn,context){var name=fn.name?fn.name:"function";
4213 },getContextMenuItems:function(fn,target,context,script){if(!script){script=findScriptForFunctionInContext(context,fn)
4215 }var scriptInfo=getSourceFileAndLineByScript(context,script);
4217 var name=script?getFunctionName(script,context):fn.name;
4301 },getTitle:function(object,context){return"["+object.length+"]"
4304 },getRealObject:function(prop,context){return prop.object[prop.name]
4305 },getTitle:function(prop,context){return prop.name
4308 },browseObject:function(file,context){openNewTab(file.href);
4310 },getRealObject:function(file,context){return null
4363 },persistor:function(context,xpath){var elts=xpath?getElementsByXPath(context.window.document,xpath):null;
4366 },browseObject:function(elt,context){var tag=elt.nodeName.toLowerCase();
4372 },persistObject:function(elt,context){var xpath=getElementXPath(elt);
4374 },getTitle:function(element,context){return getElementCSSSelector(element)
4376 },getContextMenuItems:function(elt,target,context){var monitored=areEventsMonitored(elt,null,context);
4377 return[{label:"CopyHTML",command:bindFixed(this.copyHTML,this,elt)},{label:"CopyInnerHTML",command:bindFixed(this.copyInnerHTML,this,elt)},{label:"CopyXPath",command:bindFixed(this.copyXPath,this,elt)},"-",{label:"ShowEventsInConsole",type:"checkbox",checked:monitored,command:bindFixed(toggleMonitorEvents,FBL,elt,null,monitored,context)},"-",{label:"ScrollIntoView",command:bindFixed(elt.scrollIntoView,elt)}]
4383 },browseObject:function(doc,context){openNewTab(doc.location.href);
4385 },persistObject:function(doc,context){return this.persistor
4386 },persistor:function(context){return context.window.document
4387 },getTitle:function(win,context){return"document"
4394 },browseObject:function(styleSheet,context){openNewTab(styleSheet.href);
4396 },persistObject:function(styleSheet,context){return bind(this.persistor,top,styleSheet.href)
4398 },getContextMenuItems:function(styleSheet,target,context){return[{label:"CopyLocation",command:bindFixed(this.copyURL,this,styleSheet)},"-",{label:"OpenInTab",command:bindFixed(this.openInTab,this,styleSheet)}]
4399 },persistor:function(context,href){return getStyleSheetByHref(href,context)
4404 },browseObject:function(win,context){openNewTab(win.location.href);
4406 },persistObject:function(win,context){return this.persistor
4407 },persistor:function(context){return context.window
4408 },getTitle:function(win,context){return"window"
4418 },getTitle:function(event,context){return"Event "+event.type
4431 },inspectObject:function(sourceLink,context){if(sourceLink.type=="js"){var scriptFile=getSourceFileByHref(sourceLink.href,context);
4435 }var stylesheet=getStyleSheetByHref(sourceLink.href,context);
4439 }var panel=context.getPanel("stylesheet");
4442 },browseObject:function(sourceLink,context){openNewTab(sourceLink.href);
4444 },getContextMenuItems:function(sourceLink,target,context){return[{label:"CopyLocation",command:bindFixed(this.copyLink,this,sourceLink)},"-",{label:"OpenInTab",command:bindFixed(this.openInTab,this,sourceLink)}]
4446 this.SourceFile=domplate(this.SourceLink,{tag:OBJECTLINK({$collapsed:"$object|hideSourceLink"},"$object|getSourceLinkTitle"),persistor:function(context,href){return getSourceFileByHref(href,context)
4449 },browseObject:function(sourceLink,context){},getTooltip:function(sourceFile){return sourceFile.href
4468 },inspectObject:function(stackFrame,context){var sourceLink=new SourceLink(stackFrame.href,stackFrame.lineNo,"js");
4470 },getTooltip:function(stackFrame,context){return $STRF("Line",[stackFrame.href,stackFrame.lineNo])
4475 },getTitle:function(frame,context){if(!frame.isValid){return"(invalid frame)"
4476 }return getFunctionName(frame.script,context)
4477 },getTooltip:function(frame,context){if(!frame.isValid){return"(invalid frame)"
4478 }var sourceInfo=FBL.getSourceFileAndLineByScript(context,frame.script,frame);
4481 }},getContextMenuItems:function(frame,target,context){var fn=frame.script.functionObject.getWrappedValue();
4482 return FirebugReps.Func.getContextMenuItems(fn,target,context,frame.script)
4505 this.inspectObject(target.repObject,panel.context)
4518 },inspectObject:function(error,context){var sourceLink=this.getSourceLink(error);
4519 FirebugReps.SourceLink.inspectObject(sourceLink,context)
4520 },getContextMenuItems:function(error,target,context){var breakOnThisError=this.hasErrorBreak(error);
4525 this.Assert=domplate(Firebug.Rep,{tag:DIV(DIV({"class":"errorTitle"}),DIV({"class":"assertDescription"})),className:"assert",inspectObject:function(error,context){var sourceLink=this.getSourceLink(error);
4527 },getContextMenuItems:function(error,target,context){var breakOnThisError=this.hasErrorBreak(error);
4598 }this.attachListeners(currentEditor,panel.context)
4603 this.detachListeners(currentEditor,currentPanel.context);
4629 }else{var context=currentPanel.context;
4630 this.saveTimeout=context.setTimeout(bindFixed(this.save,this),saveTimeout);
4669 }}},attachListeners:function(editor,context){var win=isIE?currentTarget.ownerDocument.parentWindow:currentTarget.ownerDocument.defaultView;
4679 }}}},detachListeners:function(editor,context){if(!this.listeners){return
4694 },showContext:function(browser,context){this.stopEditing()
4780 },completeValue:function(amt){var selectRangeCallback=this.getAutoCompleter().complete(currentPanel.context,this.input,true,amt<0);
4815 }else{if(this.completeAsYouType){selectRangeCallback=this.getAutoCompleter().complete(currentPanel.context,this.input,false)
4884 this.complete=function(context,textBox,cycle,reverse){var value=textBox.value;
4890 var parseStart=getExprOffset?getExprOffset(value,offset,context):0;
4893 var range=getRange?getRange(parsed,offset-parseStart,context):null;
4911 }}var values=evaluator(preExpr,expr,postExpr,context);
5129 Firebug.NetMonitor=extend(Firebug.ActivableModule,{dispatchName:"netMonitor",clear:function(context){var panel=context.getPanel(panelName,true);
5183 var context=Firebug.chrome;
5184 this.updateInfo(netInfoBox,file,context)
5185 },updateInfo:function(netInfoBox,file,context){if(FBTrace.DBG_NET){FBTrace.sysout("net.updateInfo; file",file)
5198 NetInfoPostData.render(context,postText,file)
5201 NetInfoPostData.render(context,putText,file)
5208 }else{this.setResponseText(file,netInfoBox,responseTextBox,context)
5213 var text=Utils.getResponseText(file,context);
5219 }}}}}}}dispatch(NetInfoBody.fbListeners,"updateTabBody",[netInfoBox,file,context])
5220 },setResponseText:function(file,netInfoBox,responseTextBox,context){netInfoBox.responsePresented=true;
5224 var text=Utils.getResponseText(file,context);
5230 }if(limitReached){var object={text:$STR("net.responseSizeLimitMessage"),onClickLink:function(){var panel=context.getPanel("net",true);
5281 },render:function(context,parentNode,file){var spy=getAncestorByClass(parentNode,"spyHead");
5288 if(Firebug.JSONViewerModel.isJSON(contentType,data)){this.insertJSON(parentNode,jsonData,context)
5300 },insertJSON:function(parentNode,file,context){var text=file.responseText;
5307 },insertXML:function(parentNode,file,context){var text=Utils.getPostText(file,context);
5315 },parseMultiPartText:function(file,context){var text=Utils.getPostText(file,context);
5365 }},getPostText:function(file,context,noLimit){if(!file.postText){file.postText=readPostTextFromRequest(file.request,context);
5366 if(!file.postText&&context){file.postText=readPostTextFromPage(file.href,context)
5371 },getResponseText:function(file,context){return(typeof(file.responseText)!="undefined")?file.responseText:context.sourceCache.loadText(file.href,file.method,file)
5372 },isURLEncodedRequest:function(file,context){var text=Utils.getPostText(file,context);
5377 },isMultiPartRequest:function(file,context){var text=Utils.getPostText(file,context);
5425 }},initContext:function(context){context.spies=[];
5426 if(Firebug.showXMLHttpRequests&&Firebug.Console.isAlwaysEnabled()){this.attachObserver(context,context.window)
5427 }if(FBTrace.DBG_SPY){FBTrace.sysout("spy.initContext "+contexts.length+" ",context.getName())
5428 }},destroyContext:function(context){this.detachObserver(context,null);
5429 if(FBTrace.DBG_SPY&&context.spies.length){FBTrace.sysout("spy.destroyContext; ERROR There are leaking Spies ("+context.spies.length+") "+context.getName())
5430 }delete context.spies;
5431 if(FBTrace.DBG_SPY){FBTrace.sysout("spy.destroyContext "+contexts.length+" ",context.getName())
5432 }},watchWindow:function(context,win){if(Firebug.showXMLHttpRequests&&Firebug.Console.isAlwaysEnabled()){this.attachObserver(context,win)
5433 }},unwatchWindow:function(context,win){try{this.detachObserver(context,win)
5438 ++i){var context=TabWatcher.contexts[i];
5439 iterateWindows(context.window,function(win){tach.apply(this,[context,win])
5444 }},attachObserver:function(context,win){if(Firebug.Spy.skipSpy(win)){return
5447 ++i){if((contexts[i].context==context)&&(contexts[i].win==win)){return
5450 }contexts.push({context:context,win:win});
5451 if(FBTrace.DBG_SPY){FBTrace.sysout("spy.attachObserver (HTTP) "+contexts.length+" ",context.getName())
5452 }},detachObserver:function(context,win){for(var i=0;
5454 ++i){if(contexts[i].context==context){if(win&&(contexts[i].win!=win)){continue
5458 }if(FBTrace.DBG_SPY){FBTrace.sysout("spy.detachObserver (HTTP) "+contexts.length+" ",context.getName())
5488 },browseObject:function(spy,context){var url=spy.getURL();
5491 },getRealObject:function(spy,context){return spy.xhrRequest
5517 }else{template.updateInfo(netInfoBox,spy,spy.context)
5547 },updateTabBody:function(infoBox,file,context){var tab=infoBox.selectedTab;
5570 },updateTabBody:function(infoBox,file,context){var tab=infoBox.selectedTab;
5574 this.insertXML(tabBody,Firebug.NetMonitor.Utils.getResponseText(file,context))
5599 Firebug.ConsoleBase={log:function(object,context,className,rep,noThrottle,sourceLink){return this.logRow(appendObject,object,context,className,rep,sourceLink,noThrottle)
5600 },logFormatted:function(objects,context,className,noThrottle,sourceLink){return this.logRow(appendFormatted,objects,context,className,null,sourceLink,noThrottle)
5601 },openGroup:function(objects,context,className,rep,noThrottle,sourceLink,noPush){return this.logRow(appendOpenGroup,objects,context,className,rep,sourceLink,noThrottle)
5602 },closeGroup:function(context,noThrottle){return this.logRow(appendCloseGroup,null,context,null,null,null,noThrottle,true)
5603 },logRow:function(appender,objects,context,className,rep,sourceLink,noThrottle,noRow){noThrottle=true;
5604 if(!context){context=FirebugContext
5605 }if(FBTrace.DBG_ERRORS&&!context){FBTrace.sysout("Console.logRow has no context, skipping objects",objects)
5606 }if(!context){return
5607 }if(noThrottle||!context){var panel=this.getPanel(context);
5611 }else{consoleQueue.push([appender,objects,context,className,rep,sourceLink,noThrottle,noRow])
5612 }}else{if(!context.throttle){return
5613 }var args=[appender,objects,context,className,rep,sourceLink,true,noRow];
5614 context.throttle(this.logRow,this,args)
5615 }},appendFormatted:function(args,row,context){if(!context){context=FirebugContext
5616 }var panel=this.getPanel(context);
5618 },clear:function(context){if(!context){context=Firebug.context
5619 }var panel=this.getPanel(context,true);
5621 }},getPanel:function(context,noCreate){return Firebug.chrome?Firebug.chrome.getPanel("Console"):null
5631 }},showPanel:function(browser,panel){},getFirebugConsoleElement:function(context,win){var element=win.document.getElementById("_firebugConsole");
5634 if(context.stopped){Firebug.Console.injector.evaluateConsoleScript(context)
5635 }else{var r=Firebug.CommandLine.evaluateInWebPage(elementForcer,context,win)
5639 }Firebug.Console.logFormatted(["Firebug cannot find _firebugConsole element",r,win],context,"error",true)
5641 },isReadyElsePreparing:function(context,win){if(FBTrace.DBG_CONSOLE){FBTrace.sysout("console.isReadyElsePreparing, win is "+(win?"an argument: ":"null, context.window: ")+(win?win.location:context.window.location),(win?win:context.window))
5642 }if(win){return this.injector.attachIfNeeded(context,win)
5645 i<context.windows.length;
5646 i++){attached=attached&&this.injector.attachIfNeeded(context,context.windows[i])
5647 }if(context.windows.indexOf(context.window)==-1){FBTrace.sysout("isReadyElsePreparing ***************** context.window not in context.windows")
5648 }if(FBTrace.DBG_CONSOLE){FBTrace.sysout("console.isReadyElsePreparing attached to "+context.windows.length+" and returns "+attached)
5653 }},initContext:function(context,persistedState){Firebug.ActivableModule.initContext.apply(this,arguments);
5654 context.consoleReloadWarning=true
5655 },loadedContext:function(context){for(var url in context.sourceFileMap){return
5656 }this.clearReloadWarning(context)
5657 },clearReloadWarning:function(context){if(context.consoleReloadWarning){var panel=context.getPanel(this.panelName);
5659 delete context.consoleReloadWarning
5660 }},togglePersist:function(context){var panel=context.getPanel(this.panelName);
5663 },showContext:function(browser,context){Firebug.chrome.setGlobalAttribute("cmd_clearConsole","disabled",!context);
5665 },destroyContext:function(context,persistedState){Firebug.Console.injector.detachConsole(context,context.window)
5683 },onMonitorScript:function(context,frame){Firebug.Console.log(frame,context)
5684 },onFunctionCall:function(context,frame,depth,calling){if(calling){Firebug.Console.openGroup([frame,"depth:"+depth],context)
5685 }else{Firebug.Console.closeGroup(context)
5686 }},logRow:function(appender,objects,context,className,rep,sourceLink,noThrottle,noRow){if(!context){context=FirebugContext
5687 }if(FBTrace.DBG_WINDOWS&&!context){FBTrace.sysout("Console.logRow: no context \n")
5690 Firebug.ConsoleListener={log:function(context,object,className,sourceLink){},logFormatted:function(context,objects,className,sourceLink){}};
5703 this.insertLogLimit(this.context)
5785 this.context=Firebug.browser.window;
5791 if(!this.persistedContent&&Firebug.Console.isAlwaysEnabled()){this.insertLogLimit(this.context);
5793 if(this.context.consoleReloadWarning){this.insertReloadWarning()
5808 },ishow:function(state){if(FBTrace.DBG_CONSOLE){FBTrace.sysout("Console.panel show; "+this.context.getName(),state)
5817 }if(FBTrace.DBG_CONSOLE){FBTrace.sysout("console.show ------------------ wasScrolledToBottom: "+this.wasScrolledToBottom+", "+this.context.getName())
5820 }},ihide:function(state){if(FBTrace.DBG_CONSOLE){FBTrace.sysout("Console.panel hide; "+this.context.getName(),state)
5823 if(FBTrace.DBG_CONSOLE){FBTrace.sysout("console.hide ------------------ wasScrolledToBottom: "+this.wasScrolledToBottom+", "+this.context.getName())
5826 }if(FBTrace.DBG_CONSOLE){FBTrace.sysout("console.destroy ------------------ wasScrolledToBottom: "+this.wasScrolledToBottom+", "+this.context.getName())
5829 },enablePanel:function(module){if(FBTrace.DBG_CONSOLE){FBTrace.sysout("console.ConsolePanel.enablePanel; "+this.context.getName())
5833 }},disablePanel:function(module){if(FBTrace.DBG_CONSOLE){FBTrace.sysout("console.ConsolePanel.disablePanel; "+this.context.getName())
5893 if(FBTrace.DBG_CONSOLE){FBTrace.sysout("console.onScroll ------------------ wasScrolledToBottom: "+this.wasScrolledToBottom+", wasScrolledToBottom: "+this.context.getName(),event)
5894 }},onResize:function(event){if(FBTrace.DBG_CONSOLE){FBTrace.sysout("console.onResize ------------------ wasScrolledToBottom: "+this.wasScrolledToBottom+", offsetHeight: "+this.panelNode.offsetHeight+", scrollTop: "+this.panelNode.scrollTop+", scrollHeight: "+this.panelNode.scrollHeight+", "+this.context.getName(),event)
5927 Firebug.Console.injector={install:function(context){var win=context.window;
5928 var consoleHandler=new FirebugConsoleHandler(context,win);
5948 },isAttached:function(context,win){if(win.wrappedJSObject){var attached=(win.wrappedJSObject._getFirebugConsoleElement?true:false);
5953 }},attachIfNeeded:function(context,win){if(FBTrace.DBG_CONSOLE){FBTrace.sysout("Console.attachIfNeeded has win "+(win?((win.wrappedJSObject?"YES":"NO")+" wrappedJSObject"):"null"))
5954 }if(this.isAttached(context,win)){return true
5956 }this.attachConsoleInjector(context,win);
5957 this.addConsoleListener(context,win);
5958 Firebug.Console.clearReloadWarning(context);
5959 var attached=this.isAttached(context,win);
5960 if(attached){dispatch(Firebug.Console.fbListeners,"onConsoleInjected",[context,win])
5962 },attachConsoleInjector:function(context,win){var consoleInjection=this.getConsoleInjectionScript();
5964 }Firebug.CommandLine.evaluateInWebPage(consoleInjection,context,win);
5977 },forceConsoleCompilationInPage:function(context,win){if(!win){if(FBTrace.DBG_CONSOLE){FBTrace.sysout("no win in forceConsoleCompilationInPage!")
5980 if(context.stopped){Firebug.Console.injector.evaluateConsoleScript(context)
5981 }else{Firebug.CommandLine.evaluateInWebPage(consoleForcer,context,win)
5983 }},evaluateConsoleScript:function(context){var scriptSource=this.getConsoleInjectionScript();
5984 Firebug.Debugger.evaluate(scriptSource,context)
5985 },addConsoleListener:function(context,win){if(!context.activeConsoleHandlers){context.activeConsoleHandlers=[]
5987 i<context.activeConsoleHandlers.length;
5988 i++){if(context.activeConsoleHandlers[i].window==win){context.activeConsoleHandlers[i].detach();
5989 if(FBTrace.DBG_CONSOLE){FBTrace.sysout("consoleInjector addConsoleListener removed handler("+context.activeConsoleHandlers[i].handler_name+") from _firebugConsole in : "+win.location+"\n")
5990 }context.activeConsoleHandlers.splice(i,1)
5991 }}}var element=Firebug.Console.getFirebugConsoleElement(context,win);
5994 }var handler=new FirebugConsoleHandler(context,win);
5996 context.activeConsoleHandlers.push(handler);
5999 },detachConsole:function(context,win){if(win&&win.document){var element=win.document.getElementById("_firebugConsole");
6003 var FirebugConsoleHandler=function FirebugConsoleHandler(context,win){this.window=win;
6038 this.dir=function(o){Firebug.Console.log(o,context,"dir",Firebug.DOMPanel.DirTable)
6042 }}Firebug.Console.log(o,context,"dirxml",Firebug.HTMLPanel.SoloElement)
6047 this.groupEnd=function(){Firebug.Console.closeGroup(context)
6122 }}}}}}Firebug.Console.log({frames:frames},context,"stackTrace",FirebugReps.StackTrace);
6144 }Firebug.Console.log({frames:frames},context,"stackTrace",FirebugReps.StackTrace)
6146 this.clear=function(){Firebug.Console.clear(context)
6165 this.evaluated=function(result,context){if(FBTrace.DBG_CONSOLE){FBTrace.sysout("consoleInjector.FirebugConsoleHandler evalutated default called",result)
6166 }Firebug.Console.log(result,context)
6168 this.evaluateError=function(result,context){Firebug.Console.log(result,context,"errorMessage")
6171 return Firebug.Console.logFormatted(args,context,className,noThrottle,sourceLink)
6172 }function logAssert(category,args){Firebug.Errors.increaseCount(context);
6182 }}}var errorObject=new FBL.ErrorMessage(msg,(msg.fileName?msg.fileName:win.location),(msg.lineNumber?msg.lineNumber:0),"",category,context,trace);
6190 }}var row=Firebug.Console.log(objects,context,"errorMessage",null,true);
6201 }function getJSDUserStack(){var trace=FBL.getCurrentStackTrace(context);
6233 var _stack=function(command){Firebug.context.persistedState.commandHistory.push(command);
6234 Firebug.context.persistedState.commandPointer=Firebug.context.persistedState.commandHistory.length
6247 Firebug.context.persistedState.commandHistory=Firebug.context.persistedState.commandHistory||[];
6248 Firebug.context.persistedState.commandPointer=Firebug.context.persistedState.commandPointer||-1;
6287 var result=Firebug.context.evaluate(expr,"window",api,Firebug.Console.error);
6295 },prevCommand:function(){if(Firebug.context.persistedState.commandPointer>0&&Firebug.context.persistedState.commandHistory.length>0){this.element.value=Firebug.context.persistedState.commandHistory[--Firebug.context.persistedState.commandPointer]
6297 var limit=Firebug.context.persistedState.commandHistory.length-1;
6298 var i=Firebug.context.persistedState.commandPointer;
6299 if(i<limit){element.value=Firebug.context.persistedState.commandHistory[++Firebug.context.persistedState.commandPointer]
6300 }else{if(i==limit){++Firebug.context.persistedState.commandPointer;
6375 },$$:function(selector,context){context=context||Firebug.browser.document;
6376 return Firebug.Selector?Firebug.Selector(selector,context):Firebug.Console.error("Firebug.Selector module not loaded.")
6377 },$0:null,$1:null,dir:function(o){Firebug.Console.log(o,Firebug.context,"dir",Firebug.DOMPanel.DirTable)
6380 }}Firebug.Console.log(o,Firebug.context,"dirxml",Firebug.HTMLPanel.SoloElement)
6490 if(!selectedElement){Firebug.context.persistedState.selectedHTMLElementId=Firebug.context.persistedState.selectedHTMLElementId&&ElementCache.get(Firebug.context.persistedState.selectedHTMLElementId)?Firebug.context.persistedState.selectedHTMLElementId:ElementCache(Firebug.browser.document.body);
6491 Firebug.HTML.selectTreeNode(Firebug.context.persistedState.selectedHTMLElementId)
6501 },reattach:function(){if(Firebug.context.persistedState.selectedHTMLElementId){Firebug.HTML.selectTreeNode(Firebug.context.persistedState.selectedHTMLElementId)
6518 Firebug.context.persistedState.selectedHTMLElementId=e.id;
7121 var css=getStyleSheetCSS(styleSheet,this.context);
7125 }else{return this.context.window.location.href
7135 setClassTimed(ruleElement,"jumpHighlight",this.context)
7136 }},getStyleSheetRules:function(context,styleSheet){var isSystemSheet=isSystemStyleSheet(styleSheet);
7140 if(instanceOf(rule,"CSSStyleRule")){var props=this.getRuleProperties(context,rule);
7165 },getRuleProperties:function(context,rule,inheritMode){var props=this.parseCSSProps(rule.style,inheritMode);
7168 this.addOldProperties(context,ruleId,inheritMode,props);
7171 },addOldProperties:function(context,ruleId,inheritMode,props){if(context.selectorMap&&context.selectorMap.hasOwnProperty(ruleId)){var moreProps=context.selectorMap[ruleId];
7212 if(this.context.selectorMap&&this.context.selectorMap.hasOwnProperty(ruleId)){var map=this.context.selectorMap[ruleId];
7223 if(!this.context.selectorMap){this.context.selectorMap={}
7225 if(!(this.context.selectorMap.hasOwnProperty(ruleId))){this.context.selectorMap[ruleId]=[]
7226 }var map=this.context.selectorMap[ruleId];
7268 this.context=Firebug.chrome;
7285 if(this.context.loaded&&!this.location){restoreObjects(this,state);
7300 }var rules=this.getStyleSheetRules(this.context,styleSheet);
7310 var sourceFile=getSourceFileByHref(sourceLink.href,this.context);
7314 if(lineNo){this.scrollToLine(lineNo,this.jumpHighlightFactory(lineNo,this.context))
7315 }}else{var stylesheet=getStyleSheetByHref(sourceLink.href,this.context);
7320 }},getLocationList:function(){var styleSheets=getAllStyleSheets(this.context);
7366 }},getDefaultLocation:function(){try{var styleSheets=this.context.window.document.styleSheets;
7434 }var props=this.getRuleProperties(this.context,rule,inheritMode);
7456 this.addOldProperties(this.context,getElementXPath(element),inheritMode,props);
7460 }},name:"css",title:"Style",parentPanel:"HTML",order:0,initialize:function(){this.context=Firebug.chrome;
7463 var selection=ElementCache.get(Firebug.context.persistedState.selectedHTMLElementId);
7490 if(newState!=this.contentState){this.context.invalidatePanels(this.name)
7653 }function getStyleSheetCSS(sheet,context){if(sheet.ownerNode instanceof HTMLStyleElement){return sheet.ownerNode.innerHTML
7654 }else{return context.sourceCache.load(sheet.href).join("")
7846 ++i){this.context.clearTimeout(this.timeouts[i])
7861 while(members.length){with({slice:members.splice(0,insertSliceSize),isLast:!members.length}){timeouts.push(this.context.setTimeout(function(){if(!tbody.lastChild){return
7866 }}if(offscreen){timeouts.push(this.context.setTimeout(function(){if(panelNode.firstChild){panelNode.replaceChild(table,panelNode.firstChild)
7870 }else{timeouts.push(this.context.setTimeout(function(){panelNode.scrollTop=scrollTop==undefined?0:scrollTop
7887 if(object instanceof jsdIStackFrame){return Firebug.Debugger.evaluate(propName,this.context)
7895 }},create:function(){this.context=Firebug.browser;
7907 },ishow:function(state){if(this.context.loaded&&!this.selection){if(!state){this.select(null);
7911 }var defaultObject=this.getDefaultSelection(this.context);
7913 if(state.firstSelection){var restored=state.firstSelection(this.context);
8147 var selection=ElementCache.get(Firebug.context.persistedState.selectedHTMLElementId);