Closed Bug 1550545 Opened 5 years ago Closed 5 years ago

Some small XPIDL cleanups

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla68
Tracking Status
firefox68 --- fixed

People

(Reporter: mccr8, Assigned: mccr8)

References

Details

Attachments

(4 files)

  • Most of the isScriptable methods in xpidl.py are unused.
  • mk_method unbundles some fields of attributes/methods which makes the code messy.
  • Instead of storing notxpcom and hidden in XPT, we could just fold notxpcom into hidden, which makes things a little simpler.
  • We store a scriptable flag for interfaces in XPT, but we only generate XPT for scriptable interfaces, so it isn't read anywhere.

We never emit an XPT for an interface that is not scriptable, so this
flag is never used.

Pushed by amccreight@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/11117f34b30e
part 1 - Remove the unused isScriptable methods. r=nika
https://hg.mozilla.org/integration/autoland/rev/d9144ab0231e
part 2 - Pass arguments to mk_method bundled up. r=nika
https://hg.mozilla.org/integration/autoland/rev/8095cb5a0964
part 3 - Move the logic for notxpcom implying hidden into jsonxpt. r=nika
https://hg.mozilla.org/integration/autoland/rev/e93a97c6e708
part 4 - Don't generate the scriptable flag in XPT files. r=nika

Hmm looks like we run linters on Python now, so I'm going to turn the tree orange because of an extra blank line.

Pushed by cbrindusan@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9cc74682a430
Fix linting failure. r=nbeleuzu CLOSED TREE

Thanks for the fix!

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: