Closed
Bug 524220
Opened 15 years ago
Closed 15 years ago
IPDL: Add a |nullable| type qualifier for actor params/returns
Categories
(Core :: IPC, enhancement)
Core
IPC
Tracking
()
RESOLVED
FIXED
People
(Reporter: cjones, Assigned: cjones)
References
Details
Attachments
(1 file)
35.74 KB,
patch
|
bent.mozilla
:
review+
|
Details | Diff | Splinter Review |
Currently in IPDL, any message can pass in a NULL actor value, but I'm not sure this is desirable. I think the instead we should make actor nullability part of IPDL's type system. So one could say
Msg(nullable FooActor foo) return (BarActor bar);
and C++ would be allowed to pass a NULL |foo|, but not a NULL |bar|.
There's also a regression caused by bug 506171 where invalid actor IDs silently result in NULL actors being passed to C++. Invalid actor IDs should always cause a loud error. I'll fix that as part of this bug.
Assignee | ||
Comment 1•15 years ago
|
||
I hear the places we're using NULL actors now are
o PPluginScriptableObject:Variant
o PPluginInstance::PBrowserStream `notifyData`
pretty much anywhere in npruntime where we use PPluginScriptableObject
Assignee | ||
Comment 3•15 years ago
|
||
Attachment #409201 -
Flags: review?(bent.mozilla)
Comment on attachment 409201 [details] [diff] [review]
v1
Looks good, let's get this in, stat.
Attachment #409201 -
Flags: review?(bent.mozilla) → review+
Assignee | ||
Comment 5•15 years ago
|
||
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•