зеркало из https://github.com/mozilla/gecko-dev.git
Bug 784131 - Cleanup some dead code from nsObjectLoadingContent. r=josh
This commit is contained in:
Родитель
25518570a0
Коммит
413b2e3042
|
@ -671,8 +671,7 @@ nsObjectLoadingContent::nsObjectLoadingContent()
|
||||||
, mPlayPreviewCanceled(false)
|
, mPlayPreviewCanceled(false)
|
||||||
, mIsStopping(false)
|
, mIsStopping(false)
|
||||||
, mIsLoading(false)
|
, mIsLoading(false)
|
||||||
, mScriptRequested(false)
|
, mScriptRequested(false) {}
|
||||||
, mSrcStreamLoading(false) {}
|
|
||||||
|
|
||||||
nsObjectLoadingContent::~nsObjectLoadingContent()
|
nsObjectLoadingContent::~nsObjectLoadingContent()
|
||||||
{
|
{
|
||||||
|
@ -1251,7 +1250,7 @@ nsObjectLoadingContent::UpdateObjectParameters()
|
||||||
// XXX(johns): Our de-facto behavior since forever was to refuse to load
|
// XXX(johns): Our de-facto behavior since forever was to refuse to load
|
||||||
// Objects who don't have a classid we support, regardless of other type
|
// Objects who don't have a classid we support, regardless of other type
|
||||||
// or uri info leads to a valid plugin.
|
// or uri info leads to a valid plugin.
|
||||||
newMime.Assign("");
|
newMime.Truncate();
|
||||||
stateInvalid = true;
|
stateInvalid = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1371,7 +1370,7 @@ nsObjectLoadingContent::UpdateObjectParameters()
|
||||||
if (NS_FAILED(rv)) {
|
if (NS_FAILED(rv)) {
|
||||||
NS_NOTREACHED("GetContentType failed");
|
NS_NOTREACHED("GetContentType failed");
|
||||||
stateInvalid = true;
|
stateInvalid = true;
|
||||||
channelType.Assign("");
|
channelType.Truncate();
|
||||||
}
|
}
|
||||||
|
|
||||||
LOG(("OBJLC [%p]: Channel has a content type of %s", this, channelType.get()));
|
LOG(("OBJLC [%p]: Channel has a content type of %s", this, channelType.get()));
|
||||||
|
|
|
@ -26,8 +26,6 @@
|
||||||
|
|
||||||
class nsAsyncInstantiateEvent;
|
class nsAsyncInstantiateEvent;
|
||||||
class nsStopPluginRunnable;
|
class nsStopPluginRunnable;
|
||||||
class AutoNotifier;
|
|
||||||
class AutoFallback;
|
|
||||||
class AutoSetInstantiatingToFalse;
|
class AutoSetInstantiatingToFalse;
|
||||||
class nsObjectFrame;
|
class nsObjectFrame;
|
||||||
class nsFrameLoader;
|
class nsFrameLoader;
|
||||||
|
@ -132,12 +130,6 @@ class nsObjectLoadingContent : public nsImageLoadingContent
|
||||||
*/
|
*/
|
||||||
void NotifyOwnerDocumentActivityChanged();
|
void NotifyOwnerDocumentActivityChanged();
|
||||||
|
|
||||||
/**
|
|
||||||
* Used by pluginHost to know if we're loading with a channel, so it
|
|
||||||
* will not open its own.
|
|
||||||
*/
|
|
||||||
bool SrcStreamLoading() { return mSrcStreamLoading; }
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* When a plug-in is instantiated, it can create a scriptable
|
* When a plug-in is instantiated, it can create a scriptable
|
||||||
* object that the page wants to interact with. We expose this
|
* object that the page wants to interact with. We expose this
|
||||||
|
@ -526,14 +518,6 @@ class nsObjectLoadingContent : public nsImageLoadingContent
|
||||||
// whether content js has tried to access the plugin script object.
|
// whether content js has tried to access the plugin script object.
|
||||||
bool mScriptRequested : 1;
|
bool mScriptRequested : 1;
|
||||||
|
|
||||||
// Used to track when we might try to instantiate a plugin instance based on
|
|
||||||
// a src data stream being delivered to this object. When this is true we
|
|
||||||
// don't want plugin instance instantiation code to attempt to load src data
|
|
||||||
// again or we'll deliver duplicate streams. Should be cleared when we are
|
|
||||||
// not loading src data.
|
|
||||||
bool mSrcStreamLoading : 1;
|
|
||||||
|
|
||||||
|
|
||||||
nsWeakFrame mPrintFrame;
|
nsWeakFrame mPrintFrame;
|
||||||
|
|
||||||
nsRefPtr<nsPluginInstanceOwner> mInstanceOwner;
|
nsRefPtr<nsPluginInstanceOwner> mInstanceOwner;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче