Closed Bug 1657706 Opened 4 years ago Closed 4 years ago

XPIDL compiler generates wrong dependencies for attributes

Categories

(Core :: XPCOM, task)

task

Tracking

()

RESOLVED FIXED
81 Branch
Tracking Status
firefox81 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

Attachments

(1 file)

See https://searchfox.org/mozilla-central/source/__GENERATED__/dist/include/nsIPaper.h

That has a couple of issues:

  • It uses implicit_jscontext, but nothing forward-declares JSContext.
  • It uses Promise, but nothing forward-declares mozilla::dom::Promise.

This happens to compile right now but it could stop to at any time.

Turn needsJSTypes into something a bit more generic (I called it
BuiltinProductions, better names welcome), that we can add more stuff to
if needed.

This right now includes:

  • Whether we have to forward-declare JSContext (for implicit_jscontext).
  • Whether we have to forward-declare Promise.
  • Whether we need to include Value.h (for jsval).

This should make us include js/Value.h slightly less.

Blocks: 1657762
Attachment #9168569 - Attachment description: Bug 1657706 - Correctly forward-declare stuff for webidl attributes. r=nika,mccr8 → Bug 1657706 - Forward-declare JSContext in nsrootidl.idl. r=nika,mccr8
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/91d8a8b29adc Forward-declare JSContext in nsrootidl.idl. r=nika
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 81 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: