搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Script keeps crashing

  • 4 回覆
  • 1 有這個問題
  • 1 次檢視
  • 最近回覆由 FredMcD

more options

__d('TimeSlice',['invariant','CircularBuffer','Env','ErrorUtils','Heartbeat','LogBuffer','MutationCountingExecutionObserver','ProfilingCounters','TimeSliceRefCountingWrapper','nullthrows','performanceAbsoluteNow','wrapFunction'],(function a(b,c,d,e,f,g,h){var i=[],j=[],k=1,l=false,m=void 0,n=0,o=1,p=2,q=n,r=new (c('CircularBuffer'))(100),s=0,t=0,u=c('Env').shouldLogCounters,v='stackTraceLimit' in Error,w=[];function x(aa){w.push(aa.name);var ba=m;m=aa;return ba;}function y(aa,ba,ca){j.forEach(function(da){da.onAfterContextEnded(m,ba[da.getBeforeID()],ca);});m=aa;w.pop();}var z={guard:function aa(ba,ca,da){typeof ba==='function'||h(0);typeof ca==='string'||h(0);if(ba.__tsGuarded)return ba;if(!da||!da.root)z.checkCoverage();var ea=void 0;if(l)ea=m;var fa={},ga=function ha(){var ia=void 0,ja=k++;i.forEach(function(qa){var ra=fa[qa.getBeforeID()],sa=qa.onBeforeContextStarted(ja,ra,da);fa[qa.getBeforeID()]=sa;});var ka={contextID:ja,name:ca,isRoot:!l},la=x(ka);if(ea!=null)if(ea.isRoot){ka.indirectParentID=ea.contextID;}else ka.indirectParentID=ea.indirectParentID;var ma=void 0,na=void 0;l=true;try{if(!ka.isRoot){return ba.apply(this,arguments);}else{var oa='TimeSlice'+(ca?': '+ca:);ma=c('performanceAbsoluteNow')();ia=c('ErrorUtils').applyWithGuard(ba,this,arguments,null,oa);na=c('performanceAbsoluteNow')();t+=na-ma;c('Heartbeat').updateExecution(ma,na,ca);return ia;}}finally{if(m.isRoot&&na!=null){var pa=babelHelpers['extends']({begin:ma,end:na,id:m.contextID,parentID:ea&&ea.contextID,indirectParentID:m.indirectParentID,guard:ca,counters:u?c('ProfilingCounters').currentContext():null},da,ba.__SMmeta);c('LogBuffer').write('time_slice',pa);}l=!m.isRoot;y(la,fa,da);}};ga=ga;i.forEach(function(ha){var ia=ha.onNewContextCreated(m,ca,ga,da);fa[ha.getBeforeID()]=ia;});ga.__tsGuarded=true;return ga;},inGuard:function aa(){return l;},checkCoverage:function aa(){var ba=void 0;if(q!==p&&!l){if(v){ba=Error.stackTraceLimit;Error.stackTraceLimit=50;}var ca=new Error('Missing TimeSlice coverage');if(v)Error.stackTraceLimit=ba;ca.type='warn';if(q===o&&Math.random()<s){c('ErrorUtils').reportError(ca);}else if(q===n)c('nullthrows')(r).write(ca);}},setLogging:function aa(ba,ca){if(q!==n)return;s=ca;if(ba){q=o;c('nullthrows')(r).read().forEach(function(da){if(Math.random()<s>1?ea-1:0),ga=1;ga<ea;ga++)fa[ga-1]=arguments[ga];return da.apply(this,fa);},ba,{isContinuation:true});},getGuardNameStack:function aa(){return w.slice();},registerExecutionContextObserver:function aa(ba){var ca=false;for(var da=0;da<i>ba.getBeforeID()){i.splice(da,0,ba);ca=true;break;}if(!ca)i.push(ba);for(var ea=0;ea<j.length;ea++)if(j[ea].getAfterID()>ba.getAfterID()){j.splice(ea,0,ba);return;}j.push(ba);}};z.registerExecutionContextObserver(c('TimeSliceRefCountingWrapper').getObserver());z.registerExecutionContextObserver(c('ProfilingCounters').getObserver());z.registerExecutionContextObserver(c('MutationCountingExecutionObserver'));c('wrapFunction').setWrapper(z.guard,'entry');b.TimeSlice=z;f.exports=z;}),19);

__d('TimeSlice',['invariant','CircularBuffer','Env','ErrorUtils','Heartbeat','LogBuffer','MutationCountingExecutionObserver','ProfilingCounters','TimeSliceRefCountingWrapper','nullthrows','performanceAbsoluteNow','wrapFunction'],(function a(b,c,d,e,f,g,h){var i=[],j=[],k=1,l=false,m=void 0,n=0,o=1,p=2,q=n,r=new (c('CircularBuffer'))(100),s=0,t=0,u=c('Env').shouldLogCounters,v='stackTraceLimit' in Error,w=[];function x(aa){w.push(aa.name);var ba=m;m=aa;return ba;}function y(aa,ba,ca){j.forEach(function(da){da.onAfterContextEnded(m,ba[da.getBeforeID()],ca);});m=aa;w.pop();}var z={guard:function aa(ba,ca,da){typeof ba==='function'||h(0);typeof ca==='string'||h(0);if(ba.__tsGuarded)return ba;if(!da||!da.root)z.checkCoverage();var ea=void 0;if(l)ea=m;var fa={},ga=function ha(){var ia=void 0,ja=k++;i.forEach(function(qa){var ra=fa[qa.getBeforeID()],sa=qa.onBeforeContextStarted(ja,ra,da);fa[qa.getBeforeID()]=sa;});var ka={contextID:ja,name:ca,isRoot:!l},la=x(ka);if(ea!=null)if(ea.isRoot){ka.indirectParentID=ea.contextID;}else ka.indirectParentID=ea.indirectParentID;var ma=void 0,na=void 0;l=true;try{if(!ka.isRoot){return ba.apply(this,arguments);}else{var oa='TimeSlice'+(ca?': '+ca:'');ma=c('performanceAbsoluteNow')();ia=c('ErrorUtils').applyWithGuard(ba,this,arguments,null,oa);na=c('performanceAbsoluteNow')();t+=na-ma;c('Heartbeat').updateExecution(ma,na,ca);return ia;}}finally{if(m.isRoot&&na!=null){var pa=babelHelpers['extends']({begin:ma,end:na,id:m.contextID,parentID:ea&&ea.contextID,indirectParentID:m.indirectParentID,guard:ca,counters:u?c('ProfilingCounters').currentContext():null},da,ba.__SMmeta);c('LogBuffer').write('time_slice',pa);}l=!m.isRoot;y(la,fa,da);}};ga=ga;i.forEach(function(ha){var ia=ha.onNewContextCreated(m,ca,ga,da);fa[ha.getBeforeID()]=ia;});ga.__tsGuarded=true;return ga;},inGuard:function aa(){return l;},checkCoverage:function aa(){var ba=void 0;if(q!==p&&!l){if(v){ba=Error.stackTraceLimit;Error.stackTraceLimit=50;}var ca=new Error('Missing TimeSlice coverage');if(v)Error.stackTraceLimit=ba;ca.type='warn';if(q===o&&Math.random()<s){c('ErrorUtils').reportError(ca);}else if(q===n)c('nullthrows')(r).write(ca);}},setLogging:function aa(ba,ca){if(q!==n)return;s=ca;if(ba){q=o;c('nullthrows')(r).read().forEach(function(da){if(Math.random()<s)c('ErrorUtils').reportError(da);});}else q=p;c('nullthrows')(r).clear();r=undefined;},enableHeartbeat:function aa(){return c('Heartbeat').enableHeartbeat();},disablePageHeartbeat:function aa(){c('Heartbeat').disablePageHeartbeat();},getContext:function aa(){if(!l)return null;return {id:m.contextID,name:m.name};},getTotalTime:function aa(){return t;},getGuardedContinuation:function aa(ba){return z.guard(function ca(da){for(var ea=arguments.length,fa=Array(ea>1?ea-1:0),ga=1;ga<ea;ga++)fa[ga-1]=arguments[ga];return da.apply(this,fa);},ba,{isContinuation:true});},getGuardNameStack:function aa(){return w.slice();},registerExecutionContextObserver:function aa(ba){var ca=false;for(var da=0;da<i.length;da++)if(i[da].getBeforeID()>ba.getBeforeID()){i.splice(da,0,ba);ca=true;break;}if(!ca)i.push(ba);for(var ea=0;ea<j.length;ea++)if(j[ea].getAfterID()>ba.getAfterID()){j.splice(ea,0,ba);return;}j.push(ba);}};z.registerExecutionContextObserver(c('TimeSliceRefCountingWrapper').getObserver());z.registerExecutionContextObserver(c('ProfilingCounters').getObserver());z.registerExecutionContextObserver(c('MutationCountingExecutionObserver'));c('wrapFunction').setWrapper(z.guard,'entry');b.TimeSlice=z;f.exports=z;}),19);

所有回覆 (4)

more options

Please describe how/when this happens.

Hello,

In order to better assist you with your issue please provide us with a screenshot. If you need help to create a screenshot, please see How do I create a screenshot of my problem?

Once you've done this, attach the saved screenshot file to your forum post by clicking the Browse... button below the Post your reply box. This will help us to visualize the problem.

Thank you!

more options

You can try these steps in case of issues with web pages:

You can reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.

  • hold down the Shift key and left-click the Reload button
  • press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
  • press "Command + Shift + R" (Mac)

Clear the cache and remove the cookies from websites that cause problems via the "3-bar" Firefox menu button (Options/Preferences).

"Clear the cache":

  • Firefox/Options/Preferences -> Advanced -> Network -> Cached Web Content: "Clear Now"

"Remove the cookies" from websites that cause problems.

  • Firefox/Options/Preferences -> Privacy -> "Use custom settings for history" -> Cookies: "Show Cookies"

Start Firefox in Safe Mode to check if one of the extensions ("3-bar" menu button or Tools -> Add-ons -> Extensions) or if hardware acceleration is causing the problem.

  • switch to the DEFAULT theme: "3-bar" menu button or Tools -> Add-ons -> Appearance
  • do NOT click the "Refresh Firefox" button on the Safe Mode start window
more options

Hello Please see attached screen shot. it only happens on Facebook

more options

That is a Facebook script. Have you done as cor-el suggested?