Closed Bug 752461 Opened 13 years ago Closed 13 years ago

First time after choosing to "Never activate plugins for this site" the video is still playing

Categories

(Core Graveyard :: Plug-ins, defect)

14 Branch
x86_64
Windows 7
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
mozilla15

People

(Reporter: pauly, Assigned: keeler)

References

Details

Attachments

(1 file, 1 obsolete file)

STR: 1. Make sure plugins.click_to_play pref is set on TRUE in about:config 2. Open http://www.youtube.com/ 3. Click on a video 4. Click on the plugin icon in the location bar 5. Choose to "Never activate plugins for this site" 6. Click on the video screen Expected results: The video should not play Actual results: The video starts playing
To clarify, are you saying that if a user chooses "Never activate plugins...", when they then click on a plugin, it should not play? If so, I think this might confuse users ("I clicked on the plugin, but it's not playing?"). In fact, I think we should get rid of the "never activate plugins..." option altogether, because all we're really saying there is "never activate plugins automatically on this site", which is what happens if you have click-to-play enabled in the first place.
Fixing this bug is pretty simple, we should just iterate through the plugins array and hide the overlay. As far as the ability to always deny, the benefit is that viewing pages doesn't show the overlay and the notification icon won't appear. I don't think we should remove this ability.
Attached patch patch + test (obsolete) (deleted) — Splinter Review
Assignee: nobody → dkeeler
Status: NEW → ASSIGNED
Attachment #622134 - Flags: review?(joshmoz)
Comment on attachment 622134 [details] [diff] [review] patch + test Review of attachment 622134 [details] [diff] [review]: ----------------------------------------------------------------- Looks good! Thanks :)
Attachment #622134 - Flags: feedback+
Comment on attachment 622134 [details] [diff] [review] patch + test Review of attachment 622134 [details] [diff] [review]: ----------------------------------------------------------------- r=me with the one change mentioned below. ::: browser/base/content/browser.js @@ +7333,5 @@ > messageString, "plugins-notification-icon", > mainAction, secondaryActions, options); > }, > > + removeClickToPlayOverlays: function (aContentWindow) { Please put an underscore in front of the function name here and name the anonymous function PH_removeClickToPlayOverlays.
Attachment #622134 - Flags: review?(joshmoz) → review+
Attached patch patch v2 + test (deleted) — Splinter Review
Updated patch per jaws' comments. Carrying over r+ Try run: https://tbpl.mozilla.org/?tree=Try&rev=9c46687a0659
Attachment #622134 - Attachment is obsolete: true
Attachment #622152 - Flags: review+
Flags: in-testsuite+
Keywords: checkin-needed
Target Milestone: --- → mozilla15
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Black screen instantly appears when choosing to "Never activate plugins for this site". Verified fixed on FF 15.0a1 (2012-05-10) on Win 7/64, Ubuntu 12.04 and Mac OS X 10.7.
Status: RESOLVED → VERIFIED
(In reply to Jared Wein [:jaws] from comment #2) > As far as the ability to always deny, the benefit is that viewing pages > doesn't show the overlay and the notification icon won't appear. I don't > think we should remove this ability. One disadvantage of this would be that if someone else will use the computer or event the owner after a long time might don't know why youtube.com apparently doesn't work. In fact it's the same functionality, both with or without the CtP notification.
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: