summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/xmlhttprequest
diff options
context:
space:
mode:
authorpodivilov@chromium.org <podivilov@chromium.org@bbb929c8-8fbe-4397-9dbb-9b2b20218538>2013-08-26 13:56:47 +0000
committerpodivilov@chromium.org <podivilov@chromium.org@bbb929c8-8fbe-4397-9dbb-9b2b20218538>2013-08-26 13:56:47 +0000
commita4d80020ef4a7ccb51b0b0de97b92e494298a0ae (patch)
treec8bbda696a302e2183b1dbaf4881184db96c8bfb /third_party/WebKit/LayoutTests/fast/xmlhttprequest
parent63b55b79b6b185e09715df37931decb2c927b24c (diff)
downloadchromium_src-a4d80020ef4a7ccb51b0b0de97b92e494298a0ae.zip
chromium_src-a4d80020ef4a7ccb51b0b0de97b92e494298a0ae.tar.gz
chromium_src-a4d80020ef4a7ccb51b0b0de97b92e494298a0ae.tar.bz2
Revert 156654 "Add support for BeforeUnloadEvent"
> Add support for BeforeUnloadEvent > > Add support for BeforeUnloadEvent as per the specification: > http://www.whatwg.org/specs/web-apps/current-work/#beforeunloadevent > > BeforeUnloadEvent has a returnValue attribute. Setting returnValue to a non-empty > string in an event handler causes the user agent should ask the user to confirm > that they wish to unload the document. This is equivalent to returning a non-empty > string in the EventHandler: > http://www.whatwg.org/specs/web-apps/current-work/#onbeforeunloadeventhandler > > BeforeUnloadEvent and returnValue are already supported by IE and Firefox. Previously, > Blink was passing a base Event type to the beforeunload event handlers instead of > a BeforeUnloadEvent. > > Note that this patch also removes support for Event.returnValue. This used to be > an IE extension but this is no longer supported by IE (nor Firefox) so the > compatibility risk should be low. Applications use preventDefault() nowadays to > do this and only fallback to Event.returnValue to support older versions of IE > (IE < 9). > > BUG=277851 > > Review URL: https://chromiumcodereview.appspot.com/22893051 TBR=ch.dumez@sisa.samsung.com Review URL: https://codereview.chromium.org/23382014 git-svn-id: svn://svn.chromium.org/blink/trunk@156696 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Diffstat (limited to 'third_party/WebKit/LayoutTests/fast/xmlhttprequest')
-rw-r--r--third_party/WebKit/LayoutTests/fast/xmlhttprequest/xmlhttprequest-get-expected.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/third_party/WebKit/LayoutTests/fast/xmlhttprequest/xmlhttprequest-get-expected.txt b/third_party/WebKit/LayoutTests/fast/xmlhttprequest/xmlhttprequest-get-expected.txt
index f2c4414..2144707 100644
--- a/third_party/WebKit/LayoutTests/fast/xmlhttprequest/xmlhttprequest-get-expected.txt
+++ b/third_party/WebKit/LayoutTests/fast/xmlhttprequest/xmlhttprequest-get-expected.txt
@@ -56,6 +56,7 @@ loaded : '0'
path : '[object NodeList]'
position : '0'
preventDefault : 'function preventDefault() { [native code] }'
+returnValue : 'true'
srcElement : '[object XMLHttpRequest]'
stopImmediatePropagation : 'function stopImmediatePropagation() { [native code] }'
stopPropagation : 'function stopPropagation() { [native code] }'