Closed Bug 749795 Opened 12 years ago Closed 12 years ago

Getter for NPNVprivateModeBool is broken with OOPP

Categories

(Core Graveyard :: Plug-ins, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla15

People

(Reporter: jdm, Assigned: jdm)

References

Details

Attachments

(1 file)

I'm glad I decided to add a test for bug 748752, since it exposed that the code is completely broken. Retrieving the document (http://mxr.mozilla.org/mozilla-central/source/dom/plugins/base/nsNPAPIPlugin.cpp#2139) fails, since npp is null (http://mxr.mozilla.org/mozilla-central/source/dom/plugins/ipc/PluginModuleParent.cpp#978). Josh, what's the correct way to fix this?
Blocks: PBnGen, 748752
It looks like the privateModeBool handling will need to move to PluginInstance*, similar to pluginElementNPObject and pluginWindowNPObject.
That was easy. The test now passes.
Attachment #619505 - Flags: review?(joshmoz)
Comment on attachment 619505 [details] [diff] [review]
Use neglected code that properly obtains private browsing mode in plugins.

Review of attachment 619505 [details] [diff] [review]:
-----------------------------------------------------------------

Did you intend to include the change to test_domstorage_aboutpages.js?
Attachment #619505 - Flags: review?(joshmoz) → review+
Nein. I'll take that out when landing.
http://hg.mozilla.org/integration/mozilla-inbound/rev/52abbd73ec2d
Assignee: nobody → josh
Flags: in-testsuite+
Target Milestone: --- → mozilla15
https://hg.mozilla.org/mozilla-central/rev/52abbd73ec2d
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
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: