mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 781394 - Don't fire plugin errors for plugins that never got to a determined type. r=josh
This commit is contained in:
parent
57fe127515
commit
59273e427e
@ -1812,10 +1812,11 @@ nsObjectLoadingContent::LoadObject(bool aNotify,
|
||||
// Notify of our final state if we haven't already
|
||||
NotifyStateChanged(oldType, oldState, false, aNotify);
|
||||
|
||||
if (mType == eType_Null && mFallbackType != eFallbackAlternate) {
|
||||
// if we're not showing alternate content, fire a pluginerror to trigger
|
||||
// (we stopped LoadFallback from doing so above, it doesn't know of our old
|
||||
// state)
|
||||
if (mType == eType_Null && !mContentType.IsEmpty() &&
|
||||
mFallbackType != eFallbackAlternate) {
|
||||
// if we have a content type and are not showing alternate
|
||||
// content, fire a pluginerror to trigger (we stopped LoadFallback
|
||||
// from doing so above, it doesn't know of our old state)
|
||||
FirePluginError(mFallbackType);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user