Closed Bug 310174 Opened 19 years ago Closed 19 years ago

Windowless plug-ins can't receive the focus events

Categories

(Core Graveyard :: Plug-ins, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.9alpha1

People

(Reporter: emk, Assigned: emk)

References

Details

Attachments

(3 files, 3 obsolete files)

Steps to reproduce:
1. Load the testcase.
2. Click on the Flash text input field.
3. Click on the HTML textarea.
Actual result:
Two carets are displayed.
Expected result:
Only one caret should be displayed.
Attached file Testcase
Attached patch Patch rv1.0 (obsolete) — Splinter Review
Attachment #197550 - Flags: superreview?(jst)
Attachment #197550 - Flags: review?(jst)
I think roc is better reviewer. Because he reviewed bug 306209.
Attachment #197550 - Flags: superreview?(roc)
Attachment #197550 - Flags: superreview?(jst)
Attachment #197550 - Flags: review?(roc)
Attachment #197550 - Flags: review?(jst)
Status: NEW → ASSIGNED
-                    pluginEvent.event = 0x0047;
+                    pluginEvent.event = WM_WINDOWPOSCHANGED;

-  pluginEvent.event = 0x000F; //!!! This is bad, but is it better to include
<windows.h> for WM_PAINT only?
+  pluginEvent.event = WM_PAINT;

Is <windows.h> included now?

Are you sure you don't want to set wParam for these events?
> Is <windows.h> included now?
<winuser.h> is included instead, and it defines the WM_* constants.
> Are you sure you don't want to set wParam for these events?
MozClassic did the same thing.
http://lxr.mozilla.org/classic/source/cmd/winfe/cxwin.cpp#1296
Therefore all Nav4x windowless plug-ins will be able to handle this situation
(wParam = 0).
Attachment #197550 - Flags: superreview?(roc)
Attachment #197550 - Flags: superreview+
Attachment #197550 - Flags: review?(roc)
Attachment #197550 - Flags: review+
checed-in.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9alpha
Oops. This patch didn't work on optimized build.
Reopening.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attachment #198346 - Flags: superreview?(roc)
Attachment #198346 - Flags: review?(roc)
Attached file Testcase
Hmm, too many events seems to be fired.
Load the testcase and click on the flash textbox.
Actual:
onfocus->onblur->onfocus->onblur...
Expected:
onfocus only once.
Attachment #198346 - Attachment is obsolete: true
Attachment #198346 - Flags: superreview?(roc)
Attachment #198346 - Flags: review?(roc)
SetFocus hack in nsPluginInstanceOwner::MouseDown seems to be no longer
required.
This patch also fix the bug 310626 comment 20 problem.
Attachment #198371 - Flags: superreview?(roc)
Attachment #198371 - Flags: review?(roc)
Comment on attachment 198371 [details] [diff] [review]
New patch resolving the comment #9 problem

This patch was wrong.
Attachment #198371 - Flags: superreview?(roc)
Attachment #198371 - Flags: review?(roc)
Attachment #198371 - Attachment is obsolete: true
Flash Player calls ::SetFocus(0) in the mouseDown handler by some unknown reason.
Does it mean Flash Player's issue?
Maybe.
http://lena.oersted.co.jp/~emk/2005/07/15/index_ns2.html
Load the above URL. When you are using
latest nightly: You can switch the tab without problems, but testcase in comment
#1 does not work.
latest debug build: You cannot switch the tab by click. Testcase in comment #1
works.
latest build with attachment 198371 [details] [diff] [review]: You can switch the tab only once. Testcase
in comment #1 works.
msintov:

See comment 12. We think that this bug is Flash Player's issue. Please check it.
Depends on: 311622
I filed bug 311622 for Flash Player problem.
Yes, this is ugly, but we have no choice until bug 311622 is fixed.
Attachment #197550 - Attachment is obsolete: true
Attachment #199637 - Flags: superreview?(roc)
Attachment #199637 - Flags: review?(roc)
This doesn't seem like a serious enough bug to get a fix into Firefox 1.5 at
this stage.
I know.
I only want this patch to land on trunk.
This patch is not necessary for brach since Patch rv1.0 did not also land on branch.
I think we should not use this patch. This is not critical problem. Therefore,
Macromedia should fix bug 311622.
(In reply to comment #21)
> I think we should not use this patch. This is not critical problem. Therefore,
> Macromedia should fix bug 311622.
If we don't proceed, we should back out the attachment 197550 [details] [diff] [review]. It is not only
useless on release build, but also logically invalid (dangling pointer). If we
only fix it (by applying 198346), we can no longer click Flash movie on debug
build if wmode=opaque/transparent. I bet it will cause many many bug reports.
Hence I think it is serious enough to workaround.
Status: REOPENED → ASSIGNED
> we can no longer click Flash movie on debug build if wmode=opaque/transparent.
we can no longer click Flash movie on *nightly* if wmode=opaque/transparent.
Attachment #199637 - Attachment is obsolete: true
Attachment #199637 - Flags: superreview?(roc)
Attachment #199637 - Flags: review?(roc)
Comment on attachment 198346 [details] [diff] [review]
A trivial patch resolving a scope problem

Per Bugzilla-jp discussion, We (Masayuki and I) decided we do not want to take
a workaround for Flash.
Please review this patch.
Attachment #198346 - Attachment is obsolete: false
Attachment #198346 - Flags: superreview?(roc)
Attachment #198346 - Flags: review?(roc)
Attachment #198346 - Flags: superreview?(roc)
Attachment #198346 - Flags: superreview+
Attachment #198346 - Flags: review?(roc)
Attachment #198346 - Flags: review+
checked-in to Trunk.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago19 years ago
Resolution: --- → FIXED
I think (but am not sure) that this caused bug 313230...
Depends on: 345669
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: