pub struct CapturedDialog {
pub context: String,
pub kind: String,
pub message: String,
pub default_value: Option<String>,
pub handler: String,
pub accepted: Option<bool>,
pub user_text: Option<String>,
}Expand description
One captured JS user prompt.
Fields§
§context: StringBrowsing context (tab/iframe) the prompt fired in.
kind: Stringalert | confirm | prompt | beforeunload.
message: StringThe dialog’s message text (the XSS evidence for alert(...)).
default_value: Option<String>Default value pre-filled in a prompt() box, if any.
handler: StringThe handler Firefox reported it will apply (accept/dismiss/ignore/
dismiss and notify).
accepted: Option<bool>Some(true/false) once the prompt closed (accepted/dismissed); None
while it is still open (only reachable under the ignore handler).
user_text: Option<String>Text submitted when the prompt was answered, if any.
Trait Implementations§
Source§impl Clone for CapturedDialog
impl Clone for CapturedDialog
Source§fn clone(&self) -> CapturedDialog
fn clone(&self) -> CapturedDialog
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CapturedDialog
impl Debug for CapturedDialog
Source§impl PartialEq for CapturedDialog
impl PartialEq for CapturedDialog
Source§impl Serialize for CapturedDialog
impl Serialize for CapturedDialog
impl StructuralPartialEq for CapturedDialog
Auto Trait Implementations§
impl Freeze for CapturedDialog
impl RefUnwindSafe for CapturedDialog
impl Send for CapturedDialog
impl Sync for CapturedDialog
impl Unpin for CapturedDialog
impl UnsafeUnpin for CapturedDialog
impl UnwindSafe for CapturedDialog
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more