Closed
Bug 662341
Opened 13 years ago
Closed 6 years ago
Better method signatures for [noscript, notxpcom] attributes (actually use return values)
Categories
(Core :: XPCOM, defect)
Tracking
()
RESOLVED
FIXED
mozilla65
Tracking | Status | |
---|---|---|
firefox65 | --- | fixed |
People
(Reporter: bzbarsky, Assigned: bzbarsky)
References
Details
Attachments
(1 file)
Recently I reviewed a patch which added some: [noscript, notxpcom] readonly attribute TimeStamp foo; where TimeStamp is a mozilla::TimeStamp but the C++ generated header had a function with an out param instead of just returning a TimeStamp... It would be really nice if we could use a return value here somehow.
Comment 1•13 years ago
|
||
The "normal" way to do this is: [noscript, notxpcom] TimeStamp getFood();
Assignee | ||
Comment 2•13 years ago
|
||
Right; I'm just asking for this to Just Work the other way instead of having to have weird-looking IDL...
Assignee | ||
Comment 3•6 years ago
|
||
At this point using [notxpcom] on an attribute gives an error at IDL-processing time. I'm just going to fix this, so people don't have to figure out the hard way that they need a method (or two, if not readonly) instead of an attribute.
Assignee: nobody → bzbarsky
Assignee | ||
Comment 4•6 years ago
|
||
Pushed by bzbarsky@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5beaad8a185b Add support for [notxpcom] annotations on xpidl attributes. r=nika
Comment 6•6 years ago
|
||
Backed out for linting failure Push with failure: https://treeherder.mozilla.org/#/jobs?repo=autoland&revision=5beaad8a185bf4d01dd729d53e31429c8cdebf27 Failure log: https://treeherder.mozilla.org/logviewer.html#?job_id=211882933&repo=autoland&lineNumber=293 Backout: https://hg.mozilla.org/integration/autoland/rev/479f5e79077c06df25227e8628c29191c1e91ae6
Flags: needinfo?(bzbarsky)
Comment 7•6 years ago
|
||
Correct backout link: https://hg.mozilla.org/integration/autoland/rev/5a4abcac5a0beffbc3f7705332afd1696d154db0
Assignee | ||
Updated•6 years ago
|
Flags: needinfo?(bzbarsky)
Pushed by bzbarsky@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/95393acee0ea Add support for [notxpcom] annotations on xpidl attributes. r=nika
Comment 9•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/95393acee0ea
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox65:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
You need to log in
before you can comment on or make changes to this bug.
Description
•