Closed Bug 797100 Opened 12 years ago Closed 12 years ago

replace internal usage of nsIPluginInstanceOwner with nsPluginInstanceOwner

Categories

(Core Graveyard :: Plug-ins, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla18

People

(Reporter: jaas, Assigned: jaas)

Details

Attachments

(1 file, 2 obsolete files)

Attached patch fix v1.0 (obsolete) — Splinter Review
Replacing internal usage of nsIPluginInstanceOwner with nsPluginInstanceOwner will make our code cleaner and reduce unnecessary QIs and Addref/Release pairs.
Attachment #667134 - Flags: review?(jst)
Comment on attachment 667134 [details] [diff] [review]
fix v1.0

Nice cleanup! r=jst, with one comment:

- In dom/plugins/ipc/NPEventUnix.h:

 #ifdef MOZ_X11
 #include "mozilla/X11Util.h"
+#define KeyPress 2
 #endif

That change looks unrelated to this patch.
Attachment #667134 - Flags: review?(jst) → review+
(In reply to Johnny Stenback (:jst, jst@mozilla.com) from comment #2)

> That change looks unrelated to this patch.

It isn't, sadly. In adding an include to nsPluginInstanceOwner.h somewhere I caused a build failure on Linux because we undef "KeyPress" all over the place. It was frustrating to figure out how to solve the problem, so I brute-forced it by just defining it via the X11 header value.
Wow, ok. That's really unfortunate, and I'd really prefer not to have to go there.

I did some quick mxr/dxr queries here, and I don't see that method actually being called anywhere... Is it actually needed? Maybe we can just remove it and eliminate this #undef madness?
"SetXDisplay" is used right above its definition, in NPEventUnix.h, and that is used for serializing X events.
Attached patch fix v1.1 (obsolete) — Splinter Review
Fix Android build failures. Android-only try run:

https://tbpl.mozilla.org/?tree=Try&rev=8613bf2d32ee
Attachment #667134 - Attachment is obsolete: true
Attached patch fix v1.2Splinter Review
Fix X11 build error re: "KeyPress" in a more elegant way.
Attachment #667183 - Attachment is obsolete: true
https://hg.mozilla.org/mozilla-central/rev/56e8259f189b
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: