Bug 1418558 part 2. Add MOZ_CAN_RUN_SCRIPT annotations to HTMLImageElement methods that call GetPrimaryFrame. r=mystor

MozReview-Commit-ID: GxcrOxjTYDm
This commit is contained in:
Boris Zbarsky 2017-12-05 11:18:16 -05:00
Родитель 723521145b
Коммит eefe007914
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -241,8 +241,8 @@ public:
return GetReferrerPolicyAsEnum();
}
int32_t X();
int32_t Y();
MOZ_CAN_RUN_SCRIPT int32_t X();
MOZ_CAN_RUN_SCRIPT int32_t Y();
void GetLowsrc(nsAString& aLowsrc)
{
GetURIAttr(nsGkAtoms::lowsrc, nullptr, aLowsrc);
@ -376,7 +376,7 @@ protected:
// only that it is valid.
bool TryCreateResponsiveSelector(nsIContent *aSourceNode);
CSSIntPoint GetXY();
MOZ_CAN_RUN_SCRIPT CSSIntPoint GetXY();
virtual JSObject* WrapNode(JSContext *aCx, JS::Handle<JSObject*> aGivenProto) override;
void UpdateFormOwner();