Closed Bug 1418558 Opened 8 years ago Closed 8 years ago

Add MOZ_CAN_RUN_SCRIPT annotations to some callers of Element::GetPrimaryFrame

Categories

(Core :: DOM: Core & HTML, enhancement, P2)

53 Branch
enhancement

Tracking

()

RESOLVED FIXED
mozilla59
Tracking Status
firefox59 --- fixed

People

(Reporter: bzbarsky, Assigned: bzbarsky)

References

(Blocks 1 open bug)

Details

Attachments

(4 files, 1 obsolete file)

No description provided.
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
Attachment #8929688 - Attachment is obsolete: true
Attachment #8929688 - Flags: review?(nika)
Comment on attachment 8929764 [details] [diff] [review] part 3. Add MOZ_CAN_RUN_SCRIPT annotations to nsGenericHTMLElement methods that can call GetPrimaryFrame Review of attachment 8929764 [details] [diff] [review]: ----------------------------------------------------------------- ::: mfbt/StaticAnalysisFunctions.h @@ +53,5 @@ > > #else > > #define MOZ_CHECK_ASSERT_ASSIGNMENT(expr) (!!(expr)) > +#define MOZ_KnownLive(expr) (expr) I think it might be nice to pull this out into a separate patch.
Attachment #8929764 - Flags: review?(nika) → review+
Attachment #8929689 - Flags: review?(nika) → review+
Attachment #8929687 - Flags: review?(nika) → review+
Attachment #8929686 - Flags: review?(nika) → review+
> I think it might be nice to pull this out into a separate patch. Will do.
Priority: -- → P2
Pushed by bzbarsky@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/7378e5b6c059 part 1. Add MOZ_CAN_RUN_SCRIPT annotations to most Element methods that call GetPrimaryFrame. r=mystor https://hg.mozilla.org/integration/mozilla-inbound/rev/79f3d55aba27 part 2. Add MOZ_CAN_RUN_SCRIPT annotations to HTMLImageElement methods that call GetPrimaryFrame. r=mystor https://hg.mozilla.org/integration/mozilla-inbound/rev/3892362e7a24 part 3. Make MOZ_KnownLive compile even when not doing a static analysis build. r=mystor https://hg.mozilla.org/integration/mozilla-inbound/rev/3247630382cb part 4. Add MOZ_CAN_RUN_SCRIPT annotations to nsGenericHTMLElement methods that can call GetPrimaryFrame. r=mystor
Blocks: 1429531
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: