Closed
Bug 751809
Opened 13 years ago
Closed 12 years ago
click does not work on a plugin content when a plugin is just activated
Categories
(Core Graveyard :: Plug-ins, defect)
Tracking
(firefox14-, firefox15-, firefox16-, firefox17+ verified, firefox18 verified)
VERIFIED
FIXED
mozilla18
People
(Reporter: dennis, Assigned: gfritzsche)
References
Details
Attachments
(2 files, 4 obsolete files)
14.23 KB,
patch
|
Gavin
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
14.24 KB,
patch
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:15.0) Gecko/15.0 Firefox/15.0a1
Build ID: 20120503030512
Steps to reproduce:
* Enable plugins.click_to_play in about:config
* Switch to a page with embedded flash content (i.e. youtube)
* Click "Click here to activate plugins."
Actual results:
The flash content plays but interaction is not possible. The elements react to hovering correctly but clicking does not have any effect. Keyboard controls (tabbing through available elements) works however.
Once I switch to another tab and back, clicking works.
Expected results:
After activating the plugin, clicking should work.
Comment 2•12 years ago
|
||
I reproduce this bug still on http://hg.mozilla.org/mozilla-central/rev/bb4b37094b9f.
(In reply to Dennis Lichtenthäler from comment #0)
> Once I switch to another tab and back, clicking works.
I focus the other element in a same page, clicking works too.
Updated•12 years ago
|
Summary: Unable to interact with plugin content when click to play is enabled → click does not work on a plugin content when a plugin is just activated
Comment 3•12 years ago
|
||
This bug happened:
* Firefox Beta 14.0b8
* Firefox Aurora 15.0a2 2012-06-23
* Firefox Nightly 16.0a1 2012-06-23
This bug should fix before release Firefox 14.
Updated•12 years ago
|
Blocks: click-to-play
Updated•12 years ago
|
Component: Untriaged → Plug-ins
Product: Firefox → Core
QA Contact: untriaged → plugins
Updated•12 years ago
|
Comment 4•12 years ago
|
||
(In reply to Yuki Keiichi from comment #3)
> This bug happened:
> * Firefox Beta 14.0b8
> * Firefox Aurora 15.0a2 2012-06-23
> * Firefox Nightly 16.0a1 2012-06-23
>
> This bug should fix before release Firefox 14.
The setting is not yet user facing yet, so no need to track for release. Sending over to Jared for initial investigation.
Assignee: nobody → jaws
Comment 5•12 years ago
|
||
To note, I have only heard this reported with youtube.com.
I'm not sure what is happening there, but I talked with Margaret and we think that we should move the click-to-play event handler to the actual plugin instead of the overlay (bug 741130). That might fix this bug.
Re-assigning to dkeeler since he is going to work on fixing bug 741130.
Assignee: jaws → dkeeler
Depends on: 741130
Reporter | ||
Comment 7•12 years ago
|
||
(In reply to Jared Wein [:jaws] from comment #5)
> To note, I have only heard this reported with youtube.com.
Yep, I'm unable to reproduce this with anything other than youtube videos.
Comment 8•12 years ago
|
||
(In reply to Dennis Lichtenthäler from comment #7)
> Yep, I'm unable to reproduce this with anything other than youtube videos.
I'm unable to reproduce this too. (on Today's nightly, http://hg.mozilla.org/mozilla-central/rev/e61399f31505 )
Comment 9•12 years ago
|
||
(In reply to OHZEKI Tetsuharu [:saneyuki_s] from comment #8)
> (In reply to Dennis Lichtenthäler from comment #7)
> > Yep, I'm unable to reproduce this with anything other than youtube videos.
>
> I'm unable to reproduce this too. (on Today's nightly,
> http://hg.mozilla.org/mozilla-central/rev/e61399f31505 )
Oops! Sorry, I have missed the test.
This bug is REPRODUCED on Today's nightly on OSX 10.7, http://hg.mozilla.org/mozilla-central/rev/e61399f31505.
Comment 11•12 years ago
|
||
I can reproduce this too (Aurora 16.0a2 (2012-07-22))
Assignee | ||
Updated•12 years ago
|
Assignee: dkeeler → georg.fritzsche
Assignee | ||
Comment 12•12 years ago
|
||
This is bug is due to "mouseup" dom events not being sent to the plugin due to this check:
http://mxr.mozilla.org/mozilla-central/source/dom/plugins/base/nsPluginInstanceOwner.cpp#2098
Before the click is delivered, mContentFocused should be set to true here:
http://mxr.mozilla.org/mozilla-central/source/dom/plugins/base/nsPluginInstanceOwner.cpp#2083
However the "focus" dom event is never delivered to the pluginInstanceOwner with click-to-play.
Still looking into how to properly fix this.
Assignee | ||
Updated•12 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 13•12 years ago
|
||
With click-to-play enabled, the focus event was delivered before the actual plugin instance owner was loaded.
Fixed by syncing the focus state when the frame is set on the plugin instance owner.
Assignee | ||
Comment 14•12 years ago
|
||
Comment on attachment 649335 [details] [diff] [review]
Fix focus issue with click-to-play
Josh, can you review this?
Attachment #649335 -
Flags: review?(joshmoz)
Assignee | ||
Comment 16•12 years ago
|
||
Comment on attachment 649335 [details] [diff] [review]
Fix focus issue with click-to-play
Good point, post-poning review request until this has a test.
Attachment #649335 -
Flags: review?(joshmoz)
Assignee | ||
Comment 17•12 years ago
|
||
Assignee | ||
Updated•12 years ago
|
Attachment #649335 -
Attachment is obsolete: true
Assignee | ||
Comment 18•12 years ago
|
||
Pushed to try: https://tbpl.mozilla.org/?tree=Try&rev=de8ccadbf88d
Assignee | ||
Comment 19•12 years ago
|
||
The test failed on try, even on 10.6 which runs the test fine for me.
Adjusted successive click tests to do the same thing to find out:
https://tbpl.mozilla.org/?tree=Try&rev=9786a523e1d9
Attachment #650956 -
Attachment is obsolete: true
Assignee | ||
Comment 20•12 years ago
|
||
"to (In reply to Georg Fritzsche [:gfritzsche] [away 11-19 Aug] from comment #19)
> Adjusted successive click tests to do the same thing to find out:
... if this is a problem with the test enviroment.
Comment 21•12 years ago
|
||
Figured out the issue with the test not working. Georg said he'd be out for a bit, so I'll be shepherding this to landing. Asking for review from Josh.
Attachment #651001 -
Attachment is obsolete: true
Attachment #651559 -
Flags: review?(joshmoz)
Comment 22•12 years ago
|
||
Comment on attachment 651559 [details] [diff] [review]
patch v4
Excellent fix, thanks Georg and David!
Attachment #651559 -
Flags: review?(joshmoz) → review+
Comment 23•12 years ago
|
||
This was the run: https://tbpl.mozilla.org/?tree=Try&rev=e88d375f6e57
Marking checkin-needed.
Keywords: checkin-needed
Comment 24•12 years ago
|
||
(In reply to David Keeler from comment #23)
> This was the run: https://tbpl.mozilla.org/?tree=Try&rev=e88d375f6e57
Green on Try.
https://hg.mozilla.org/integration/mozilla-inbound/rev/6943b37c68cc
Flags: in-testsuite? → in-testsuite+
Keywords: checkin-needed
Comment 25•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
Comment 26•12 years ago
|
||
Sorry, backed out for bug 783723:
https://hg.mozilla.org/integration/mozilla-inbound/rev/7a1a745a45f2
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: mozilla17 → ---
Assignee | ||
Comment 28•12 years ago
|
||
* Fix intermittent failures through SimpleTest.waitForFocus()
* Avoid causing failures on subsequent tests if the test for this bug fails
Josh, can i carry over the r+ for this fixed patch?
Attachment #651559 -
Attachment is obsolete: true
Assignee | ||
Comment 29•12 years ago
|
||
(In reply to Georg Fritzsche [:gfritzsche] from comment #28)
> Created attachment 655568 [details] [diff] [review]
> patch v5
Try run for this patch:
https://tbpl.mozilla.org/?tree=Try&rev=7d088f4af68d
Comment 30•12 years ago
|
||
(In reply to Georg Fritzsche [:gfritzsche] from comment #28)
> Josh, can i carry over the r+ for this fixed patch?
Yes
Assignee | ||
Updated•12 years ago
|
Keywords: checkin-needed
Comment 31•12 years ago
|
||
(In reply to Georg Fritzsche [:gfritzsche] from comment #29)
> Try run for this patch:
> https://tbpl.mozilla.org/?tree=Try&rev=7d088f4af68d
Green on Try.
https://hg.mozilla.org/integration/mozilla-inbound/rev/31a27d47d242
Keywords: checkin-needed
Comment 32•12 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
Comment 33•12 years ago
|
||
This is important enough for CTP that it should be uplifted, I believe: see bug 792550 which is probably a dup and affects embedded youtube videos, which are one of the primary use cases that should work.
tracking-firefox17:
--- → ?
Updated•12 years ago
|
Comment 34•12 years ago
|
||
Georg - please nominate for Aurora approval when you get the chance.
Assignee | ||
Comment 35•12 years ago
|
||
Comment on attachment 655568 [details] [diff] [review]
patch v5
[Approval Request Comment]
Bug caused by: Click-to-play feature when active
User impact if declined: E.g. Youtube Flash not responding to button click unless switching tabs or otherwise refocusing plugin element.
Testing completed (on m-c, etc.): Been on nightly for a while, no negative feedback so far. Also verified locally.
Risk to taking this patch (and alternatives if risky): Low-risk, worst-case is probably causing other focus issues.
String or UUID changes made by this patch: none.
Attachment #655568 -
Flags: approval-mozilla-aurora?
Updated•12 years ago
|
Attachment #655568 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Assignee | ||
Comment 36•12 years ago
|
||
Assignee | ||
Comment 37•12 years ago
|
||
Attachment 664068 [details] [diff] needs checkin on Aurora.
Keywords: checkin-needed
Comment 38•12 years ago
|
||
Comment 39•12 years ago
|
||
After following the steps to reproduce from comment 0, I could not interact with the flash content on www.youtube.com or flash trailers in imdb.com for the build ID: 20120503030512.
For the same steps in comment 0 for
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/17.0 Firefox/17.0 beta 4
Build ID: 20121031065642
flash content is working on every mouse action. Also other flash content sites like trailers on imdb.com or vimeo.com.
Comment 40•12 years ago
|
||
Video controls are working fine with CTP enabled on Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:18.0) Gecko/18.0 Firefox/18.0. Verified fixed
Updated•3 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•