Changeset 179732 in webkit


Ignore:
Timestamp:
Feb 5, 2015 5:24:25 PM (9 years ago)
Author:
ap@apple.com
Message:

Don't pass architecture to development plug-in XPC services
https://bugs.webkit.org/show_bug.cgi?id=141309

Reviewed by Anders Carlsson.

We now have separate services for 32-bit and 64-bit.

  • Shared/EntryPointUtilities/mac/XPCService/XPCServiceMain.Development.mm:

(WebKit::reexec):
(WebKit::XPCServiceEventHandler):

  • UIProcess/Launcher/mac/ProcessLauncherMac.mm:

(WebKit::connectToReExecService):

Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r179727 r179732  
     12015-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
    1162015-02-05  Chris Dumez  <cdumez@apple.com>
    217
  • trunk/Source/WebKit2/Shared/EntryPointUtilities/mac/XPCService/XPCServiceMain.Development.mm

    r174220 r179732  
    4040    bool executableHeap;
    4141    char** environment;
    42     cpu_type_t cpuType;
    4342};
    4443
     
    6564
    6665    posix_spawnattr_setflags(&attr, flags);
    67 
    68     size_t outCount = 0;
    69     posix_spawnattr_setbinpref_np(&attr, 1, &info->cpuType, &outCount);
    7066
    7167    char path[4 * PATH_MAX];
     
    108104
    109105                info->executableHeap = xpc_dictionary_get_bool(event, "executable-heap");
    110                 info->cpuType = (cpu_type_t)xpc_dictionary_get_uint64(event, "architecture");
    111106
    112107                xpc_object_t environmentArray = xpc_dictionary_get_value(event, "environment");
  • trunk/Source/WebKit2/UIProcess/Launcher/mac/ProcessLauncherMac.mm

    r179367 r179732  
    346346    xpc_dictionary_set_string(reExecMessage, "message-name", "re-exec");
    347347
    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    
    351348    xpc_object_t environment = xpc_array_create(0, 0);
    352349    char** environmentPointer = environmentVariables.environmentPointer();
Note: See TracChangeset for help on using the changeset viewer.