Closed Bug 452843 Opened 16 years ago Closed 15 years ago

[10.5] Active window loses focus when pressing Escape while in Flash fullscreen video playback mode

Categories

(Core :: Widget: Cocoa, defect, P2)

All
macOS
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: whimboo, Assigned: smichaud)

References

()

Details

(Whiteboard: rdar://6227081)

Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1a2pre) Gecko/20080821020645 Minefield/3.1a2pre ID:20080821020645

Testing several video websites show me that there is a focus issue with full screen video playback on OS X. It happens for plugins like Flip4Mac but also for Flash, e.g. on YouTube. See the given URL. Switching to full screen while playing a movie and hitting Esc afterwards don't set back the focus to the active window. I can only reproduce it on OS X. Using Windows it's working fine. I have installed Flip4Mac 2.2 and Flash 9.0 r124.

Steps to reproduce:
1. Open the given website
2. Click on the full screen button 
3. Press Esc

After step 3 the focus isn't set back to the current active window. You have to explicitly click inside or using Cmd+Tab twice to get back the focus.
Flags: wanted1.9.1?
Summary: Firefox loose focus when pressing Escape while in fullscreen video playback mode → Active window looses focus when pressing Escape while in fullscreen video playback mode
See also bug 432983 (the underlying cause of which this might be the same, though specific symptoms--Cmd-W doing the wrong thing--is not).  Presumably the plugin window is confusing Gecko about what window is what?

Philippe was able to repro on 1.9.0.
This seems to be an Apple bug.

I see it only on OS X 10.5.4 (not on OS X 10.4.11).  And on OS X
10.5.4 I also see it in Safari.

Furthermore, the "current window" (on OS X 10.5.4) isn't exactly
unfocused -- instead it's in some wierd state between being focused
and not being focused.  The symptoms are slightly different in Firefox
3.X and Safari.

Firefox 2.0.0.16 and Opera 9.5.1 aren't effected (even on OS X
10.5.4).  Camino (1.8-branch and 1.9.0-branch) are effected (on OS X
10.5.4).  So presumably this (Apple) bug only effects Cocoa apps (not
Carbon ones).

I tested with this bug's URL
(http://www.youtube.com/watch?v=iOn72Y5DT6M), using the current
version of the Flash plugin (9.0 r124 on OS X 10.4.11 and 10.5.4).

A) "Semi-focused" window in Firefox 3.0.1 (on OS X 10.5.4):

   1) It takes two clicks on any object to invoke it.

   2) Most of the window chrome is in the "focused" state, but the
      Close, Minimize and Zoom buttons (in its upper left) look as
      they do when the window is unfocused.

   3) Objects that change appearance (when you hover mouse over them)
      continue to do so, but only until the first tooltip appears.
      After that no object changes appearance on mouse-hover (and no
      more tooltips appear).

   4) The mouse cursor changes shape as you move it around the window,
      exactly as it should if the window were properly focused.

B) Semi-focused window in Safari 3.1.2 (on OS X 10.5.4):

   1) It takes two clicks on any object to invoke it.

   2) Most of the window chrome is in the "focused" state, but the
      Close, Minimize and Zoom buttons (in the upper left), and all
      the scrollbars, look as they do when the window is unfocused.

   3) The mouse cursor never changes shape as you move it around the
      window (even where it would change shape if the window were
      properly focused).
Though this is an Apple bug, we may be able to work around it.  If so,
that will happen in Cocoa widgets code.

But just because this is an Apple bug, I'm giving it a pretty low
priority.
Assignee: nobody → joshmoz
Component: Keyboard: Navigation → Widget: Cocoa
QA Contact: keyboard.navigation → cocoa
Assignee: joshmoz → smichaud
Priority: -- → P4
(In reply to comment #1)

Bug 432983 does seem to be related, but I don't think it's the same
bug:

As far as I know, bug 432983 isn't reproducible in Firefox.  And it's
reproducible in 1.9.0-branch Camino even on OS X 10.4.11 (it's
reproducible in both 1.8-branch and 1.9.0-branch Camino on OS X
10.5.4).
The difference between A2 and B2 is probably bug 54488; scrollbars, now that they're fake, always have the active appearance in Gecko no matter the state of their window.
Flags: wanted1.9.1? → wanted1.9.1+
Someone already notified Apple about it?

I don't have 10.4 but as comment 2 stated it looks like a 10.5 only bug.
Summary: Active window looses focus when pressing Escape while in fullscreen video playback mode → [10.5] Active window looses focus when pressing Escape while in fullscreen video playback mode
> Someone already notified Apple about it?

You're welcome to do so :-)
(In reply to comment #7)
> > Someone already notified Apple about it?
> 
> You're welcome to do so :-)

Stephen, do we have a special contact by Apple? I'd like to inform them about the issue.
No idea :-(
Summary: [10.5] Active window looses focus when pressing Escape while in fullscreen video playback mode → [10.5] Active window loses focus when pressing Escape while in fullscreen video playback mode
(In reply to comment #8)

> Stephen, do we have a special contact by Apple?

Not that I know of.  Josh may be able to suggest someone.  But I'd
just go ahead and open a bug with Apple (and reference this bug, of
course).  The name(s) of any special contact(s) can be pasted into
that bug later.

Post the "radar" number here.  Not that anyone else (besides you and
Apple) can look at it ... but at least that gives us (and Apple) an
Apple-specific reference number.
The tracking number of the created Apple bug report is #6227081. I'll give updates as soon as I receive further information.
My report was marked as duplicate of #6228383. I'll try to get some more information about the status.
Priority: P4 → P2
I don't know if it is the same problem or if it should be filed as a new bug but with the new full screen mode on OS X (bug 370857) I see something similar.

When staying in full screen mode and switching a youtube video in and out of full screen the Firefox window will be placed behind the menu bar and dock. Is that something different?
Blocks: 370857
This seems like a Flash bug. When they put up their own window for fullscreen they should probably explicitly return focus to the window containing the fullscreened plugin. Might be that for some reason 10.4 did that for them but Apple decided to change that due to it being problematic for other apps (focus stealing).
(In reply to comment #14)
> This seems like a Flash bug. When they put up their own window for fullscreen
> they should probably explicitly return focus to the window containing the
> fullscreened plugin. Might be that for some reason 10.4 did that for them but
> Apple decided to change that due to it being problematic for other apps (focus
> stealing).

Michelle, could someone of your team check that please? Would be interesting to know if it could be fixed by Adobe or if we have to wait for Apple. Thanks.
I cannot reproduce this on OS X 10.6 with Firefox 3.5.5 or Safari 4.0.4.  I was testing with Flash Player 10.0.32.18 which is the latest release player and focus always returned to the browser.  I do not have a 10.5 system handy today but maybe this is Apple related?
Charles, however how much I have reinstalled my system I always see this on 10.5. I'm not quiet sure about 10.6.

Here some steps which are a bit clearer:
1. Switch into fullscreen mode via Cmd+Shift+F
2. Play any Flash movie
3. Switch the flash movie into fullscreen mode and press ESC to return to normal mode

After step 3 you will see that the menu bar is overlaying the Firefox window.
The initial analysis of this bug determined it was only present on 10.5, not on 10.4 (see the "[10.5]" tag in the summary field); it seems likely that Apple could have changed in 10.6 whatever they did differently in 10.5 (whether the 10.5 behavior was intentional, as Josh wonders in comment 14, or not).
Same can be seen on 10.6. Updating summary.
Summary: [10.5] Active window loses focus when pressing Escape while in fullscreen video playback mode → [10.5/10.6] Active window loses focus when pressing Escape while in fullscreen video playback mode
Most of the symptoms of this bug described in comment 0 ~ comment 2 WFM on 10.6. The one issue noted in comment 17 (full screen mode) is still present though. But that seems or feels like something Firefox specific.
Oh, you are right. I rechecked and on 10.6 comment 0 really works.

Markus, shall I file a separate bug for the remaining fullscreen problem from comment 17?
Summary: [10.5/10.6] Active window loses focus when pressing Escape while in fullscreen video playback mode → [10.5] Active window loses focus when pressing Escape while in fullscreen video playback mode
Yes, please.
Filed bug 531835.
No longer blocks: 370857
If this is being tracked as another Mozilla bug maybe we should close this one?  If it's not a Flash specific issue I will leave this thread.
Both bugs are not related. I have contacted Apple to request more information about the bug on their side.
Charles, I got a response from Apple. Given by the contained information they have discovered that it is an issue with Flash 9 and 10. I will forward you the complete email to your account.
Summary: [10.5] Active window loses focus when pressing Escape while in fullscreen video playback mode → [10.5] Active window loses focus when pressing Escape while in Flash fullscreen video playback mode
Henrik,

Can you still reproduce this with Firefox 3.5.7  I can't reproduce this right now.  Everything to be seems to be in focus and act as I would expect
No, I'm not able to. Whether on 10.4, 10.5, nor 10.6. Focus is always set back to the browser window when leaving the full-screen mode. If anyone else is still able to reproduce with the latest versions feel free to reopen.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.