File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -154,6 +154,12 @@ hterr_grabber.TracingListener.prototype = {
154154 let mainDoc = false ;
155155 for ( let i = 0 ; i < gBrowser . browsers . length ; i ++ )
156156 {
157+ if ( gBrowser . browsers [ i ] . contentDocument . readyState === 'complete' )
158+ continue ;
159+ if ( gBrowser . browsers [ i ] . contentDocument . readyState === 'uninitialized' )
160+ continue ;
161+ if ( gBrowser . browsers [ i ] . contentDocument . readyState !== 'loading' && gBrowser . browsers [ i ] . contentDocument . readyState !== 'interactive' )
162+ console . log ( 'Unknown readyState:' , gBrowser . browsers [ i ] . contentDocument . readyState , '(Risking it as something to compare)' ) ;
157163 if ( gBrowser . browsers [ i ] . contentDocument . location . href === request . originalURI . spec )
158164 {
159165 mainDoc = true ;
You can’t perform that action at this time.
0 commit comments