Add detail to mozbrowsererror events.

This commit is contained in:
Alan Jeffrey 2016-04-25 12:18:28 -05:00
parent 97a45dc30c
commit d65cf8e833
4 changed files with 42 additions and 5 deletions

View file

@ -48,8 +48,9 @@ use rand::{random, Rng, SeedableRng, StdRng};
use sandboxing;
use script_traits::{AnimationState, CompositorEvent, ConstellationControlMsg};
use script_traits::{DocumentState, LayoutControlMsg};
use script_traits::{IFrameLoadInfo, IFrameSandboxState, MozBrowserEvent, TimerEventRequest};
use script_traits::{IFrameLoadInfo, IFrameSandboxState, TimerEventRequest};
use script_traits::{LayoutMsg as FromLayoutMsg, ScriptMsg as FromScriptMsg, ScriptThreadFactory};
use script_traits::{MozBrowserEvent, MozBrowserErrorType};
use std::borrow::ToOwned;
use std::collections::HashMap;
use std::env;
@ -1967,7 +1968,7 @@ impl<LTF: LayoutThreadFactory, STF: ScriptThreadFactory> Constellation<LTF, STF>
None => return warn!("Mozbrowsererror via closed pipeline {:?}.", ancestor_info.0),
};
}
let event = MozBrowserEvent::Error;
let event = MozBrowserEvent::Error(MozBrowserErrorType::Fatal, None, None);
ancestor.trigger_mozbrowser_event(ancestor_info.1, event);
}
}