[Webkit-unassigned] [Bug 136473] Avoid warning if a process does not have access to com.apple.webinspector

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 3 11:16:43 PDT 2014


https://bugs.webkit.org/show_bug.cgi?id=136473





--- Comment #4 from Joseph Pecoraro <joepeck at webkit.org>  2014-09-03 11:16:48 PST ---
(In reply to comment #3)
> (From update of attachment 237539 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=237539&action=review
> 
> > Source/JavaScriptCore/inspector/remote/RemoteInspector.mm:59
> > +#if __has_include(<sandbox/private.h>)
> > +#import <sandbox/private.h>
> > +#else
> > +enum sandbox_filter_type {
> > +    SANDBOX_FILTER_GLOBAL_NAME,
> > +};
> > +extern "C" {
> > +int sandbox_check(pid_t, const char *operation, enum sandbox_filter_type, ...);
> > +}
> > +#endif
> 
> Sandbox SPIs seem like a prime target for the new technique Maciej is suggesting, as we use them in many places. Instead of declaring the SPIs in each .mm file, they would go into SandboxSPI.h.

I suppose I could. This would be the first in JavaScriptCore so I opted for the easier path.

> In any case, sandbox_check declaration should not be inside the #else.

I don't follow. Why not?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list