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:
Boris Zbarsky 2014-05-20 16:07:17 -04:00
parent a60e0561f2
commit 8c61f72f11
3 changed files with 9 additions and 1 deletions

View File

@ -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)
{

View File

@ -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,

View File

@ -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();