Open Bug 1777826 Opened 2 years ago Updated 5 months ago

Console Error during Import: Uncaught TypeError: startController is undefined

Categories

(MailNews Core :: Import, defect, P2)

Thunderbird 102

Tracking

(Not tracked)

People

(Reporter: thomas8, Unassigned)

References

(Blocks 2 open bugs)

Details

This occured while testing for the latest bugs I filed. 102.0 (64-bit), win10
And why does aboutImport also have a step "toExport"??

about:addressbook : Unable to run script because scripts are blocked internally. (Typically occurs 30 times en block)

Uncaught TypeError: startController is undefined
restart chrome://messenger/content/aboutImport.js:1491
showTab chrome://messenger/content/aboutImport.js:1450
toImport chrome://messenger/content/mailCore.js:549
setTimeout handler*toImport chrome://messenger/content/mailCore.js:548
toExport chrome://messenger/content/mailCore.js:563
oncommand chrome://messenger/content/messenger.xhtml:1
aboutImport.js:1491:3

Summary: Console Error during Import → Console Error during Import: Uncaught TypeError: startController is undefined
Blocks: tb102found
Component: General → Feed Reader
Product: Thunderbird → MailNews Core

I believe the reason this happens is https://searchfox.org/comm-central/rev/4326871adc58e1f014f000fea10b265e5d9c48bb/mail/base/content/mailCore.js#546-547 - we have to try to make the about import tab show the correct thing twice when trying to open it.

Can someone enlighten me why this is now in Feed Reader component?

Component: Feed Reader → Import
Flags: needinfo?(martin)

The issue isn't that the listener runs more than once, the issue is that the code in mail core I linked above calls showTab in the import tab's context before the dom content loaded listener ran.

But sure, adding a once to that listener should be fine, it's a dom content loaded listener after all.

Flags: needinfo?(martin)
Depends on: 1901695
Blocks: 1901695
No longer depends on: 1901695
You need to log in before you can comment on or make changes to this bug.