mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Send servo version in mozbrowser error.
Also moved servo version to util for usage by the --version flag and for sending the version to browser.html with mozbrowsererror
This commit is contained in:
parent
f2d798232f
commit
ed678cb7f1
4 changed files with 9 additions and 1 deletions
|
@ -49,6 +49,7 @@ use style::attr::{AttrValue, LengthOrPercentageOrAuto};
|
|||
use style::context::ReflowGoal;
|
||||
use url::Url;
|
||||
use util::prefs::mozbrowser_enabled;
|
||||
use util::servo_version;
|
||||
|
||||
#[derive(HeapSizeOf)]
|
||||
enum SandboxAllowance {
|
||||
|
@ -358,6 +359,7 @@ impl MozBrowserEventDetailBuilder for HTMLIFrameElement {
|
|||
type_: Some(DOMString::from(error_type.name())),
|
||||
description: description.map(DOMString::from),
|
||||
report: report.map(DOMString::from),
|
||||
version: Some(DOMString::from_string(servo_version().into())),
|
||||
}.to_jsval(cx, rval);
|
||||
},
|
||||
MozBrowserEvent::SecurityChange(https_state) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue