Closed Bug 334208 Opened 18 years ago Closed 14 years ago

EndDocumentLoad observer not called if tab is not selected

Categories

(Firefox :: Tabbed Browser, defect)

defect
Not set
major

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: ian.bugeja, Unassigned)

Details

(Whiteboard: [CLOSEME 2010-11-15])

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2

If an observer is registered for EndDocumentLoad and the tab is not focused while it ends the loading process the observer is not called

Reproducible: Always

Steps to Reproduce:
//use below code
function PageObserver() {}

PageObserver.prototype.observe = function (oSubject, sMessage, sContextUrl) 
{ alert("page loaded"); }
var pobserve = new PageObserver();

var oObserverService = Components.classes["@mozilla.org/observer-service;1"].getService();
	oObserverService = oObserverService.QueryInterface(Components.interfaces.nsIObserverService);
oObserverService.addObserver(pobserve, "EndDocumentLoad", false);

Actual Results:  
the alert box "page loaded" only appears when the tab is focused at the moment the  documents end loading

Expected Results:  
"page loaded" message should appear always
Summary: observer not called if tab is not selected → EndDocumentLoad observer not called if tab is not selected
This bug was reported using Firefox 3.0 or older, which is no longer supported. The bug has also not been changed in over 500 days and is still in UNCO.
Reporter, please retest this bug in Firefox 3.6.10 or later using a fresh profile, http://support.mozilla.com/en-US/kb/managing+profiles. If you still see this problem, please update the bug. If you no longer see the bug, please set the resolution to RESOLVED, WORKSFORME.

This is a mass search of unconfirmed bugs that have no activity on them, so if you feel a bug was marked in error, just remove the CLOSEME comment in the whiteboard within the next month.
Whiteboard: [CLOSEME 2010-11-15]
No reply, INCOMPLETE. Please retest with Firefox 3.6.12 or later and a new profile (http://support.mozilla.com/kb/Managing+profiles). If you continue to see this issue with the newest firefox and a new profile, then please comment on this bug.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.