зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1250185 part 2. Remove some JSContext stuff that's no longer needed in Notification code. r=khuey
This commit is contained in:
Родитель
e715be26bd
Коммит
015f8c141f
|
@ -1095,9 +1095,9 @@ Notification::ConstructFromFields(
|
|||
options.mTag = aTag;
|
||||
options.mIcon = aIcon;
|
||||
RefPtr<Notification> notification = CreateInternal(aGlobal, aID, aTitle,
|
||||
options);
|
||||
options);
|
||||
|
||||
notification->InitFromBase64(jsapi.cx(), aData, aRv);
|
||||
notification->InitFromBase64(aData, aRv);
|
||||
if (NS_WARN_IF(aRv.Failed())) {
|
||||
return nullptr;
|
||||
}
|
||||
|
@ -2385,8 +2385,7 @@ Notification::InitFromJSVal(JSContext* aCx, JS::Handle<JS::Value> aData,
|
|||
dataObjectContainer->GetDataAsBase64(mDataAsBase64);
|
||||
}
|
||||
|
||||
void Notification::InitFromBase64(JSContext* aCx, const nsAString& aData,
|
||||
ErrorResult& aRv)
|
||||
void Notification::InitFromBase64(const nsAString& aData, ErrorResult& aRv)
|
||||
{
|
||||
if (!mDataAsBase64.IsEmpty() || aData.IsEmpty()) {
|
||||
return;
|
||||
|
|
|
@ -279,7 +279,7 @@ public:
|
|||
|
||||
void InitFromJSVal(JSContext* aCx, JS::Handle<JS::Value> aData, ErrorResult& aRv);
|
||||
|
||||
void InitFromBase64(JSContext* aCx, const nsAString& aData, ErrorResult& aRv);
|
||||
void InitFromBase64(const nsAString& aData, ErrorResult& aRv);
|
||||
|
||||
void AssertIsOnTargetThread() const
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче