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)

enhancement

Tracking

(firefox59 fixed)

RESOLVED FIXED
mozilla59
Tracking Status
firefox59 --- fixed

People

(Reporter: tedd, Assigned: Alex_Gaynor)

References

Details

Attachments

(1 file, 1 obsolete file)

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
This is untested, but compiles cleanly.
Priority: -- → P3
Any chance you can make some time to look at this? It looks good to me.
Flags: needinfo?(jmathies)
Attached patch 1401107.patchSplinter Review
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)
Attachment #8934183 - Flags: review?(jmathies) → review+
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
https://hg.mozilla.org/mozilla-central/rev/b223c9694142
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: