mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-17 06:09:19 +00:00
Bug 1124638 - Allow chrome to set Request context. r=baku
--HG-- extra : rebase_source : d47b0304a5558d613ab0a0993dd47da771da5783
This commit is contained in:
parent
6ff2a36a40
commit
058dd6da1c
@ -81,6 +81,13 @@ public:
|
||||
return mContext;
|
||||
}
|
||||
|
||||
// [ChromeOnly]
|
||||
void
|
||||
SetContext(RequestContext aContext)
|
||||
{
|
||||
mContext = aContext;
|
||||
}
|
||||
|
||||
void
|
||||
GetReferrer(nsAString& aReferrer) const
|
||||
{
|
||||
|
@ -24,6 +24,10 @@ interface Request {
|
||||
readonly attribute RequestCache cache;
|
||||
|
||||
[NewObject] Request clone();
|
||||
|
||||
// Bug 1124638 - Allow chrome callers to set the context.
|
||||
[ChromeOnly]
|
||||
void setContext(RequestContext context);
|
||||
};
|
||||
Request implements Body;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user