Open MoralCode opened 3 months ago
dove pretty deep with this. seems like Proton is doing something... different.... with how they handle link clicks on that confirm button of their modal (seems like theres security reasons behind it). Theyre essentially constructing an <a>
tag in JS and calling .click() on that, so its hard to intercept.
Also they seem to be using React or something, which apparrently doesnt have a devtools extension for thunderbird so thats fun.
it appears as though the Proton's webapp is going all blank screen because it tries to access Services.dirsvc.get("ProfD", Ci.nsIFile);
(seems to be something for getting the profile folder, specifially the line of code affected is this._storeFile = Services.dirsvc.get("ProfD", Ci.nsIFile);
, which is inside a double-nested try catch) but for some reason it fails with the error NS_ERROR_FILE_NOT_FOUND: Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIProcess.init]
at the time proton goes to use it (but seemingly running that in the console at other times seems to return a result just fine)
Reproduction steps
Expected behavior: the addon will detect the link being opened and trigger the system link handler to open the link in the users default browser
Actual Behavior: The addon tab seems to go blank and freeze up
Proton Calendar Toolbar Button 1.1 Thunderbird 115.11.0 (64-bit)