Closed Bug 1185634 Opened 10 years ago Closed 10 years ago

SandboxPrivate shouldn't be public

Categories

(Core :: XPConnect, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla42
Tracking Status
firefox42 --- fixed

People

(Reporter: mccr8, Assigned: mccr8)

Details

Attachments

(2 files)

I came across this comment in SandboxPrivate.h: // This interface is public only because it is used in jsd. // Once jsd is gone this file should be moved back to xpconnect/src. jsd is gone, and it looks like, amazingly, nobody else started depending on it being public, so we live out the dream of bug 820170.
Comment on attachment 8636136 [details] [diff] [review] part 1 - SandboxPrivate shouldn't be public. This didn't really need to be split into two patches, but I was worried about whether a git file move plus a change would be properly picked up as a file move by hg. This builds locally for me, and I audited to check that only xpcprivate.h includes this header, so that should be enough.
Attachment #8636136 - Flags: review?(gkrizsanits)
Attachment #8636137 - Flags: review?(gkrizsanits)
Comment on attachment 8636136 [details] [diff] [review] part 1 - SandboxPrivate shouldn't be public. Review of attachment 8636136 [details] [diff] [review]: ----------------------------------------------------------------- Thank you for doing this, I should have done this ages ago... if you have some more time, could you also move the file itself from xpconnect/public to xpconnect/src?
Attachment #8636136 - Flags: review?(gkrizsanits) → review+
Attachment #8636137 - Flags: review?(gkrizsanits) → review+
(In reply to Gabor Krizsanits [:krizsa :gabor] from comment #4) > Thank you for doing this, I should have done this ages ago... if you have > some more time, could you also move the file itself from xpconnect/public to > xpconnect/src? The patch does that. Splinter just doesn't show it for some reason: diff --git a/js/xpconnect/public/SandboxPrivate.h b/js/xpconnect/src/SandboxPrivate.h similarity index 100% rename from js/xpconnect/public/SandboxPrivate.h rename to js/xpconnect/src/SandboxPrivate.h
(In reply to Andrew McCreight [:mccr8] from comment #5) > The patch does that. Splinter just doesn't show it for some reason: I should have mentioned that, because it confused me, too. :) As I said above, this compiles locally for me, and it is just a file move, so it shouldn't need a try run.
Keywords: checkin-needed
(In reply to Andrew McCreight [:mccr8] from comment #6) > > The patch does that. Splinter just doesn't show it for some reason: Ah yeah, it happened before yet I fell for it again :)
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: