Closed
Bug 703815
Opened 13 years ago
Closed 13 years ago
Click to activate message is displayed even if plugins are disabled
Categories
(Core Graveyard :: Plug-ins, defect)
Tracking
(firefox10+ fixed)
RESOLVED
FIXED
mozilla11
People
(Reporter: blassey, Assigned: blassey)
References
Details
(Whiteboard: [inbound])
Attachments
(1 file, 2 obsolete files)
1.67 KB,
patch
|
dougt
:
review+
christian
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
No description provided.
Attachment #575613 -
Flags: review?(doug.turner)
Assignee | ||
Updated•13 years ago
|
status-firefox10:
--- → affected
tracking-firefox10:
--- → +
Assignee | ||
Comment 1•13 years ago
|
||
Attachment #575614 -
Flags: review?(doug.turner)
Assignee | ||
Updated•13 years ago
|
Attachment #575613 -
Attachment is obsolete: true
Attachment #575613 -
Flags: review?(doug.turner)
Comment 2•13 years ago
|
||
Comment on attachment 575614 [details] [diff] [review]
patch
Review of attachment 575614 [details] [diff] [review]:
-----------------------------------------------------------------
::: content/base/src/nsObjectLoadingContent.cpp
@@ +1965,5 @@
> #ifdef ANDROID
> + nsCOMPtr<nsIPrefBranch> prefService = do_GetService(NS_PREFSERVICE_CONTRACTID);
> + bool pluginsDisabled = false;
> + if (prefService) {
> + nsresult rv = prefService->GetBoolPref("plugin.disable", &pluginsDisabled);
use Preferences::GetBool()
@@ +1969,5 @@
> + nsresult rv = prefService->GetBoolPref("plugin.disable", &pluginsDisabled);
> + if (NS_FAILED(rv))
> + pluginsDisabled = false;
> + }
> + if (!pluginsDisabled && XRE_GetProcessType() == GeckoProcessType_Content)
Why do we need to check for the content process?
Attachment #575614 -
Flags: review?(doug.turner) → review-
Assignee | ||
Comment 3•13 years ago
|
||
(In reply to Doug Turner (:dougt) from comment #2)
> Comment on attachment 575614 [details] [diff] [review] [diff] [details] [review]
> @@ +1969,5 @@
> > + nsresult rv = prefService->GetBoolPref("plugin.disable", &pluginsDisabled);
> > + if (NS_FAILED(rv))
> > + pluginsDisabled = false;
> > + }
> > + if (!pluginsDisabled && XRE_GetProcessType() == GeckoProcessType_Content)
>
> Why do we need to check for the content process?
Because we only use this version of click to play in the content process
Assignee | ||
Comment 4•13 years ago
|
||
Attachment #575614 -
Attachment is obsolete: true
Attachment #575696 -
Flags: review?(doug.turner)
Comment 5•13 years ago
|
||
> Because we only use this version of click to play in the content process
Don't we want to click to play in the native client.
Assignee | ||
Comment 6•13 years ago
|
||
(In reply to Doug Turner (:dougt) from comment #5)
> > Because we only use this version of click to play in the content process
> Don't we want to click to play in the native client.
yes, that is being implemented in bug 549697. This is a bug in our tab-restarting version of click to play for e10s fennec which must be resolved for 10 so we can disable plugins and not look awful.
Comment 7•13 years ago
|
||
Comment on attachment 575696 [details] [diff] [review]
patch
Review of attachment 575696 [details] [diff] [review]:
-----------------------------------------------------------------
r+ with a comment. Please land this on m-c.
::: content/base/src/nsObjectLoadingContent.cpp
@@ +1963,4 @@
> nsObjectLoadingContent::GetPluginDisabledState(const nsCString& aContentType)
> {
> #ifdef ANDROID
> + if (!mozilla::Preferences::GetBool("plugin.disable", false) &&
Please add a comment here to say something like:
// If plugin.disable is false or not set, we want to show click-to-play.
Attachment #575696 -
Flags: review?(doug.turner) → review+
Assignee | ||
Comment 8•13 years ago
|
||
Whiteboard: [inbound]
Assignee | ||
Updated•13 years ago
|
Attachment #575696 -
Flags: approval-mozilla-aurora?
Comment 9•13 years ago
|
||
Assignee: nobody → blassey.bugs
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla11
Attachment #575696 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Assignee | ||
Comment 10•13 years ago
|
||
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
•