Closed
Bug 540775
Opened 15 years ago
Closed 15 years ago
[OOPP] Implement NPP_SetValue for NPNVprivateModeBool (test_privatemode.xul broken)
Categories
(Core Graveyard :: Plug-ins, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: benjamin, Assigned: benjamin)
References
Details
Attachments
(1 file)
5.89 KB,
patch
|
cjones
:
review+
|
Details | Diff | Splinter Review |
Implement NPP_SetValue for NPNVprivateModeBool
Assignee | ||
Comment 1•15 years ago
|
||
Attachment #422474 -
Flags: review?(jones.chris.g)
Comment on attachment 422474 [details] [diff] [review] fix test_privatemode.xul, rev. 1 >diff --git a/dom/plugins/PluginInstanceChild.cpp b/dom/plugins/PluginInstanceChild.cpp >--- a/dom/plugins/PluginInstanceChild.cpp >+++ b/dom/plugins/PluginInstanceChild.cpp > bool >+PluginInstanceChild::AnswerNPP_SetValue_NPNVprivateModeBool(const bool& value, >+ NPError* result) >+{ >+ NPBool v = value; >+ *result = mPluginIface->setvalue(GetNPP(), NPNVprivateModeBool, &v); >+ return true; >+} >+ As we discussed on IRC, the |NPBool| values shouldn't be put on the stack and have their addresses handed to plugins, because flash (at least) treats them as machine-word sized even though they're defined to be a single byte. r+ with that fixed.
Attachment #422474 -
Flags: review?(jones.chris.g) → review+
Assignee | ||
Comment 3•15 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/ade5875de1b8
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
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
•