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

Issue 166046: Make rpc.js window.frames code more robust (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 9 months ago by johnfargo
Modified:
15 years, 8 months ago
Reviewers:
Paul Lindner, shindig.remailer
Base URL:
http://svn.apache.org/repos/asf/incubator/shindig/trunk/
Visibility:
Public.

Description

Turns out IE8 treats this as an Array access rather than Object/Map: window.frames["1234"] This caused gadgets.rpc to break when the frame name consists only of isDigit characters. I propose this patch as a way of centralizing the targetWindow retrieval mechanism for rpc. It also tries falling back to document.getElementById(...) if a window.frames find doesn't work. Comments welcome.

Patch Set 1 #

Patch Set 2 : Old patch accidentally uploaded. Fixed (correctly this time). #

Total comments: 1

Patch Set 3 : @Paul, sgtm. Style update. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -9 lines) Patch
features/src/main/javascript/features/rpc/rmr.transport.js View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
features/src/main/javascript/features/rpc/rpc.js View 1 2 3 chunks +28 lines, -6 lines 0 comments Download
features/src/main/javascript/features/rpc/wpm.transport.js View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6
johnfargo
15 years, 9 months ago (2009-12-03 23:03:22 UTC) #1
johnfargo
Old patch accidentally uploaded. fixed.
15 years, 9 months ago (2009-12-03 23:04:17 UTC) #2
johnfargo
Old patch accidentally uploaded. Fixed (correctly this time).
15 years, 9 months ago (2009-12-03 23:04:51 UTC) #3
Paul Lindner
lgtm other than the style issue. http://codereview.appspot.com/166046/diff/7/1007 File features/src/main/javascript/features/rpc/rpc.js (left): http://codereview.appspot.com/166046/diff/7/1007#oldcode297 features/src/main/javascript/features/rpc/rpc.js:297: Since this is ...
15 years, 9 months ago (2009-12-03 23:55:07 UTC) #4
johnfargo
@Paul, sgtm. Style update.
15 years, 9 months ago (2009-12-04 00:36:09 UTC) #5
Paul Lindner
15 years, 9 months ago (2009-12-04 00:39:15 UTC) #6
On 2009/12/04 00:36:09, johnfargo wrote:
> @Paul, sgtm. Style update.

great, ship it!
Sign in to reply to this message.

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