Open Bug 1326375 Opened 8 years ago Updated 8 months ago

loadStartPage of mailWindow.js is better to use try{if(location.href!=uri.spec)location.href=uri.spec;}catch(e) instead of try{location.href!=uri.spec;}catch(e) as done in bug 545955 on ClearMessagePane

Categories

(Thunderbird :: Mail Window Front End, defect)

45 Branch
defect

Tracking

(Not tracked)

People

(Reporter: World, Unassigned)

References

Details

Attachments

(1 obsolete file)

+++ This bug was initially created as a clone of Bug #1326371 +++ loadStartPage of mailWindow.js is better to use try{if(location.href!=uri.spec)location.href=uri.spec;}catch(e) instead of try{location.href!=uri.spec;}catch(e) as done in bug 545955 on ClearMessagePane. This bug and bug 1326371 were found during analysis of bug 1083994 for ClearMessagePane which sets new-url of browser(id=messagepane) to about:blank using location.href=about:blank. Because any location.href=xxx request by chrome code to browser(id=messagepane) currently won't wait for load event of previous request, issue like bug 1326371 may be produced due to contension. Such contension or double-request(excess unload/load) is better reduced as much as possible by if(location.href!=NewURI) unless "wait for load event of previous request" like one will be implemented. loadStartPage if (startpage) { try { let uri = Services.uriFixup.createFixupURI(startpage, 0); GetMessagePaneFrame().location.href = uri.spec; } catch (e) { Components.utils.reportError(e); } } else { Note: Exception occurs here in bug 1083994, even though pretty simple location.href=about:blank GetMessagePaneFrame().location.href = "about:blank"; } }
See Also: → 1083994
Flags: needinfo?(corpledinc2015)
Flags: needinfo?(corpledinc2015)
Severity: normal → S3
Attachment #9381539 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: