Closed Bug 741134 Opened 10 years ago Closed 10 years ago

Plugin placeholder shown even when Site Setting says 'Play Plugins: Yes'


(Firefox for Android Graveyard :: General, defect)

Not set


(Not tracked)

Firefox 14


(Reporter: martijn.martijn, Assigned: Margaret)




(Keywords: testcase, Whiteboard: [good first bug][mentor=jaws][lang=js])


(1 file)

You need to have the "Tap to Play" setting enabled for plugins for this bug.

Steps to reproduce:
- Visit, the plugin doorhanger appears.
- Tap on the 'Yes' button for the "Would you like to play it" question. Let the checkbox checked for 'Don't ask again for this site'
- Visit

Expected result:
- Flash plugins are shown on that page, no plugin placeholders.

Actual result:
- Plugin placeholders appear, no Flash plugins are shown.

Tested in today's trunk Fennec Native build on the Samsung Galaxy SII. should check to see if the ALLOW permission has been added for "plugins", and if so, it should call |PluginHelper.playPlugin(plugin);|.
Whiteboard: [good first bug][mentor=jwein][lang=js]
Whiteboard: [good first bug][mentor=jwein][lang=js] → [good first bug][mentor=jaws][lang=js]
When implementing the "Don't ask again for this site" feature in bug 736278, I think I decided that would just be about pages with hidden plugins, since that's what the doorhanger is about. However, the string does say "%S contains plugin content. Would you like to play it?", so I think it makes sense to go ahead and play all plugins if the user flipped that permission.

Cc'ing Ian, since he's the UX guy helping out with this stuff.
Blocks: 736278
I agree with Margaret, we can let this messaging apply to all plugin content on the page / site, since we aren't really distinguishing between hidden / non hidden plugins in the notification.
Blocks: 744060
Attached patch patchSplinter Review
This is an easy low-risk win.

I did notice that the placeholder briefly appears before the plugin gets activated. Jared mentioned seeing this on desktop and was looking into checking the permissions on the platform side, which would help us out, too.
Assignee: nobody → margaret.leibovic
Attachment #613715 - Flags: review?(mark.finkle)
Comment on attachment 613715 [details] [diff] [review]

>-        if (this.clickToPlayPluginsActivated) {
>+        // Check if plugins have already been activated for this page, or if the user
>+        // has set a permission to always play plugins on the site
>+        if (this.clickToPlayPluginsActivated ||
>+            Services.perms.testPermission(this.browser.currentURI, "plugins") == Services.perms.ALLOW_ACTION) {
>           PluginHelper.playPlugin(plugin);
>           return;
>         }

feel free to keep the code on one line to avoid indenting oddness. up to you
Attachment #613715 - Flags: review?(mark.finkle) → review+
Target Milestone: --- → Firefox 14
Closed: 10 years ago
Resolution: --- → FIXED
Verified fixed, using the 2012-04-14 trunk build on the Samsung Galaxy SII.
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.