Lines Matching defs:file

5  * COPYING  file in the root directory of this source tree.
37 this.reFile=/file:\/\/([^\/]*)\//;
123 file=reFirebugFile.exec(scriptSrc);
129 i++){var file=null;
130 if(si.nodeName.toLowerCase()=="script"){if(file=reFirebugFile.exec(si.getAttribute("firebugSrc"))){scriptSrc=si.getAttribute("firebugSrc");
132 }else{if(file=reFirebugFile.exec(si.src)){scriptSrc=si.src
137 }if(file){var fileName=file[1];
138 var fileOptions=file[2];
1086 this.isLocalURL=function(url){if(url.substr(0,5)=="file:"){return true
1092 this.getLocalPath=function(url){if(this.isLocalURL(url)){var fileHandler=ioService.getProtocolHandler("file").QueryInterface(Ci.nsIFileProtocolHandler);
1093 var file=fileHandler.getFileFromURLSpec(url);
1094 return file.path
1096 this.getURLFromLocalFile=function(file){var fileHandler=ioService.getProtocolHandler("file").QueryInterface(Ci.nsIFileProtocolHandler);
1097 var URL=fileHandler.getURLSpecFromFile(file);
1132 url=url.replace(/file:\/([^\/])/g,"file:///$1");
1137 this.denormalizeURL=function(url){return url.replace(/file:\/\/\//g,"file:/")
1187 this.reEncodeURL=function(file,text){var lines=text.split("\n");
1193 }var url=file.href;
3306 },file:function(elem){return"file"===elem.type
4308 },browseObject:function(file,context){openNewTab(file.href);
4310 },getRealObject:function(file,context){return null
5145 Firebug.NetMonitor.NetInfoBody=domplate(Firebug.Rep,new Firebug.Listener(),{tag:DIV({"class":"netInfoBody",_repObject:"$file"},TAG("$infoTabs",{file:"$file"}),TAG("$infoBodies",{file:"$file"})),infoTabs:DIV({"class":"netInfoTabs focusRow subFocusRow",role:"tablist"},A({"class":"netInfoParamsTab netInfoTab a11yFocus",onclick:"$onClickTab",role:"tab",view:"Params",$collapsed:"$file|hideParams"},$STR("URLParameters")),A({"class":"netInfoHeadersTab netInfoTab a11yFocus",onclick:"$onClickTab",role:"tab",view:"Headers"},$STR("Headers")),A({"class":"netInfoPostTab netInfoTab a11yFocus",onclick:"$onClickTab",role:"tab",view:"Post",$collapsed:"$file|hidePost"},$STR("Post")),A({"class":"netInfoPutTab netInfoTab a11yFocus",onclick:"$onClickTab",role:"tab",view:"Put",$collapsed:"$file|hidePut"},$STR("Put")),A({"class":"netInfoResponseTab netInfoTab a11yFocus",onclick:"$onClickTab",role:"tab",view:"Response",$collapsed:"$file|hideResponse"},$STR("Response")),A({"class":"netInfoCacheTab netInfoTab a11yFocus",onclick:"$onClickTab",role:"tab",view:"Cache",$collapsed:"$file|hideCache"},$STR("Cache")),A({"class":"netInfoHtmlTab netInfoTab a11yFocus",onclick:"$onClickTab",role:"tab",view:"Html",$collapsed:"$file|hideHtml"},$STR("HTML"))),infoBodies:DIV({"class":"netInfoBodies outerFocusRow"},TABLE({"class":"netInfoParamsText netInfoText netInfoParamsTable",role:"tabpanel",cellpadding:0,cellspacing:0},TBODY()),DIV({"class":"netInfoHeadersText netInfoText",role:"tabpanel"}),DIV({"class":"netInfoPostText netInfoText",role:"tabpanel"}),DIV({"class":"netInfoPutText netInfoText",role:"tabpanel"}),PRE({"class":"netInfoResponseText netInfoText",role:"tabpanel"}),DIV({"class":"netInfoCacheText netInfoText",role:"tabpanel"},TABLE({"class":"netInfoCacheTable",cellpadding:0,cellspacing:0,role:"presentation"},TBODY({role:"list","aria-label":$STR("Cache")}))),DIV({"class":"netInfoHtmlText netInfoText",role:"tabpanel"},IFRAME({"class":"netInfoHtmlPreview",role:"document"}))),headerDataTag:FOR("param","$headers",TR({role:"listitem"},TD({"class":"netInfoParamName",role:"presentation"},TAG("$param|getNameTag",{param:"$param"})),TD({"class":"netInfoParamValue",role:"list","aria-label":"$param.name"},FOR("line","$param|getParamValueIterator",CODE({"class":"focusRow subFocusRow",role:"listitem"},"$line"))))),customTab:A({"class":"netInfo$tabId\\Tab netInfoTab",onclick:"$onClickTab",view:"$tabId",role:"tab"},"$tabTitle"),customBody:DIV({"class":"netInfo$tabId\\Text netInfoText",role:"tabpanel"}),nameTag:SPAN("$param|getParamName"),nameWithTooltipTag:SPAN({title:"$param.name"},"$param|getParamName"),getNameTag:function(param){return(this.getParamName(param)==param.name)?this.nameTag:this.nameWithTooltipTag
5154 },hideParams:function(file){return !file.urlParams||!file.urlParams.length
5155 },hidePost:function(file){return file.method.toUpperCase()!="POST"
5156 },hidePut:function(file){return file.method.toUpperCase()!="PUT"
5157 },hideResponse:function(file){return false
5158 },hideCache:function(file){return true;
5159 return !file.cacheEntry
5160 },hideHtml:function(file){return(file.mimeType!="text/html")&&(file.mimeType!="application/xhtml+xml")
5182 var file=Firebug.getRepObject(netInfoBox);
5184 this.updateInfo(netInfoBox,file,context)
5185 },updateInfo:function(netInfoBox,file,context){if(FBTrace.DBG_NET){FBTrace.sysout("net.updateInfo; file",file)
5186 }if(!netInfoBox){if(FBTrace.DBG_NET||FBTrace.DBG_ERRORS){FBTrace.sysout("net.updateInfo; ERROR netInfo == null "+file.href,file)
5189 if(hasClass(tab,"netInfoParamsTab")){if(file.urlParams&&!netInfoBox.urlParamsPresented){netInfoBox.urlParamsPresented=true;
5190 this.insertHeaderRows(netInfoBox,file.urlParams,"Params")
5192 if(file.responseHeaders&&!netInfoBox.responseHeadersPresented){netInfoBox.responseHeadersPresented=true;
5193 NetInfoHeaders.renderHeaders(headersText,file.responseHeaders,"ResponseHeaders")
5194 }if(file.requestHeaders&&!netInfoBox.requestHeadersPresented){netInfoBox.requestHeadersPresented=true;
5195 NetInfoHeaders.renderHeaders(headersText,file.requestHeaders,"RequestHeaders")
5198 NetInfoPostData.render(context,postText,file)
5201 NetInfoPostData.render(context,putText,file)
5202 }}else{if(hasClass(tab,"netInfoResponseTab")&&file.loaded&&!netInfoBox.responsePresented){var responseTextBox=$$(".netInfoResponseText",netInfoBox)[0];
5203 if(file.category=="image"){netInfoBox.responsePresented=true;
5205 responseImage.src=file.href;
5208 }else{this.setResponseText(file,netInfoBox,responseTextBox,context)
5209 }}else{if(hasClass(tab,"netInfoCacheTab")&&file.loaded&&!netInfoBox.cachePresented){var responseTextBox=netInfoBox.getElementsByClassName("netInfoCacheText").item(0);
5210 if(file.cacheEntry){netInfoBox.cachePresented=true;
5211 this.insertHeaderRows(netInfoBox,file.cacheEntry,"Cache")
5212 }}else{if(hasClass(tab,"netInfoHtmlTab")&&file.loaded&&!netInfoBox.htmlPresented){netInfoBox.htmlPresented=true;
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;
5222 }responseTextBox[typeof responseTextBox.textContent!="undefined"?"textContent":"innerText"]=file.responseText;
5224 var text=Utils.getResponseText(file,context);
5231 panel.openResponseInTab(file)
5248 var file=netInfoBox.repObject;
5249 if(target.sourceDisplayed){var headers=requestHeaders?file.requestHeaders:file.responseHeaders;
5252 }else{var source=requestHeaders?file.requestHeadersText:file.responseHeadersText;
5270 var file=netInfoBox.repObject;
5273 if(file.requestHeadersText){removeClass(viewSource,"collapsed")
5275 if(file.responseHeadersText){removeClass(viewSource,"collapsed")
5281 },render:function(context,parentNode,file){var spy=getAncestorByClass(parentNode,"spyHead");
5284 var contentType=file.mimeType;
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)
5367 }}if(!file.postText){return file.postText
5369 if(file.postText.length>limit&&!noLimit){return cropString(file.postText,limit,"\n\n... "+$STR("net.postDataSizeLimitMessage")+" ...\n\n")
5370 }return file.postText
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);
5374 }var headerValue=Utils.findHeader(file.requestHeaders,"content-type");
5377 },isMultiPartRequest:function(file,context){var text=Utils.getPostText(file,context);
5388 },getHttpHeaders:function(request,file){try{var http=QI(request,Ci.nsIHttpChannel);
5389 file.status=request.responseStatus;
5390 file.method=http.requestMethod;
5391 file.urlParams=parseURLParams(file.href);
5392 file.mimeType=Utils.getMimeType(request.contentType,request.name);
5393 if(!file.responseHeaders&&Firebug.collectHttpHeaders){var requestHeaders=[],responseHeaders=[];
5398 file.requestHeaders=requestHeaders;
5399 file.responseHeaders=responseHeaders
5400 }}catch(exc){if(FBTrace.DBG_ERRORS){FBTrace.sysout("net.getHttpHeaders FAILS "+file.href,exc)
5406 },getFileCategory:function(file){if(file.category){if(FBTrace.DBG_NET){FBTrace.sysout("net.getFileCategory; current: "+file.category+" for: "+file.href,file)
5407 }return file.category
5408 }if(file.isXHR){if(FBTrace.DBG_NET){FBTrace.sysout("net.getFileCategory; XHR for: "+file.href,file)
5409 }return file.category="xhr"
5410 }if(!file.mimeType){var ext=getFileExtension(file.href);
5411 if(ext){file.mimeType=mimeExtensionMap[ext.toLowerCase()]
5412 }}if(!file.mimeType){return""
5413 }var mimeType=file.mimeType;
5415 }return(file.category=mimeCategoryMap[mimeType])
5514 netInfoBox=template.tag.append({file:spy},head);
5536 },initTabBody:function(infoBox,file){if(FBTrace.DBG_JSONVIEWER){FBTrace.sysout("jsonviewer.initTabBody",infoBox)
5537 }dispatch(this.fbListeners,"onParseJSON",[file]);
5538 if(!file.jsonObject){if(this.isJSON(file.mimeType,file.responseText)){file.jsonObject=this.parseJSON(file)
5539 }}if(file.jsonObject&&hasProperties(file.jsonObject)){Firebug.NetMonitor.NetInfoBody.appendTab(infoBox,"JSON",$STR("JSON"));
5540 if(FBTrace.DBG_JSONVIEWER){FBTrace.sysout("jsonviewer.initTabBody; JSON object available "+(typeof(file.jsonObject)!="undefined"),file.jsonObject)
5547 },updateTabBody:function(infoBox,file,context){var tab=infoBox.selectedTab;
5551 if(file.jsonObject){Firebug.DOMPanel.DirTable.tag.replace({object:file.jsonObject,toggles:this.toggles},tabBody)
5552 }},parseJSON:function(file){var jsonString=new String(file.responseText);
5562 },initTabBody:function(infoBox,file){if(FBTrace.DBG_XMLVIEWER){FBTrace.sysout("xmlviewer.initTabBody",infoBox)
5563 }if(this.isXML(file.mimeType,file.responseText)){Firebug.NetMonitor.NetInfoBody.appendTab(infoBox,"XML",$STR("XML"));
5570 },updateTabBody:function(infoBox,file,context){var tab=infoBox.selectedTab;
5574 this.insertXML(tabBody,Firebug.NetMonitor.Utils.getResponseText(file,context))
6095 if(FBL.isSafari){var reChromeStackItem=/^\s+at\s+(.*)((?:http|https|ftp|file):\/\/.*)$/;
7751 var file=reFile.exec(script.src);
7752 if(file){var fileName=file[1];
7753 var fileOptions=file[2];