Closed Bug 961757 Opened 8 years ago Closed 8 years ago
Window sandbox no longer building when MOZ
_CONTENT _SANDBOX is defined due to include order
The Windows sandbox works with our code by including the chromium sandbox, and overriding some includes to first add/modify some functionality. For this to work it includes a shim directory before the local include directory. This used to work before we included the LOCAL_INCLUDES before the current directory, but no longer does. This bug is to fix that build problem now that the current directory is included first.
Comment on attachment 8362564 [details] [diff] [review] bug961757_shim_includes.diff Review of attachment 8362564 [details] [diff] [review]: ----------------------------------------------------------------- I'm reluctant do add global build system hacks for one specific use case. Let's step back a little. Looking at security/sandbox/base/shim, there's only one file that overlaps with security/sandbox: base/strings/string_piece.h. None of the other files overlap. All of them, though, are included from some code in security/sandbox.. but the paths for histogram.h and sparse_histogram.h are wrong: they are in security/sandbox/base/shim/metrics, and they are #included as base/metrics/*, so there's no way those includes work. And, as a matter of fact, the two files that include those are not built. Now, after writing all this, and considering writing more, i realize that there's a simple fix for this: move security/sandbox/base to security/sandbox/chromium/base. Then add shim and chromium in the right order in LOCAL_INCLUDES (and change the path to source files in moz.build). While doing that, you might as well move security/sandbox/base/shim to security/sandbox/shim.
Implemented review comments, will request review after it passes try tests. One note is I had to put it in a directory called chromium/sandbox instead of just chromium because some includes specify sandbox/base
Attachment #8362564 - Attachment is obsolete: true
Thanks for the previous review, implemented review comments.
Attachment #8365452 - Flags: review?(mh+mozilla) → review+
Target Milestone: --- → mozilla29
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.