Closed
Bug 1332017
Opened 8 years ago
Closed 8 years ago
Port bug 1306327 to TB [Build an XPCOM startup API specifically for the Firefox stub which doesn't need the XPCOM glue]
Categories
(Thunderbird :: General, defect)
Thunderbird
General
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 53.0
People
(Reporter: Paenglab, Assigned: Paenglab)
Details
Attachments
(1 file)
10.47 KB,
patch
|
jorgk-bmo
:
review+
|
Details | Diff | Splinter Review |
M-c Moved most of nsBrowserApp.cpp to some glue library (mozglue, probably).
Assignee | ||
Comment 1•8 years ago
|
||
This fixes the bustage and TB starts here normally. All I tested looks okay.
Comment 2•8 years ago
|
||
Wow, that's a huge patch!
I think the trick is to compare browser\app\nsBrowserApp.cpp with mail\app\nsMailApp.cpp.
The differences are minimal (thanks to Aleth keeping it in sync):
< #if !defined(MOZ_WIDGET_COCOA) && !defined(MOZ_WIDGET_ANDROID)
---
> #if !defined(MOZ_WIDGET_COCOA) && !defined(MOZ_WIDGET_ANDROID) \
> && !(defined(XP_LINUX) && defined(MOZ_SANDBOX))
94c95
< #include "../../ipc/contentproc/plugin-container.cpp"
---
> #include "../../mozilla/ipc/contentproc/plugin-container.cpp"
102c103
< #define kDesktopFolder "browser"
---
> #define kDesktopFolder ""
132,134c133,135
< messageBoxW(nullptr, wide_msg, L"Firefox", MB_OK
< | MB_ICONERROR
< | MB_SETFOREGROUND);
---
> messageBoxW(nullptr, wide_msg, L"Thunderbird", MB_OK
> | MB_ICONERROR
> | MB_SETFOREGROUND);
So I will apply you patch and see that I get the same differences.
Stand by ;-)
Comment 3•8 years ago
|
||
OK, with the new nsBrowserApp.cpp and the patch applied, I now see these differences:
< #if !defined(MOZ_WIDGET_COCOA) && !defined(MOZ_WIDGET_ANDROID)
---
> #if !defined(MOZ_WIDGET_COCOA) && !defined(MOZ_WIDGET_ANDROID) \
> && !(defined(XP_LINUX) && defined(MOZ_SANDBOX))
94c95
< #include "../../ipc/contentproc/plugin-container.cpp"
---
> #include "../../mozilla/ipc/contentproc/plugin-container.cpp"
102c103
< #define kDesktopFolder "browser"
---
> #define kDesktopFolder ""
132,134c133,135
< messageBoxW(nullptr, wide_msg, L"Firefox", MB_OK
< | MB_ICONERROR
< | MB_SETFOREGROUND);
---
> messageBoxW(nullptr, wide_msg, L"Thunderbird", MB_OK
> | MB_ICONERROR
> | MB_SETFOREGROUND);
179c180,181
< // Allow firefox.exe to launch XULRunner apps via -app <application.ini>
---
>
> // Allow thunderbird.exe to launch XULRunner apps via -app <application.ini>
Hmm, you changed the comment about XULRunner. Well, OK ;-)
I don't think anything will launch XULRunner, but in a Thunderbird file, the word "thunderbird" is more appropriate.
Review coming up in a second.
Comment 4•8 years ago
|
||
Comment on attachment 8828025 [details] [diff] [review]
noXPCOMglue.patch
Very nice editing work, indeed. And much appreciated.
Richard fixes bustage before it occurs ;-)
You land, right? Please fix the r=jorgk, there is a spurious quote that's not meant to be there in the commit comment.
Attachment #8828025 -
Flags: review?(jorgk) → review+
Assignee | ||
Comment 5•8 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 53.0
Assignee | ||
Comment 6•8 years ago
|
||
I will look in a follow up bug about the differences.
Comment 7•8 years ago
|
||
I don't understand. The differences are wanted and expected. With the new version we have the same differences, so all is good.
The are:
< #if !defined(MOZ_WIDGET_COCOA) && !defined(MOZ_WIDGET_ANDROID)
---
> #if !defined(MOZ_WIDGET_COCOA) && !defined(MOZ_WIDGET_ANDROID) \
> && !(defined(XP_LINUX) && defined(MOZ_SANDBOX))
That's due to different sandboxing in TB.
< #include "../../ipc/contentproc/plugin-container.cpp"
---
> #include "../../mozilla/ipc/contentproc/plugin-container.cpp"
That's due to the different directory structure.
< #define kDesktopFolder "browser"
---
> #define kDesktopFolder ""
No idea :-(
And the remaining ones are about the different name of the app.
So no further action required.
Assignee | ||
Comment 8•8 years ago
|
||
Okay, then it's good. On line 28 is a firefox.exe which could be changed to thunderbird.exe. But this could be shortly be removed as it looks it's for XP. :-)
Comment 9•8 years ago
|
||
Of course this needs porting to im/app/nsMain.cpp and suite/app/nsSuiteApp.cpp.
Maybe my comparison technique will be helpful.
Flags: needinfo?(philip.chee)
Flags: needinfo?(frgrahl)
Flags: needinfo?(aleth)
Comment 10•8 years ago
|
||
Thanks. ewong has done it in bug 133217 for SeaMonkey.
> #define kDesktopFolder
FYI. Firefox puts the exe in a separate browser folder called (surprise) browser. I don't think TB does it so you don't need it.
Flags: needinfo?(frgrahl)
Comment 11•8 years ago
|
||
(In reply to Frank-Rainer Grahl from comment #10)
> Thanks. ewong has done it in bug 133217 for SeaMonkey.
I don't think so ;-( We're far past the million.
Updated•8 years ago
|
Flags: needinfo?(philip.chee)
Comment 12•8 years ago
|
||
Sorry cut and paste error: Bug 1332173
Updated•8 years ago
|
Flags: needinfo?(aleth)
You need to log in
before you can comment on or make changes to this bug.
Description
•