Changeset 207807 in webkit


Ignore:
Timestamp:
Oct 24, 2016 10:22:40 PM (8 years ago)
Author:
mitz@apple.com
Message:

REGRESSION (r206410): Sandbox violations beneath WebProcessProxy::platformIsBeingDebugged
https://bugs.webkit.org/show_bug.cgi?id=163879
<rdar://problem/28728735>

Reviewed by Darin Adler.

  • UIProcess/Cocoa/WebProcessProxyCocoa.mm:

(WebKit::WebProcessProxy::platformIsBeingDebugged): Check if the current process, which is

the UI process, is sandboxed before trying to find out if the Web process is being
debugged.

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r207769 r207807  
     12016-10-24  Dan Bernstein  <mitz@apple.com>
     2
     3        REGRESSION (r206410): Sandbox violations beneath WebProcessProxy::platformIsBeingDebugged
     4        https://bugs.webkit.org/show_bug.cgi?id=163879
     5        <rdar://problem/28728735>
     6
     7        Reviewed by Darin Adler.
     8
     9        * UIProcess/Cocoa/WebProcessProxyCocoa.mm:
     10        (WebKit::WebProcessProxy::platformIsBeingDebugged): Check if the current process, which is
     11          the UI process, is sandboxed before trying to find out if the Web process is being
     12          debugged.
     13
    1142016-10-21  Alex Christensen  <achristensen@webkit.org>
    215
  • trunk/Source/WebKit2/UIProcess/Cocoa/WebProcessProxyCocoa.mm

    r206410 r207807  
    2828
    2929#import "ObjCObjectGraph.h"
     30#import "SandboxUtilities.h"
    3031#import "WKBrowsingContextControllerInternal.h"
    3132#import "WKBrowsingContextHandleInternal.h"
     
    124125bool WebProcessProxy::platformIsBeingDebugged() const
    125126{
     127    // If the UI process is sandboxed, it cannot find out whether other processes are being debugged.
     128    if (processIsSandboxed(getpid()))
     129        return false;
     130
    126131    struct kinfo_proc info;
    127132    int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, processIdentifier() };
Note: See TracChangeset for help on using the changeset viewer.