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

Issue 1983044: Security updates to RPC

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 8 months ago by Javier Pedemonte
Modified:
13 years, 8 months ago
Reviewers:
johnfargo, Paul Lindner, shindig.remailer, dev-remailer
CC:
pedemont_us.ibm.com
Visibility:
Public.

Description

Add security features to the RPC layer, as described here: http://wiki.opensocial.org/index.php?title=PubSub.next_Proposals#Secure_rpc.

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+303 lines, -47 lines) Patch
M features/src/main/javascript/features/rpc/nix.transport.js View 4 chunks +64 lines, -3 lines 0 comments Download
M features/src/main/javascript/features/rpc/rpc.js View 20 chunks +157 lines, -29 lines 4 comments Download
M features/src/main/javascript/features/rpc/wpm.transport.js View 3 chunks +82 lines, -15 lines 0 comments Download

Messages

Total messages: 4
Paul Lindner
patch applied, some concerns. thanks! http://codereview.appspot.com/1983044/diff/1/3 File features/src/main/javascript/features/rpc/rpc.js (left): http://codereview.appspot.com/1983044/diff/1/3#oldcode550 features/src/main/javascript/features/rpc/rpc.js:550: if (!gadgets.util) { Lots ...
13 years, 8 months ago (2010-08-30 06:46:55 UTC) #1
Javier Pedemonte
On 2010/08/30 06:46:55, Paul Lindner wrote: > http://codereview.appspot.com/1983044/diff/1/3#oldcode550 > features/src/main/javascript/features/rpc/rpc.js:550: if (!gadgets.util) { > Lots ...
13 years, 8 months ago (2010-08-30 14:42:22 UTC) #2
Paul Lindner
Thanks, +1 to using something like SEC_ERROR_* Can we use pageShow/pageHide events instead to avoid ...
13 years, 8 months ago (2010-08-30 18:13:01 UTC) #3
Javier Pedemonte
13 years, 8 months ago (2010-08-31 00:20:12 UTC) #4
On 2010/08/30 18:13:01, Paul Lindner wrote:
> Can we use pageShow/pageHide events instead to avoid breaking the memory
cache?

No, because we don't really care about the unloading/hiding of the main page. 
We are only concerned about an iframed gadget unloading.  For that, only an
unload event will work.  And attaching an unload event to an iframe has the same
side-effect as attaching the event to the main page:  it disables the memory
cache for the page.

> I'd also add a reference to the webkit documentation too.

OK.

> if the url is made absolute in setRelayUrl then we should be able to remove
the
> duplicate functionality in the layer above then.

Is there some specific code you have in mind here?  I only see a few references
to setRelayUrl(), and only one of them will always pass in an absolute value (in
gadget_holder.js, since it uses shindig.uri).  All the others can take absolute
or relative URLs, depending on what the user passes in or how the iframe is
setup.

I'll have a new patch up shortly.
Sign in to reply to this message.

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