Closed
Bug 1550545
Opened 5 years ago
Closed 5 years ago
Some small XPIDL cleanups
Categories
(Core :: XPCOM, defect)
Core
XPCOM
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.
Assignee | ||
Comment 1•5 years ago
|
||
Assignee | ||
Comment 2•5 years ago
|
||
Assignee | ||
Comment 3•5 years ago
|
||
Assignee | ||
Comment 4•5 years ago
|
||
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
Assignee | ||
Comment 6•5 years ago
|
||
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
Comment 8•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/11117f34b30e
https://hg.mozilla.org/mozilla-central/rev/d9144ab0231e
https://hg.mozilla.org/mozilla-central/rev/8095cb5a0964
https://hg.mozilla.org/mozilla-central/rev/e93a97c6e708
https://hg.mozilla.org/mozilla-central/rev/9cc74682a430
Status: NEW → RESOLVED
Closed: 5 years ago
status-firefox68:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
Assignee | ||
Comment 9•5 years ago
|
||
Thanks for the fix!
You need to log in
before you can comment on or make changes to this bug.
Description
•