Open Bug 1761577 Opened 3 years ago Updated 2 years ago

Accessing MOZ_KNOWN_LIVE member of MOZ_KNOWN_LIVE member should be allowed in MOZ_CAN_RUN_SCRIPT

Categories

(Developer Infrastructure :: Source Code Analysis, enhancement, P2)

enhancement

Tracking

(Not tracked)

People

(Reporter: saschanaz, Unassigned)

References

Details

MOZ_CAN_RUN_SCRIPT void foo(Baz* foo) {}

struct Baz final {};
struct Bar final {
  MOZ_KNOWN_LIVE RefPtr<Baz> mBaz;
};
struct Foo final {
  MOZ_KNOWN_LIVE RefPtr<Bar> mBar;
  MOZ_CAN_RUN_SCRIPT void Foo() {
    foo(mBar->mBaz);
  }
};

This should be allowed.

Severity: -- → S2
Type: task → enhancement
Priority: -- → P2
Product: Firefox Build System → Developer Infrastructure
See Also: → 1840400
You need to log in before you can comment on or make changes to this bug.