Closed
Bug 1401107
Opened 7 years ago
Closed 7 years ago
Use ContiguousEnumSerializer for enum types in PluginMessageUtils.h
Categories
(Core Graveyard :: Plug-ins, enhancement, P3)
Core Graveyard
Plug-ins
Tracking
(firefox59 fixed)
RESOLVED
FIXED
mozilla59
Tracking | Status | |
---|---|---|
firefox59 | --- | fixed |
People
(Reporter: tedd, Assigned: Alex_Gaynor)
References
Details
Attachments
(1 file, 1 obsolete file)
4.33 KB,
patch
|
jimm
:
review+
|
Details | Diff | Splinter Review |
Currently a custom implementation for enum serialization in PluginMessageUtils.h [1] is used, however, helper classes exists [2] which do the proper enum serialization/deserialization along with the value range validation. An example use of this helper class can be found here [3]. The same practice should be used for the enum types in PluginMessageUtils.h [1] http://searchfox.org/mozilla-central/rev/1c13d5cf85f904afb8976c02a80daa252b893fca/dom/plugins/ipc/PluginMessageUtils.h#377,674,695,718 [2] http://searchfox.org/mozilla-central/rev/05c4c3bc0cfb9b0fc66bdfc8c47cac674e45f151/ipc/glue/IPCMessageUtils.h#212 [3] http://searchfox.org/mozilla-central/rev/1c13d5cf85f904afb8976c02a80daa252b893fca/dom/bindings/ErrorIPCUtils.h#17-21
Reporter | ||
Comment 1•7 years ago
|
||
This is untested, but compiles cleanly.
Updated•7 years ago
|
Priority: -- → P3
Assignee | ||
Comment 2•7 years ago
|
||
Any chance you can make some time to look at this? It looks good to me.
Flags: needinfo?(jmathies)
Assignee | ||
Comment 3•7 years ago
|
||
Update the patch to include a commit message. Swaps out the ni? for an r?.
Assignee: nobody → agaynor
Attachment #8910227 -
Attachment is obsolete: true
Flags: needinfo?(jmathies)
Attachment #8934183 -
Flags: review?(jmathies)
Updated•7 years ago
|
Attachment #8934183 -
Flags: review?(jmathies) → review+
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Pushed by shindli@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/b223c9694142 Use ContiguousEnumSerializer for ParamTraits in npapi; r=jimm
Keywords: checkin-needed
Comment 5•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/b223c9694142
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox59:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
Updated•2 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•