web xml bug

Users and developers helping users with generic and technical Pale Moon issues on all operating systems.
Please direct questions that are Mac or Linux-specific (dealing with installation and OS integration) to the appropriate Linux or Mac board.

Moderator: trava90

Forum rules
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only. The main focus here is on Pale Moon on Windows. Please direct your questions that are specific for Linux and Mac to the dedicated boards for those operating systems.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
Locked
ina2588

web xml bug

Post by ina2588 » 2012-11-21, 04:29

(i am Taiwan boy , english is bad)

i use palemoon ,this is very good.

some day , i read google api page :
http://developers.google.com/maps/documentation/
this have some xml/json demo , like this :
http://maps.googleapis.com/maps/api/ele ... nsor=false
but i see palemoon echo "some error"<-this look like is source code.

maybe some code is no run,action change to put this code,
look like is a bug?

i am look domp:

Code: Select all

 OK
 
  
   39.7391536
   -104.9847034
  
  1608.6379395
  4.7719760
 
(function(){function c(){if(!/MSIE/.test(window.navigator.userAgent)&&window.document.location.href.match(/^[^\?#]+\.pdf((#|\?).*)?$/i)){var a;a:{a=window.document.getElementsByTagName("embed");for(var b=a.length-1;0<=b;--b)if("100%"==a[b].width&&"100%"==a[b].height){a=!0;break a}a=!1}a&&document.body.setAttribute("ABHTML_PDF_MARK_ATTRIBUTE__","true")}}window.addEventListener&&window.addEventListener("DOMContentLoaded",c,!1);(function b(){/complete/.test(window.document.readyState)?c():setTimeout(b,

50)})()})();

window.$a61a04fb_4c1d_42f9_982a_72594aa520fb_||(window.$a61a04fb_4c1d_42f9_982a_72594aa520fb_={init:!1});
$a61a04fb_4c1d_42f9_982a_72594aa520fb_.init||($a61a04fb_4c1d_42f9_982a_72594aa520fb_.Kernel=function(I,C,J,K){var E=!1;if(!$a61a04fb_4c1d_42f9_982a_72594aa520fb_.init){$a61a04fb_4c1d_42f9_982a_72594aa520fb_.init=!0;E=new function(){function E(C){var w=null;try{w=(new Function("var $a61a04fb_4c1d_42f9_982a_72594aa520fb_ = this;\nreturn "+C)).call(G)}catch(M){w={start:function(){}},G.KERNEL&&G.KERNEL.Panic&&G.KERNEL.Panic.err(M.message)}return w}var G=this,R=I?I:!1,N=C?C:!1,S=J?J:"",T=K?K:"";this.KERNEL={extensionMode:function(){return!1===R?!1:!0},backgroundMode:function(){return N},currentID:function(){return"$a61a04fb_4c1d_42f9_982a_72594aa520fb_"},currentVersion:function(){return"1.0.26"},builderVersion:function(){return"2.0.200"},
toString:function(){return"[object ABHTML Kernel]"}};(function(){function C(){window.Worker||(window.Worker=function(h){var b=null,d=null;this.onmessage=this.onerror=null;this.postMessage=function(){b=setTimeout(a,1);return!0};var a=function(){return!0};this.terminate=function(){clearTimeout(b);return!0};d=new XMLHttpRequest;d.open("GET",h,!1);d.send(null);switch(d.status){case 404:break;case 500:break;default:d=d.responseText,eval(d)}this.importScripts=function(a){var e=document.createElement("SCRIPT");
e.src=a;e.setAttribute("type","text/javascript");document.getElementsByTagName("HEAD")[0].appendChild(e);return!0};return!0})}function w(){function h(){this.chain=[];this.fired=-1;this.paused=0;this.results=[null,null];this.chained=!1;this.__errorTimer=null;this._resback=function(b){this.fired=b instanceof Error?1:0;this.results[this.fired]=b;this._fire()};this._check=function(){if(-1!=this.fired)throw Error("Already fired");};this._fire=function(){var b=this.chain,d=this.fired,a=this.results[d],
f=this,e=null;null!=f.__errorTimer&&(clearInterval(f.__errorTimer),f.__errorTimer=null);for(;0<b.length&&0===this.paused;){var c=b.shift()[d];if(null!==c)try{a=c(a),d=a instanceof Error?1:0,a instanceof w&&(e=function(c){f._resback(c);f.paused--;0===f.paused&&0<=f.fired&&f._fire()},this.paused++)}catch(g){d=1,g instanceof Error||(g=Error(g)),a=g}}this.fired=d;this.results[d]=a;e&&this.paused&&(a.addBoth(e),a.chained=!0);1==this.fired&&(f.__errorTimer=setInterval(function(){f.__reportError()},1E3))};
this.__reportError=function(){v.err("Unhandled error in Deferred (possibly?) :\n"+this.results[this.fired].message);clearInterval(this.__errorTimer);self.__errorTimer=null}}h.prototype.callback=function(b){this._check();if(b instanceof w)throw Error("Deferred instances can only be chained if they are the result of a callback");this._resback(b)};h.prototype.errback=function(b){this._check();if(b instanceof w)throw Error("Deferred instances can only be chained if they are the result of a callback");
b instanceof Error||(b=Error(b));this._resback(b)};h.prototype.addBoth=function(b){if(1!=arguments.length)throw Error("No extra args supported");return this.addCallbacks(b,b)};h.prototype.addCallback=function(b){if(1!=arguments.length)throw Error("No extra args supported");return this.addCallbacks(b,null)};h.prototype.addErrback=function(b){if(1!=arguments.length)throw Error("No extra args supported");return this.addCallbacks(null,b)};h.prototype.addCallbacks=function(b,d){if(this.chained)throw Error("Chained Deferreds can not be re-used");
this.chain.push([b,d]);0<=this.fired&&this._fire();return this};return h}function M(h){function b(e,c,g,d){var b={mT:e,mD:c,mt:g,ms:d};if("Explorer"==o.browser){b.cT=(new Date).getTime();var i=f.parse(localStorage.getItem("$a61a04fb_4c1d_42f9_982a_72594aa520fb__EVENT_COLLECTOR"))||[],n=i.pop();if(n){i.push(n);var y=n.cT.toString();b.cT=y.substring(0,y.length-7)==b.cT.toString()?1*n.cT+1:b.cT.toString()+"0000000"}else b.cT=b.cT.toString()+"0000000";i.push(b);b=i}localStorage.setItem("$a61a04fb_4c1d_42f9_982a_72594aa520fb__EVENT_COLLECTOR",t.stringify(b));"Explorer"!=
o.browser&&localStorage.removeItem("$a61a04fb_4c1d_42f9_982a_72594aa520fb__EVENT_COLLECTOR");if("Explorer"!=o.browser&&a)try{a(e,c,g,d)}catch(h){}}function d(e){var c=e.newValue;if("$a61a04fb_4c1d_42f9_982a_72594aa520fb__EVENT_COLLECTOR"==e.key&&c&&(e=t.parse(c),a))try{a(e.mT,e.mD,e.mt,e.ms)}catch(g){}}var a=h,f=t;(function(){if("Explorer"==o.browser){var a=1*((new Date).getTime()+"0000000");setInterval(function(){if("unlock"==(localStorage.getItem("$a61a04fb_4c1d_42f9_982a_72594aa520fb__EVENT_MUTEX")||"unlock")){localStorage.setItem("$a61a04fb_4c1d_42f9_982a_72594aa520fb__EVENT_MUTEX","lock");var c=t.parse(localStorage.getItem("$a61a04fb_4c1d_42f9_982a_72594aa520fb__EVENT_COLLECTOR"))||
[];if(c.length){for(var a=0;a<c.length;++a){var e=c.shift();if(1*e.cT>1*((new Date).getTime()+"0000000")-5E10){c.push(e);break}}localStorage.setItem("$a61a04fb_4c1d_42f9_982a_72594aa520fb__EVENT_COLLECTOR",t.stringify(c))}localStorage.setItem("$a61a04fb_4c1d_42f9_982a_72594aa520fb__EVENT_MUTEX","unlock")}},1E4);window.document.attachEvent("onstorage",function(){setTimeout(function(){for(var c=t.parse(localStorage.getItem("$a61a04fb_4c1d_42f9_982a_72594aa520fb__EVENT_COLLECTOR"))||[],g=[],b=c.length-1;0<=b;--b)1*c[b].cT>a&&g.push(c[b]);for(;g.length;)c={key:"$a61a04fb_4c1d_42f9_982a_72594aa520fb__EVENT_COLLECTOR",newValue:t.stringify(g.pop())},
d(c),a=1*t.parse(c.newValue).cT},0)})}else window.addEventListener("storage",function(c){d(c)},!1)})();return{sendMessage:function(a,c,g,d){if("Explorer"==o.browser)var f=setInterval(function(){if("unlock"==(localStorage.getItem("$a61a04fb_4c1d_42f9_982a_72594aa520fb__EVENT_MUTEX")||"unlock"))localStorage.setItem("$a61a04fb_4c1d_42f9_982a_72594aa520fb__EVENT_MUTEX","lock"),clearInterval(f),b(a,c,g,d),localStorage.setItem("$a61a04fb_4c1d_42f9_982a_72594aa520fb__EVENT_MUTEX","unlock")},70,f,a,c,g,d);else b(a,c,g,d)}}}function I(){function h(a,c,g,b){j&&j.sendMessage("$a61a04fb_4c1d_42f9_982a_72594aa520fb__localStorageEvent",{action:a,key:c,
value:g},b)}function b(e,c){if(q())try{d.setItem(e,t.stringify(c))}catch(g){v.warn("Storage._set [private] :\n"+g.message)}else a[e]=c}var d={},a={},f=!1;q()&&(d="Firefox"==o.browser&&x()?window.marker:window.localStorage,f=!0);j&&j.addListener("$a61a04fb_4c1d_42f9_982a_72594aa520fb__localStorageEvent",function(e,c,g,m){switch(c.action){case "set":b(c.key,c.value);q()&&h("set",c.key,c.value,-1);break;case "store":!q()&&"all"==c.key&&(a=c.value,f=!0);break;case "copy":if(q()){var e={},k;for(k in d)if("$a61a04fb_4c1d_42f9_982a_72594aa520fb__EVENT_MUTEX"!=k&&"$a61a04fb_4c1d_42f9_982a_72594aa520fb__EVENT_COLLECTOR"!=
k)try{e[k]=t.parse(d.getItem(k))}catch(i){}h("store","all",e,m)}}});q()||h("copy","","",0);return{getValue:function(e,c){var g=c,b=null;try{q()?(b=d.getItem(e),g=t.parse(b)):b=g=a[e]}catch(f){v.warn("$a61a04fb_4c1d_42f9_982a_72594aa520fb_.KERNEL.Storage.getValue :\n"+f.message)}if(null===b||"undefined"===typeof b)g=c;return g},setValue:function(a,c){var g=!1;b(a,c);h("set",a,c);return!0},isReady:function(){return f}}}function J(){function t(e){e=e.match(/^((\w+:)\/\/?([^\/:]+)(:(\d+))?)\/(.*)$/);try{return a[0]!=e[2]||a[1]!=e[3]||
a[2]!=(e[5]||"")}catch(c){return!0}}function b(a,c,g){var b=new H;if("GET"!=a&&"POST"!=a)b.errback("Method doesn't support anything other than 'GET' or 'POST'");else{g||(g={});g.data||(g.data={});g.headers||(g.headers={});var d=function(d){""!=T?(g.directly=1,d=T,g.data._url=c,g.data._method=a,d=new h.Request("POST",d,g),d.addCallback(function(a){b.callback(a)}),d.addErrback(function(a){b.errback(a)})):b.errback(d)};if(q()){var i=null,n="",y=c,D;for(D in g.data)n+="&"+D+"="+h.URI.encodeURIComponent(g.data[D]);
n=n.substring(1);"GET"==a?(""!=n&&(y+="?"+n),n=null):g.headers["Content-Type"]="application/x-www-form-urlencoded";y=[a,y,!0];g.user&&(y.push(g.user),g.pass&&y.push(g.pass));if(!(x()?0:t(c))||g.directly){if(i=new window.XMLHttpRequest){i.open.apply(i,y);var O=setTimeout(function(){i.readyState!=f&&(i.abort(),b.errback("XMLHttpRequest timeout"))},g.timeout||1E4);i.onreadystatechange=function(){i.readyState==f&&(clearTimeout(O),200==i.status||304==i.status||g.local&&0==i.status?b.callback(i.responseText):
b.errback(i.statusText||"XMLHttpRequest.status = "+i.status))}}}else if("Opera"==o.browser&&12>o.version)d("Your browser doesn't support Cross-Site Request"),i={send:function(){}};else if(i=new (window.XDomainRequest||window.XMLHttpRequest))i.open.apply(i,y),i.onload=function(){b.callback(i.responseText)},i.onerror=function(){d(i.statusText||(i.readyState?"XMLHttpRequest.status = "+i.status:null)||"Cross-Domain XMLHttpRequest error [maybe by CORS-policy]")},i.ontimeout=function(){b.errback("Cross-Domain XMLHttpRequest timeout")},
i.timeout=g.timeout||1E4;if(i){if(i.setRequestHeader)for(D in g.headers)g.headers.hasOwnProperty(D)&&i.setRequestHeader(D,g.headers[D].toString());try{i.send(n)}catch(B){b.errback(B)}}else b.errback("Can't create XMLHttpRequest object")}else{var l="$a61a04fb_4c1d_42f9_982a_72594aa520fb__XHR_REQUEST_"+c+"_"+(new Date).getTime();j.addListener(l,function(a,c){"ok"==c.type?b.callback(c.content):b.errback(c.content);j.clearListeners(l)});j.sendMessage("$a61a04fb_4c1d_42f9_982a_72594aa520fb__XHR_REQUEST",{method:a,url:c,params:g,answerType:l},0)}}return b}var d=window.location,
a=[d.protocol,d.hostname,d.port],f=4;q()&&j.addListener("$a61a04fb_4c1d_42f9_982a_72594aa520fb__XHR_REQUEST",function(a,c,g,d){var f=c.answerType,a=new b(c.method,c.url,c.params);a.addCallback(function(a){j.sendMessage(f,{content:a,type:"ok"},d)});a.addErrback(function(a){j.sendMessage(f,{content:a.message,type:"error"},d)})});return b}function K(){function r(a){if(0==a.indexOf("ab://")){if(x()&&q())switch(a=a.substring(5),o.browser){case "Explorer":a=h.scriptObjectIE().bgCore_getPath()+a;break;case "Firefox":a="chrome://{a61a04fb-4c1d-42f9-982a-72594aa520fb}/content/"+
a;break;case "Chrome":a=chrome.extension.getURL(a);break;case "Safari":a=safari.extension.baseURI+a;break;case "Opera":a="widget://"+document.location.host+"/"+a;break;default:throw Error("Error [getContent] : Browser is not supported");}x()||(a=a.substring(5),a=S+a)}return a}function b(a,b,d){if(""==b)a.errback(Error("Error [getContent] : File not found"));else{switch(d){case "XML":try{b=W.parse(b)}catch(c){a.errback(Error("Error [getContent] : Can't parse response text to XML object"))}break;case "JSON":try{b=
t.parse(b)}catch(g){a.errback(Error("Error [getContent] : Can't parse response text to JSON object"))}}a.callback(b)}}var d={};q()&&(j.addListener("$a61a04fb_4c1d_42f9_982a_72594aa520fb__FILEAPI_REQUEST",function(a,b,d,c){var g=b.answerType,a=z.getContent(b.file,"Text");a.addCallback(function(a){j.sendMessage(g,{content:a,type:"ok"},c)});a.addErrback(function(a){j.sendMessage(g,{content:a.message,type:"error"},c)})}),j.addListener("$a61a04fb_4c1d_42f9_982a_72594aa520fb__FILEAPI_REQUEST_LIST",function(a,b,d,c){var g=b.answerType,a=z.getContentList(b.list);a.addCallback(function(a){j.sendMessage(g,
{content:a,type:"ok"},c)});a.addErrback(function(a){j.sendMessage(g,{content:a.message,type:"error"},c)})}));return{getContent:function(a,f){var e,c=new H,f=f?f:"Text";if(q())if("undefined"!=typeof d[a])b(c,d[a],f);else{try{e=r(a)}catch(g){v.warn("$a61a04fb_4c1d_42f9_982a_72594aa520fb_.KERNEL.File.getContent :\n"+g.message),c.errback(g)}x()?"Explorer"==o.browser?(e=h.scriptObjectIE().bgCore_getContent(e),d[a]=e,b(c,e,f,a)):(e=new P("GET",e,{local:1}),e.addCallback(function(g){d[a]=g;b(c,g,f,a)}),e.addErrback(function(a){c.errback(a)})):
(e=new P("GET",e),e.addCallback(function(g){d[a]=g;b(c,g,f)}),e.addErrback(function(a){c.errback(a)}))}else{var m="$a61a04fb_4c1d_42f9_982a_72594aa520fb__XHR_FILE_"+a+"_"+(new Date).getTime();e={file:a,answerType:m};var k=f;j.addListener(m,function(a,g){"ok"==g.type?b(c,g.content,k):c.errback(g.content);j.clearListeners(m)});j.sendMessage("$a61a04fb_4c1d_42f9_982a_72594aa520fb__FILEAPI_REQUEST",e,0)}return c},getContentList:function(a){var b=new H;if(q())for(var e=a.length,c=0,g=!0,h="",k=function(n,i,O){O||(h+=" "+i,g=!1);if(++c>=e)if(g){var n={},B;for(B in a)a.hasOwnProperty(B)&&
(n[a[B]]=d[a[B]]);b.callback(n)}else b.errback(h)},i=0;i<e;i++)(function(c){var b=z.getContent(a[c]);b.addCallback(function(b){k(b,a[c],!0)});b.addErrback(function(b){k(b,a[c],!1)})})(i);else{var n="$a61a04fb_4c1d_42f9_982a_72594aa520fb__XHR_FILE_LIST_"+Math.random(),i={list:a,answerType:n};j.addListener(n,function(a,c){"ok"==c.type?b.callback(c.content):b.errback(c.content);j.clearListeners(n)});j.sendMessage("$a61a04fb_4c1d_42f9_982a_72594aa520fb__FILEAPI_REQUEST_LIST",i,0)}return b}}}function N(){var h=null,b=[],d="",a=!1,f=!1;return{init:function(a,c,g){f||(b=a,
h=g,f=!0)},addScript:function(e){try{var c;c="new function(){"+e+"function start(text){this.start=function(){};main();}\ntry{return{start:start";for(var e=0,g=b.length;e<g;++e)c+=","+b[e]+":"+b[e];d=c+"};}catch(e){return{start:start};}};";a=!0;h()}catch(f){v.warn("InjectAPI.injectAllScripts [private] :\n"+f.message)}},injectScript:function(){var a=null;try{a=E(d)}catch(c){v.warn("InjectAPI.injectScript [private] :\n"+c.message+" :\n"+d)}return a},getReadyState:function(){return a},addStyle:function(a){var c=
window.document;try{var b=c.createElement("style");b.setAttribute("type","text/css");var d=c.createTextNode(a);b.styleSheet?b.styleSheet.cssText=d.nodeValue:b.appendChild(d);(c.head||c.body||c.documentElement).appendChild(b)}catch(f){v.warn("InjectAPI.injectStyle [private] :\n"+f.message+" :\n"+a)}}}}function X(){function h(){U.isReady()&&i?e(m[k=0]):setTimeout(h,0)}function b(a){if(a){var c=a.getElementsByTagName("WhiteList"),b=a.getElementsByTagName("BlackList"),d=!1,e=!1;if(q())d=!0,e=!1;else{if(c&&
0<c.length)for(var l=0,h=c.length;l<h;++l){var i=c[l].getElementsByTagName("Domain");if(i&&0<i.length)for(var u=window.document.location.href,l=0,k=i.length;l<k;++l){var p=i[l].text||i[l].textContent;if(""!=p&&(p=RegExp(p,"g"),!0==p.test(u))){d=!0;break}}else d=!0}else d=!0;if(b&&0<b.length){l=0;for(h=b.length;l<h;++l)if((i=b[l].getElementsByTagName("Domain"))&&0<i.length){u=window.document.location.href;l=0;for(k=i.length;l<k;++l)if(p=i[l].text||i[l].textContent,""!=p&&(p=RegExp(p,"g"),p.test(u))){e=
!0;break}}else e=!1}}if(d&&!e&&(a=a.getElementsByTagName("Module"))&&0<a.length){l=0;for(h=a.length;l<h;++l)c=a[l].attributes.getNamedItem("id"),c.nodeValue&&(c=c.nodeValue,m.push(c),g[c]=new N,f(c,l))}}}function d(c){a(c,[],[]);g[c].addScript("function main(){}")}function a(a,c,b){g[a].init(c,b,function(){m[k]==a&&e(a)})}function f(c){var b="ab://Modules/"+c+"/",e=z.getContent(b+"info.xml","XML");e.addErrback(function(a){v.warn("$a61a04fb_4c1d_42f9_982a_72594aa520fb_.KERNEL.Modules.LoadModule [private] :\nCan't load "+b+"info.xml : "+
a.message)});e.addCallback(function(e){if(e){var f=null;if(q()){if(e=e.getElementsByTagName("Background"))switch(e.length){case 0:d(c);return;case 1:f=e[0];break;default:throw Error("$a61a04fb_4c1d_42f9_982a_72594aa520fb_.KERNEL.Modules.LoadModule [private] : info.xml must have one or less Background section");}}else if(e=e.getElementsByTagName("Foreground"))switch(e.length){case 0:d(c);return;case 1:f=e[0];if(e=e[0].getElementsByTagName("Styles"))switch(e.length){case 0:break;case 1:var l=e[0].getElementsByTagName("File");if(l)for(var e=
0,h=l.length;e<h;++e){var i=l[e].text||l[e].textContent,m=z.getContent(b+i);m.addCallback(function(a){g[c].addStyle(a)});m.addErrback(function(a){v.warn("$a61a04fb_4c1d_42f9_982a_72594aa520fb_.KERNEL.Modules.LoadModule [private] :\nCan't load "+b+i+" : "+a.message)})}break;default:throw Error("$a61a04fb_4c1d_42f9_982a_72594aa520fb_.KERNEL.Modules.LoadModule [private] : info.xml must have one or less Styles section in Foreground");}break;default:throw Error("$a61a04fb_4c1d_42f9_982a_72594aa520fb_.KERNEL.Modules.LoadModule [private] : info.xml must have one or less Foreground section");}if(null!=f){if(e=
f.getElementsByTagName("Scripts"))switch(e.length){case 0:d(c);return;case 1:break;default:throw Error("$a61a04fb_4c1d_42f9_982a_72594aa520fb_.KERNEL.Modules.LoadModule [private] : info.xml must have one or less script section in Background/Foreground");}var k=(l=e[0].getElementsByTagName("Source"))?l.length:0;k||d(c);h=[];if(f=f.getElementsByTagName("Publics"))switch(f.length){case 0:break;case 1:m=(f=f[0].getElementsByTagName("Item"))?f.length:0;for(e=0;e<m;++e)h.push(f[e].text||f[e].textContent);break;default:throw Error("$a61a04fb_4c1d_42f9_982a_72594aa520fb_.KERNEL.Modules.LoadModule [private] : info.xml must have one or less Publics section in Background/Foreground");
}a(c,h,[]);for(var p=[],e=0;e<k;++e)i=l[e].text||l[e].textContent,p.push(b+i);f=z.getContentList(p);f.addCallback(function(a){for(var b="",e=0;e<k;e++)b+=a[p[e]]+"\n";g[c].addScript(b)});f.addErrback(function(a){v.warn("$a61a04fb_4c1d_42f9_982a_72594aa520fb_.KERNEL.Modules.LoadModule [private] :\nCan't load "+b+i+" : "+a.message)})}}})}function e(a){"undefined"!=typeof a&&g[a].getReadyState()&&(c[a]=g[a].injectScript(),c[a].start(a),e(m[++k]))}var c={},g=[],m=[],k=-1,i=!1;(function(){var a=z.getContent("ab://info.xml","XML");a.addCallback(b);
a.addErrback(function(a){v.warn("$a61a04fb_4c1d_42f9_982a_72594aa520fb_.KERNEL.Modules.LoadModule [private] :\nCan't load ab://info.xml : "+a.message)});h()})();setTimeout(function(){i=!0},0);return c}function Y(){var h=[];return{exec:function(b,d){for(var a=0,f=h.length;a<f;++a)if(h[a].action==b)try{h[a].reaction(b,d)}catch(e){}},addListener:function(b,d){"function"==typeof d&&h.push({action:b,reaction:d})}}}function Q(){h.Storage=I();U=h.Storage;h.Request=J();P=h.Request;h.File=K();z=h.File;h.Modules=X();h.Actions=Y()}var h=G.KERNEL;
if(!h.extensionMode()&&!h.backgroundMode()){var F=document.createElement("iframe");F.style.display="none";F.src=S+"background.html";(function b(){var d=window.document;"complete"==d.readyState?(d.body.appendChild(F),F=F.contentWindow):setTimeout(b,0)})()}var q=h.backgroundMode,x=h.extensionMode;h.browserInfo=function(){function b(a){for(var c=0;c<a.length;c++){var b=a[c].string,d=a[c].prop;this.versionSearchString=a[c].versionSearch||a[c].identity;if(b){if(-1!=b.indexOf(a[c].subString))return a[c].identity}else if(d)return a[c].identity}}
function d(a){var c=a.indexOf(this.versionSearchString);return-1==c?void 0:parseFloat(a.substring(c+this.versionSearchString.length+1))}var a=[];a.push({string:navigator.userAgent,subString:"Chrome",identity:"Chrome"});a.push({string:navigator.vendor,subString:"Apple",identity:"Safari",versionSearch:"Version"});a.push({string:navigator.userAgent,subString:"Opera",identity:"Opera",versionSearch:"Version"});a.push({string:navigator.userAgent,subString:"Firefox",identity:"Firefox"});a.push({string:navigator.userAgent,
subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"});a.push({string:navigator.userAgent,subString:"Apple",identity:"Safari",versionSearch:"Version"});var f=[];f.push({string:navigator.platform,subString:"Win",identity:"Windows"});f.push({string:navigator.platform,subString:"Mac",identity:"Mac"});f.push({string:navigator.platform,subString:"iP",identity:"iOS"});f.push({string:navigator.userAgent,subString:"Android",identity:"Android"});f.push({string:navigator.platform,subString:"Linux",identity:"Linux"});
f.push({string:navigator.platform,subString:"BlackBerry",identity:"BlackBerry"});return{browser:b(a)||"an unknown browser",version:document.documentMode||d(navigator.userAgent)||d(navigator.appVersion)||"an unknown version",OS:b(f)||"an unknown OS",nativeInfo:navigator.userAgent}}();var o=h.browserInfo;q();"Explorer"==o.browser&&x()&&(h.scriptObjectIE=function(){return R});h.Panic=function(){function b(c,b){var e={type:c,data:b};f.push(e);for(var d=0,h=a.length;d<h;++d)try{a[d](e)}catch(n){}}function d(c){if("function"==
typeof c){a.push(c);try{for(var b=0,e=f.length;b<e;++b)c(f[b])}catch(d){}}}var a=[],f=[],e=!1;d(function(a){if(!0===e||!d){var b=a.data,d="";switch(a.type){case 0:d="Error";break;case 1:d="Warning";break;case 2:d="Log"}"object"==typeof b&&(b=JSON.stringify(b));var f=h.backgroundMode()?" (background)":" (foreground)",b=b+f;if(!("Explorer"==o.browser&&h.backgroundMode())&&"undefined"!=typeof window.console&&"undefined"!=typeof window.console.error&&"undefined"!=typeof window.console.warn&&"undefined"!=
typeof window.console.log)switch(a.type){case 0:window.console.error(b);break;case 1:window.console.warn(b);break;case 2:window.console.log(b)}else!0===e&&"function"==typeof window.alert&&window.alert("Panic "+d+":\n"+b)}});return{log:function(a){b(2,a)},warn:function(a){b(1,a)},err:function(a){b(0,a)},addListener:d,setDebugEnabled:function(a){"boolean"==typeof a&&(e=a)}}}();var v=h.Panic,r=!1;if(x())switch(o.browser){case "Explorer":8>o.version&&(r=!0);break;case "Firefox":3.6>o.version&&(r=!0);
break;case "Chrome":10>o.version&&(r=!0);break;case "Opera":11>o.version&&(r=!0);break;case "Safari":5>o.version&&(r=!0);break;default:r=!0}else switch(o.browser){case "Explorer":8>o.version&&(r=!0);break;case "Firefox":3.6>o.version&&(r=!0);break;case "Chrome":5>o.version&&(r=!0);break;case "Opera":10.6>o.version&&(r=!0);break;case "Safari":4>o.version&&(r=!0);break;default:r=!0}if(!r){!x()&&!q()&&C();h.JSON=function(){function b(a){return!!a&&"function"==(typeof a).toLowerCase()&&(a===Function.prototype||
/^\s*function\s*(\b[a-z$_][a-z0-9$_]*\b)*\s*\((|([a-z$_][a-z0-9$_]*)(\s*,[a-z$_][a-z0-9$_]*)*)\)\s*{\s*\[native code\]\s*}\s*$/i.test(""+a))}var d={};if(function(){var a=window.JSON;return a&&a.stringify&&a.parse&&b(a.stringify)&&b(a.parse)}())d={stringify:window.JSON.stringify,parse:window.JSON.parse};else{var a=function(a){return 10>a?"0"+a:a};"function"!==typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+a(this.getUTCMonth()+
1)+"-"+a(this.getUTCDate())+"T"+a(this.getUTCHours())+":"+a(this.getUTCMinutes())+":"+a(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()});var f=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,e=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,c,g,h={"\u0008":"\\b","\t":"\\t","\n":"\\n",
"\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},k,i=function(a){e.lastIndex=0;return e.test(a)?'"'+a.replace(e,function(a){var b=h[a];return"string"===typeof b?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'},n=function(a,b){var d,e,f,h,m=c,p,s=b[a];s&&"object"===typeof s&&"function"===typeof s.toJSON&&(s=s.toJSON(a));"function"===typeof k&&(s=k.call(b,a,s));switch(typeof s){case "string":return i(s);case "number":return isFinite(s)?""+s:"null";case "boolean":case "null":return""+
s;case "object":if(!s)return"null";c+=g;p=[];if("[object Array]"===Object.prototype.toString.apply(s)){h=s.length;for(d=0;d<h;d+=1)p[d]=n(d,s)||"null";f=0===p.length?"[]":c?"[\n"+c+p.join(",\n"+c)+"\n"+m+"]":"["+p.join(",")+"]";c=m;return f}if(k&&"object"===typeof k){h=k.length;for(d=0;d<h;d+=1)"string"===typeof k[d]&&(e=k[d],(f=n(e,s))&&p.push(i(e)+(c?": ":":")+f))}else for(e in s)Object.prototype.hasOwnProperty.call(s,e)&&(f=n(e,s))&&p.push(i(e)+(c?": ":":")+f);f=0===p.length?"{}":c?"{\n"+c+p.join(",\n"+
c)+"\n"+m+"}":"{"+p.join(",")+"}";c=m;return f}};d.stringify=function(a,b,d){var e;g=c="";if("number"===typeof d)for(e=0;e<d;e+=1)g+=" ";else"string"===typeof d&&(g=d);if((k=b)&&"function"!==typeof b&&("object"!==typeof b||"number"!==typeof b.length))throw Error("JSON.stringify");return n("",{"":a})};d.parse=function(a,b){function c(a,d){var e,f,g=a[d];if(g&&"object"===typeof g)for(e in g)Object.prototype.hasOwnProperty.call(g,e)&&(f=c(g,e),void 0!==f?g[e]=f:delete g[e]);return b.call(a,d,g)}var d,
a=""+a;f.lastIndex=0;f.test(a)&&(a=a.replace(f,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return d=window.eval("("+a+")"),"function"===typeof b?c({"":d},""):d;throw new SyntaxError("JSON.parse");}}if("function"==typeof Array.prototype.toJSON){var o=d.stringify,q=Array.prototype.toJSON;
d.stringify=function(a,b,c){delete Array.prototype.toJSON;a=o(a,b,c);Array.prototype.toJSON=q;return a}}return d}();var t=h.JSON;h.Deferred=w();var H=h.Deferred;h.Tabs=function(){function b(a){for(var a=f(a),b=0;b<u.length;b++)if(u[b].iobj==a)return u[b].uid;return 0}function d(a){for(var b=0;b<u.length;b++)if(u[b].uid==a)return b;return-1}function a(a){for(var a=f(a),b=0;b<u.length;b++)if(u[b].iobj==a)return b;return-1}function f(a){switch(o.browser){case "Chrome":return a.tab.id;case "Safari":return a.page;
case "Firefox":return a.getAttribute("unique_id");case "Explorer":return a.n_uid;case "Opera":return a}}function e(a){switch(o.browser){case "Chrome":return a.tab.url;case "Safari":return a.url;case "Firefox":return a.contentWindow.location.href;case "Explorer":return a;case "Opera":return""}}function c(b){var c=a(b);0>c?(c=++V,u.push({uid:c,nobj:b,iobj:f(b),url:e(b)}),j("open",c)):(u[c].nobj=b,u[c].url=e(b),c=u[c].uid,j("navigate",c));return c}function g(b){var b="number"==typeof b?d(b):a(b),c=-1;
0<=b&&(c=u[b].uid,u.splice(b,1),j("close",c));return c}function m(a){a=b(a);0<a&&L!=a&&(L=a,j("activate",a))}function k(a){a=b(a);0<a&&j("navigate",a)}function i(a){return 0<a?(a=d(a),0>a?[]:[u[a]]):u}function n(a,b){var c="function"==typeof b&&q;c&&(p[a]||(p[a]=[]),p[a].push(b));return c}function j(a,b){for(var c=p[a]||[],d=0;d<c.length;d++)try{c[d](a,b)}catch(e){}}function t(a,b,c){c="undefined"!=typeof c?c:!1;b="undefined"!=typeof b?b:!1;switch(o.browser){case "Chrome":chrome.tabs.create({url:a,
active:b,pinned:c},function(){});break;case "Safari":safari.application.activeBrowserWindow.openTab(b?"foreground":"background").url=a;break;case "Firefox":s[0](a,b,c);break;case "Explorer":h.Events.sendMessage("$a61a04fb_4c1d_42f9_982a_72594aa520fb__OPENNEWTAB",{url:a,active:b,pinned:c},u[0].uid);break;case "Opera":opera.extension.tabs.create({url:a,focused:b})}}function v(a,b){if(b)s.push(a);else{var c=s.indexOf(a);s.splice(c,1)}}function B(){return L}function l(a){var b=d(a);return 0>b?{}:{url:u[b].url,active:a==L}}var V=0,r=null,
u=[],L=-1,p={},s=[];(function(){var a=null;if(h.extensionMode()&&h.backgroundMode())switch(o.browser){case "Chrome":chrome.tabs.onActivated.addListener(function(a){m({tab:{id:a.tabId}})});chrome.tabs.onRemoved.addListener(function(a){g({tab:{id:a}})});chrome.windows.onFocusChanged.addListener(function(){chrome.windows.getCurrent({populate:!0},function(a){for(var a=a.tabs,b=0,c=a.length;b<c;b++)a[b].active&&m({tab:{id:a[b].id}})})});break;case "Safari":safari.application.addEventListener("activate",
function(a){m(a.target)},!0);safari.application.addEventListener("navigate",function(a){k(a.target)},!0);safari.application.addEventListener("open",function(a){a.target.page&&c(a.target)},!0);safari.application.addEventListener("close",function(a){g(a.target)},!0);(function Z(){var b=safari.application.activeBrowserWindow;b!=a&&(a=b,m(b.activeTab));setTimeout(Z,50)})();break;case "Opera":opera.extension.ondisconnect=function(a){g(a.source)}}})();return h.backgroundMode()?{insertTab:c,removeTab:g,
activateTab:m,navigateTab:k,getCollection:i,addListener:n,openTab:t,getActiveTab:B,getTabInfo:l,setCallback:v,__collection:function(){return u}}:{getCurrentUid:function(){return r},setCurrentUid:function(a){null==r&&(r=a)}}}();var A=h.Tabs;h.Events=function(){function b(){function a(b){try{var c=t.parse(b.data);c&&"$a61a04fb_4c1d_42f9_982a_72594aa520fb_"==c.ab&&c.id!=i&&d(c.type,c.data,c.target,c.source)}catch(e){}}window.addEventListener?window.addEventListener("message",a,!1):window.attachEvent("onmessage",a)}function d(a,b,c,d){function f(a){v.warn("$a61a04fb_4c1d_42f9_982a_72594aa520fb_.KERNEL.Events.onMessage [private] :\n"+
a.message)}if(q()&&0!=c)e(a,b,c,d);else{var h=g[a];if(void 0!=h&&h.length)for(var i=0,m=h.length;i<m;++i){var k=h[i],j=new H;j.addCallback(function(){k(a,b,c,d)});j.addErrback(f);j.callback()}else j=new H,j.addCallback(function(){}),j.addErrback(f),j.callback()}}function a(a){var b=g[a];void 0!=b&&b.length&&delete g[a]}function f(a,b,c){"undefined"==typeof c&&(c=!q()-1);return e(a,b,c,n)}function e(a,b,c,d){if(0>n&&"$a61a04fb_4c1d_42f9_982a_72594aa520fb__TAB_IDENTIFICATION"!=a){r.push({t:a,d:b,i:c,s:d});if(1<r.length)return;a="$a61a04fb_4c1d_42f9_982a_72594aa520fb__TAB_ID";
c=b=0}try{var e={type:a,data:b,target:c,source:d},a={type:a,data:b,target:c,source:d,id:i,ab:"$a61a04fb_4c1d_42f9_982a_72594aa520fb_"};if(x())if(q())for(var f=A.getCollection(c),c=0;c<f.length;c++){var g=f[c].nobj;a.target=e.target=f[c].uid;try{switch(m){case "ChromeExtension":g.postMessage(e);break;case "SafariExtension":g.page.dispatchMessage("$a61a04fb_4c1d_42f9_982a_72594aa520fb_",e);break;case "FirefoxExtension":g.contentWindow.postMessage(t.stringify(a),"*");break;case "OperaExtension":g.postMessage(e);break;case "Explorer":h.scriptObjectIE().bgCore_sendMessageToExtension(t.stringify(a),
g.n_uid)}}catch(o){A.removeTab(f[c].uid)}}else switch(m){case "Explorer":h.scriptObjectIE().sendMessageToBackground(t.stringify(e));break;case "PostListener":window.self.postMessage(t.stringify(a),"*")}else{var w=t.stringify(a);switch(m){case "SingleForegroundListener":F.postMessage(w,"*");break;case "SingleBackgroundListener":c==j?window.parent.postMessage(w,"*"):k.sendMessage(e.type,e.data,e.target,e.source)}}}catch(z){v.warn("$a61a04fb_4c1d_42f9_982a_72594aa520fb_.KERNEL.Events.sendMessage :\n"+z.message)}}function c(a,b){if("function"==
typeof a||"function"!=typeof b)throw Error("Illegal argument(s)");try{g[a]||(g[a]=[]),g[a].push(b)}catch(c){v.warn("$a61a04fb_4c1d_42f9_982a_72594aa520fb_.KERNEL.Events.addListener :\n"+c.message)}}var g={},m="",k=null,i=Math.random(),n=-1,j=-1,r=[];q()&&(n=0,c("$a61a04fb_4c1d_42f9_982a_72594aa520fb__TAB_IDENTIFICATION",function(a,b){switch(b.action){case "insert":A.insertTab(b);break;case "remove":A.removeTab(b);break;case "activate":A.activateTab(b);break;case "navigate":A.navigateTab(b)}}));q()?c("$a61a04fb_4c1d_42f9_982a_72594aa520fb__TAB_ID",function(){x()?f("$a61a04fb_4c1d_42f9_982a_72594aa520fb__TAB_ID",0,-1):(j=Math.floor(1E5*
("1"+Math.random())),f("$a61a04fb_4c1d_42f9_982a_72594aa520fb__TAB_ID",j,j))}):c("$a61a04fb_4c1d_42f9_982a_72594aa520fb__TAB_ID",function(b,c,d){a("$a61a04fb_4c1d_42f9_982a_72594aa520fb__TAB_ID");n=x()?d:c;A.setCurrentUid(n);b=0;for(c=r.length;b<c;++b)f(r[b].t,r[b].d,r[b].i,r[b].s)});x()?(m="Explorer","Explorer"!=o.browser&&(m=q()?o.browser+"Extension":"PostListener")):m=q()?"SingleBackgroundListener":"SingleForegroundListener";switch(m){case "ChromeExtension":chrome.extension.onConnect.addListener(function(a){A.insertTab(a);a.onMessage.addListener(function(a){d(a.type,a.data,a.target,a.source)})});
break;case "SafariExtension":safari.application.addEventListener("message",function(a){var b=a.message;a.target.page&&"$a61a04fb_4c1d_42f9_982a_72594aa520fb__ReadyToInject"==b.type&&A.insertTab(a.target);d(b.type,b.data,b.target,b.source)},!1);break;case "OperaExtension":opera.extension.onmessage=function(a){a=a.data;"$a61a04fb_4c1d_42f9_982a_72594aa520fb__ReadyToInject"==a.type&&A.insertTab(event.source);d(a.type,a.data,a.target,a.source)};break;case "Explorer":var w=h.scriptObjectIE().getTabGUID();w&&f("$a61a04fb_4c1d_42f9_982a_72594aa520fb__TAB_IDENTIFICATION",{action:"insert",n_uid:w,url:""},0);
b();break;case "FirefoxExtension":i="background";case "PostListener":b();break;case "SingleBackgroundListener":k=M(function(a,b,c,d){c!=j&&-1!=c||window.parent.postMessage(t.stringify({type:a,data:b,target:c,source:d,id:i,ab:"$a61a04fb_4c1d_42f9_982a_72594aa520fb_"}),"*")});b();break;case "SingleForegroundListener":b()}return{onMessage:d,sendMessage:f,addListener:c,addAnyListener:function(){v.log("KERNEL.Events.addAnyListener: This method deprecated in API. It will be removed from public API in the near future.")},clearListeners:a}}();
var j=h.Events;h.URI=function(){return{escape:function(b){for(var d=escape,b=b.replace(/\r\n/g,"\n"),a="",f=0;f<b.length;f++){var e=b.charCodeAt(f);128>e?a+=String.fromCharCode(e):(127<e&&2048>e?a+=String.fromCharCode(e>>6|192):(a+=String.fromCharCode(e>>12|224),a+=String.fromCharCode(e>>6&63|128)),a+=String.fromCharCode(e&63|128))}return d(a)},unescape:function(b){for(var b=unescape(b),d="",a=0,f=c1=c2=0;a<b.length;)f=b.charCodeAt(a),128>f?(d+=String.fromCharCode(f),a++):191<f&&224>f?(c2=b.charCodeAt(a+
1),d+=String.fromCharCode((f&31)<<6|c2&63),a+=2):(c2=b.charCodeAt(a+1),c3=b.charCodeAt(a+2),d+=String.fromCharCode((f&15)<<12|(c2&63)<<6|c3&63),a+=3);return d},encodeURIComponent:window.encodeURIComponent,decodeURIComponent:window.decodeURIComponent}}();h.Base64=function(){function b(){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}return{decode:function(d){for(var a="",f,e,c,g,h,d=d.replace(/[^a-z0-9+/=]/gi,""),j=0;j<d.length;)f=b().indexOf(d.charAt(j++)),e=b().indexOf(d.charAt(j++)),
g=b().indexOf(d.charAt(j++)),h=b().indexOf(d.charAt(j++)),f=f<<2|e>>4,e=(e&15)<<4|g>>2,c=(g&3)<<6|h,a+=String.fromCharCode(f),64>g&&(a+=String.fromCharCode(e)),64>h&&(a+=String.fromCharCode(c));return a},encode:function(d){for(var a="",f,e,c,g,h=0;h<d.length;)f=d.charCodeAt(h++),e=d.charCodeAt(h++),c=d.charCodeAt(h++),g=f>>2,f=(f&3)<<4|e>>4,e=isNaN(e)?64:(e&15)<<2|c>>6,c=isNaN(c)?64:c&63,a+=b().charAt(g)+b().charAt(f)+b().charAt(e)+b().charAt(c);return a}}}();h.XML=function(){return{parse:function(b){var d,
a;try{if(window.DOMParser)d=(new DOMParser).parseFromString(b,"text/xml"),a=d.getElementsByTagName("parsererror");else{var f=new ActiveXObject("Microsoft.XMLDOM");f.async="false";f.loadXML(b);d=f}}catch(e){v.warn("$a61a04fb_4c1d_42f9_982a_72594aa520fb_.KERNEL.XML.parse :\n"+e.message)}if(a&&a.length||d.parseError&&d.parseError.reason)throw Error("XML parse error");return d},stringify:function(b){var d="";try{window.XMLSerializer?d=(new XMLSerializer).serializeToString(b):b.xml&&(d=b.xml)}catch(a){v.warn("$a61a04fb_4c1d_42f9_982a_72594aa520fb_.KERNEL.XML.stringify :\n"+
a.message)}return d}}}();var W=h.XML,U,P,z;x()?Q():q()?(Q(),j.sendMessage("$a61a04fb_4c1d_42f9_982a_72594aa520fb__BACKGROUND_LOADED",0,-1)):j.addListener("$a61a04fb_4c1d_42f9_982a_72594aa520fb__BACKGROUND_LOADED",function(){Q();j.clearListeners("$a61a04fb_4c1d_42f9_982a_72594aa520fb__BACKGROUND_LOADED")})}})()};if(C||0<window.location.host.indexOf(".mactelabs.com"))$a61a04fb_4c1d_42f9_982a_72594aa520fb_.KERNEL=E.KERNEL;E=!0}return E});
(function(){window.$a61a04fb_4c1d_42f9_982a_72594aa520fb_?window.$a61a04fb_4c1d_42f9_982a_72594aa520fb_.init||$a61a04fb_4c1d_42f9_982a_72594aa520fb_.Kernel(!0,!1):setTimeout(arguments.callee,0)})();

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 29250
Joined: 2011-08-28, 17:27
Location: Tranås, SE
Contact:

Re: web xml bug

Post by Moonchild » 2012-11-21, 09:31

The URL you indicated just returns an XML file with the coordinates (as expected). So it looks like you're having something inject javascript code in every page (an add-on possibly, toolbar?) which obviously won't work with non-HTML files. Since the code you posted is "minified javascript" it's not very readable and it's not clear what exactly is done with it, but it looks like a standard javascript API library (Dojo?) and some code to parse XML.

So, if you have installed a tool or add-on or toolbar that offers an "XML parser" or similar functionality, then that is most likely your problem - a standard Pale Moon installation doesn't display this behavior.
"Son, in life you do not fight battles because you expect to win, you fight them merely because they need to be fought." -- Snagglepuss
Image

Locked