|
Lines 1-3
a/Source/WebCore/ChangeLog_sec1
|
|
|
1 |
2013-01-30 Kentaro Hara <haraken@chromium.org> |
| 2 |
|
| 3 |
[V8] 'new MouseEvent("click", {relatedTarget: window}).window' should return window |
| 4 |
https://bugs.webkit.org/show_bug.cgi?id=108432 |
| 5 |
|
| 6 |
Reviewed by NOBODY (OOPS!). |
| 7 |
|
| 8 |
In V8 'new MouseEvent("click", {relatedTarget: window}).window' |
| 9 |
returns null. JSC returns window, which is a correct behavior. |
| 10 |
V8 should also return window. |
| 11 |
|
| 12 |
The point is that we need to handle a DOMWindow wrapper specially |
| 13 |
before converting it to an EventTarget object. A wrapper returned by |
| 14 |
Dictionary::get("relatedTarget") is not an expected DOMWindow wrapper. |
| 15 |
To get the expected DOMWindow wrapper, we need to look up a prototype |
| 16 |
chain of the DOMWindow wrapper. |
| 17 |
|
| 18 |
In JSC, this special handling is done by JSEventTargetCustom::toEventTarget(). |
| 19 |
|
| 20 |
Test: fast/events/constructors/mouse-event-constructor.html |
| 21 |
|
| 22 |
* bindings/v8/Dictionary.cpp: |
| 23 |
(WebCore::Dictionary::get): |
| 24 |
|
| 1 |
2013-01-30 Joe Mason <jmason@rim.com> |
25 |
2013-01-30 Joe Mason <jmason@rim.com> |
| 2 |
|
26 |
|
| 3 |
[BlackBerry] Never store empty credentials in NetworkJob::storeCredentials |
27 |
[BlackBerry] Never store empty credentials in NetworkJob::storeCredentials |