@@ -58,6 +58,45 @@ index f042cc1081850ac60e329b70b5569f8b97d4e4dc..65bcff9b41b9471ef1427e3ea330481c
58
58
/**
59
59
* Return XPCOM wrapper for the internal accessible.
60
60
*/
61
+ diff --git a/browser/app/winlauncher/LauncherProcessWin.cpp b/browser/app/winlauncher/LauncherProcessWin.cpp
62
+ index 7a8b4a621dd4056dfde1f200c62cf629415cc6a4..e600b2cb78a769a460d27104e1dcb805dbd11ed7 100644
63
+ --- a/browser/app/winlauncher/LauncherProcessWin.cpp
64
+ +++ b/browser/app/winlauncher/LauncherProcessWin.cpp
65
+ @@ -21,6 +21,7 @@
66
+ #include "mozilla/WinHeaderOnlyUtils.h"
67
+ #include "nsWindowsHelpers.h"
68
+
69
+ + #include <io.h>
70
+ #include <windows.h>
71
+ #include <processthreadsapi.h>
72
+
73
+ @@ -322,8 +323,25 @@ Maybe<int> LauncherMain(int& argc, wchar_t* argv[],
74
+ HANDLE stdHandles[] = {::GetStdHandle(STD_INPUT_HANDLE),
75
+ ::GetStdHandle(STD_OUTPUT_HANDLE),
76
+ ::GetStdHandle(STD_ERROR_HANDLE)};
77
+ -
78
+ attrs.AddInheritableHandles(stdHandles);
79
+ + // Playwright pipe installation.
80
+ + bool hasJugglerPipe =
81
+ + mozilla::CheckArg(argc, argv, L"juggler-pipe",
82
+ + static_cast<const wchar_t**>(nullptr),
83
+ + mozilla::CheckArgFlag::None) == mozilla::ARG_FOUND;
84
+ + if (hasJugglerPipe && !mozilla::EnvHasValue("PW_PIPE_READ")) {
85
+ + intptr_t stdio3 = _get_osfhandle(3);
86
+ + intptr_t stdio4 = _get_osfhandle(4);
87
+ + CHAR stdio3str[20];
88
+ + CHAR stdio4str[20];
89
+ + itoa(stdio3, stdio3str, 10);
90
+ + itoa(stdio4, stdio4str, 10);
91
+ + SetEnvironmentVariable("PW_PIPE_READ", stdio3str);
92
+ + SetEnvironmentVariable("PW_PIPE_WRITE", stdio4str);
93
+ + HANDLE pipeHandles[] = {reinterpret_cast<HANDLE>(stdio3),
94
+ + reinterpret_cast<HANDLE>(stdio4)};
95
+ + attrs.AddInheritableHandles(pipeHandles);
96
+ + }
97
+
98
+ DWORD creationFlags = CREATE_SUSPENDED | CREATE_UNICODE_ENVIRONMENT;
99
+
61
100
diff --git a/browser/installer/allowed-dupes.mn b/browser/installer/allowed-dupes.mn
62
101
index 1e583f9fb014129d791d25b64a727021d6848105..6a91ef0bd0796abf99d8fd54ff6aede94aeb0807 100644
63
102
--- a/browser/installer/allowed-dupes.mn
0 commit comments