diff --git a/content/html/content/src/HTMLAreaElement.h b/content/html/content/src/HTMLAreaElement.h index effc99018a1d..80ddd0c94e96 100644 --- a/content/html/content/src/HTMLAreaElement.h +++ b/content/html/content/src/HTMLAreaElement.h @@ -155,6 +155,11 @@ public: SetHTMLBoolAttr(nsGkAtoms::nohref, aValue, aError); } + void Stringify(nsAString& aResult) + { + GetHref(aResult); + } + protected: virtual JSObject* WrapNode(JSContext* aCx, JSObject* aScope, bool* aTriedToWrap) MOZ_OVERRIDE; diff --git a/content/html/content/test/Makefile.in b/content/html/content/test/Makefile.in index f604b34e8bdc..309111abb640 100644 --- a/content/html/content/test/Makefile.in +++ b/content/html/content/test/Makefile.in @@ -270,6 +270,7 @@ MOCHITEST_FILES = \ test_bug827126.html \ test_bug827426.html \ test_bug838582.html \ + test_bug839913.html \ test_bug841466.html \ test_iframe_sandbox_inheritance.html \ file_iframe_sandbox_a_if1.html \ diff --git a/content/html/content/test/test_bug839913.html b/content/html/content/test/test_bug839913.html new file mode 100644 index 000000000000..37aef87cd222 --- /dev/null +++ b/content/html/content/test/test_bug839913.html @@ -0,0 +1,14 @@ + + +