Changeset 179732 in webkit
- Timestamp:
- Feb 5, 2015 5:24:25 PM (9 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r179727 r179732 1 2015-02-05 Alexey Proskuryakov <ap@apple.com> 2 3 Don't pass architecture to development plug-in XPC services 4 https://bugs.webkit.org/show_bug.cgi?id=141309 5 6 Reviewed by Anders Carlsson. 7 8 We now have separate services for 32-bit and 64-bit. 9 10 * Shared/EntryPointUtilities/mac/XPCService/XPCServiceMain.Development.mm: 11 (WebKit::reexec): 12 (WebKit::XPCServiceEventHandler): 13 * UIProcess/Launcher/mac/ProcessLauncherMac.mm: 14 (WebKit::connectToReExecService): 15 1 16 2015-02-05 Chris Dumez <cdumez@apple.com> 2 17 -
trunk/Source/WebKit2/Shared/EntryPointUtilities/mac/XPCService/XPCServiceMain.Development.mm
r174220 r179732 40 40 bool executableHeap; 41 41 char** environment; 42 cpu_type_t cpuType;43 42 }; 44 43 … … 65 64 66 65 posix_spawnattr_setflags(&attr, flags); 67 68 size_t outCount = 0;69 posix_spawnattr_setbinpref_np(&attr, 1, &info->cpuType, &outCount);70 66 71 67 char path[4 * PATH_MAX]; … … 108 104 109 105 info->executableHeap = xpc_dictionary_get_bool(event, "executable-heap"); 110 info->cpuType = (cpu_type_t)xpc_dictionary_get_uint64(event, "architecture");111 106 112 107 xpc_object_t environmentArray = xpc_dictionary_get_value(event, "environment"); -
trunk/Source/WebKit2/UIProcess/Launcher/mac/ProcessLauncherMac.mm
r179367 r179732 346 346 xpc_dictionary_set_string(reExecMessage, "message-name", "re-exec"); 347 347 348 cpu_type_t architecture = launchOptions.architecture == ProcessLauncher::LaunchOptions::MatchCurrentArchitecture ? _NSGetMachExecuteHeader()->cputype : launchOptions.architecture;349 xpc_dictionary_set_uint64(reExecMessage, "architecture", (uint64_t)architecture);350 351 348 xpc_object_t environment = xpc_array_create(0, 0); 352 349 char** environmentPointer = environmentVariables.environmentPointer();
Note: See TracChangeset
for help on using the changeset viewer.