Bug 1307445 part B - remove the gecko code that support :moz-type-unsupported and :moz-type-unsupported-platform, r=qdot
MozReview-Commit-ID: Dybppkfrb7E
This commit is contained in:
@@ -1453,15 +1453,7 @@ nsObjectLoadingContent::ObjectState() const
|
||||
return NS_EVENT_STATE_BROKEN | NS_EVENT_STATE_HANDLER_BLOCKED;
|
||||
case eFallbackCrashed:
|
||||
return NS_EVENT_STATE_BROKEN | NS_EVENT_STATE_HANDLER_CRASHED;
|
||||
case eFallbackUnsupported: {
|
||||
// Check to see if plugins are blocked on this platform.
|
||||
char* pluginsBlocked = PR_GetEnv("MOZ_PLUGINS_BLOCKED");
|
||||
if (pluginsBlocked && pluginsBlocked[0] == '1') {
|
||||
return NS_EVENT_STATE_BROKEN | NS_EVENT_STATE_TYPE_UNSUPPORTED_PLATFORM;
|
||||
} else {
|
||||
return NS_EVENT_STATE_BROKEN | NS_EVENT_STATE_TYPE_UNSUPPORTED;
|
||||
}
|
||||
}
|
||||
case eFallbackUnsupported:
|
||||
case eFallbackOutdated:
|
||||
case eFallbackAlternate:
|
||||
return NS_EVENT_STATE_BROKEN;
|
||||
|
||||
Reference in New Issue
Block a user