mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 999315. Revert alert(undefined) to showing the string "undefined" again, like it used to, pending the spec getting sorted out. r=peterv
This commit is contained in:
parent
a60e0561f2
commit
8c61f72f11
@ -6273,6 +6273,12 @@ nsGlobalWindow::AlertOrConfirm(bool aAlert,
|
||||
return result;
|
||||
}
|
||||
|
||||
void
|
||||
nsGlobalWindow::Alert(mozilla::ErrorResult& aError)
|
||||
{
|
||||
Alert(EmptyString(), aError);
|
||||
}
|
||||
|
||||
void
|
||||
nsGlobalWindow::Alert(const nsAString& aMessage, mozilla::ErrorResult& aError)
|
||||
{
|
||||
|
@ -856,6 +856,7 @@ protected:
|
||||
mozilla::ErrorResult& aError);
|
||||
|
||||
public:
|
||||
void Alert(mozilla::ErrorResult& aError);
|
||||
void Alert(const nsAString& aMessage, mozilla::ErrorResult& aError);
|
||||
bool Confirm(const nsAString& aMessage, mozilla::ErrorResult& aError);
|
||||
void Prompt(const nsAString& aMessage, const nsAString& aInitial,
|
||||
|
@ -72,7 +72,8 @@ typedef any Transferable;
|
||||
[Throws] readonly attribute ApplicationCache applicationCache;
|
||||
|
||||
// user prompts
|
||||
[Throws] void alert(optional DOMString message = "");
|
||||
[Throws] void alert();
|
||||
[Throws] void alert(DOMString message);
|
||||
[Throws] boolean confirm(optional DOMString message = "");
|
||||
[Throws] DOMString? prompt(optional DOMString message = "", optional DOMString default = "");
|
||||
[Throws] void print();
|
||||
|
Loading…
Reference in New Issue
Block a user