Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(9)

Issue 140051: event-related fixes for IE (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
16 years, 5 months ago by felix8a
Modified:
16 years, 5 months ago
Reviewers:
MikeSamuel
CC:
google-caja-discuss_googlegroups.com
Base URL:
http://google-caja.googlecode.com/svn/trunk/
Visibility:
Public.

Description

This fixes http://code.google.com/p/google-caja/issues/detail?id=1132 1. Support event.currentTarget on IE. 2. YUI has a couple special behaviors on IE. Since YUI in caja on IE will detect the browser as IE, YUI will try to do the IE-specific things: 2a. IE doesn't support event.relatedTarget, so YUI tries to set it. Caja does support event.relatedTarget, and it's read-only (per DOM spec), so YUI's attempt to set it throws an exception. This change adds a relatedTarget setter that ignores the new value and doesn't throw. 2b. IE has some non-standard functions that YUI will call: el.hasFocus() and el.setActive(). setActive is a weaker form of focus(). It makes the element 'active', which means it will have focus when the window gets focus, but doesn't force the window to be focused. This change adds support for both methods, delegating to the IE functions. el.setActive() is restricted the same way as el.focus(), it's only allowed when isProcessingEvent___

Patch Set 1 #

Patch Set 2 : event-related fixes for IE #

Total comments: 3

Patch Set 3 : event-related fixes for IE #

Total comments: 6

Patch Set 4 : event-related fixes for IE #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -6 lines) Patch
M src/com/google/caja/plugin/domita.js View 1 2 3 3 chunks +29 lines, -0 lines 1 comment Download
M tests/com/google/caja/plugin/domita_test_untrusted.html View 1 2 3 4 chunks +82 lines, -6 lines 0 comments Download

Messages

Total messages: 11
felix8a
16 years, 5 months ago (2009-10-24 17:16:48 UTC) #1
felix8a
er, hangon. the webdriver DomitaTest fails. I suspect because it doesn't really simulate event capture/bubble.
16 years, 5 months ago (2009-10-24 17:29:39 UTC) #2
felix8a
On 2009/10/24 17:29:39, felix8a wrote: > er, hangon. the webdriver DomitaTest fails. ok, fixed. webdriver ...
16 years, 5 months ago (2009-10-24 17:48:54 UTC) #3
MikeSamuel
http://codereview.appspot.com/140051/diff/7/9 File src/com/google/caja/plugin/domita.js (right): http://codereview.appspot.com/140051/diff/7/9#newcode2968 Line 2968: return void 0; Should it return the value ...
16 years, 5 months ago (2009-11-05 03:56:28 UTC) #4
felix8a
http://codereview.appspot.com/140051/diff/7/9 File src/com/google/caja/plugin/domita.js (right): http://codereview.appspot.com/140051/diff/7/9#newcode2968 Line 2968: return void 0; On 2009/11/05 03:56:28, MikeSamuel wrote: ...
16 years, 5 months ago (2009-11-05 05:17:54 UTC) #5
MikeSamuel
http://codereview.appspot.com/140051/diff/7/9 File src/com/google/caja/plugin/domita.js (right): http://codereview.appspot.com/140051/diff/7/9#newcode2968 Line 2968: return void 0; I think we should stick ...
16 years, 5 months ago (2009-11-05 05:56:36 UTC) #6
felix8a
On 2009/11/05 05:56:36, MikeSamuel wrote: > http://codereview.appspot.com/140051/diff/7/9 > File src/com/google/caja/plugin/domita.js (right): > > http://codereview.appspot.com/140051/diff/7/9#newcode2968 > ...
16 years, 5 months ago (2009-11-05 22:02:19 UTC) #7
MikeSamuel
http://codereview.appspot.com/140051/diff/5001/5003 File src/com/google/caja/plugin/domita.js (right): http://codereview.appspot.com/140051/diff/5001/5003#newcode2143 Line 2143: } Ok, this isn't a setter, so it ...
16 years, 5 months ago (2009-11-05 22:08:46 UTC) #8
felix8a
new snapshot http://codereview.appspot.com/140051/diff/5001/5003 File src/com/google/caja/plugin/domita.js (right): http://codereview.appspot.com/140051/diff/5001/5003#newcode2143 Line 2143: } On 2009/11/05 22:08:46, MikeSamuel wrote: ...
16 years, 5 months ago (2009-11-05 22:46:37 UTC) #9
MikeSamuel
LGTM http://codereview.appspot.com/140051/diff/5001/5003 File src/com/google/caja/plugin/domita.js (right): http://codereview.appspot.com/140051/diff/5001/5003#newcode2143 Line 2143: } On 2009/11/05 22:46:37, felix8a wrote: > ...
16 years, 5 months ago (2009-11-05 22:53:32 UTC) #10
felix8a
16 years, 5 months ago (2009-11-05 22:58:41 UTC) #11
@r3834
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b