Closed
Bug 818716
Opened 12 years ago
Closed 12 years ago
Remove filename hack from CanAccessNativeAnon
Categories
(Core :: XPConnect, defect)
Core
XPConnect
Tracking
()
RESOLVED
FIXED
mozilla20
People
(Reporter: bholley, Assigned: bholley)
References
Details
Attachments
(1 file)
(deleted),
patch
|
mrbkap
:
review+
|
Details | Diff | Splinter Review |
This is a much better way to do it.
Assignee | ||
Updated•12 years ago
|
Summary: Remove CanAccessNativeAnon and replace it with AccessCheck::callerIsXBL → Remove filename hack from CanAccessNativeAnon
Assignee | ||
Comment 1•12 years ago
|
||
Assignee | ||
Comment 2•12 years ago
|
||
Given the obscene load on the linux32 test boxes, I've cancelled that push and repushed as linux64.
https://tbpl.mozilla.org/?tree=Try&rev=7b06693a78f6
Assignee | ||
Comment 3•12 years ago
|
||
Assignee | ||
Comment 4•12 years ago
|
||
Arg, this was bitrotted by bug 810082. Trying again:
https://tbpl.mozilla.org/?tree=Try&rev=7d8c080fe064
Comment 5•12 years ago
|
||
I'll just leave this here:
3.14 + MOZ_ASSERT(cx = nsContentUtils::GetCurrentJSContext());
Assignee | ||
Comment 6•12 years ago
|
||
(In reply to :Ms2ger from comment #5)
> I'll just leave this here:
>
> 3.14 + MOZ_ASSERT(cx = nsContentUtils::GetCurrentJSContext());
Doh! Thanks Ms2ger. That explains the lone orange. ;-)
Assignee | ||
Comment 7•12 years ago
|
||
Actually, it's still an issue, because sometimes cx is the safe JS context. I'll fix that.
Assignee | ||
Comment 8•12 years ago
|
||
This should do it. Flagging mrbkap for review.
Attachment #691517 -
Flags: review?(mrbkap)
Comment 9•12 years ago
|
||
Comment on attachment 691517 [details] [diff] [review]
Move XBL detection into nsContentUtils and remove filename hack. v3
Review of attachment 691517 [details] [diff] [review]:
-----------------------------------------------------------------
I'm so happy to see this code die.
::: content/base/public/nsContentUtils.h
@@ +199,5 @@
> static JSContext* GetContextFromDocument(nsIDocument *aDocument);
>
> static bool IsCallerChrome();
> + static bool IsCallerXBL();
> +
Nit: nuke the extra newline here.
Attachment #691517 -
Flags: review?(mrbkap) → review+
Assignee | ||
Comment 10•12 years ago
|
||
Comment 11•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
You need to log in
before you can comment on or make changes to this bug.
Description
•