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

Issue 186253: Inject __isgadget beacon to differentiate btw rendered gadget and type=url/generic IFRAME (Closed)

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

Description

@see http://issues.apache.org/jira/browse/SHINDIG-1267

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -1 line) Patch
features/src/main/javascript/features/rpc/rpc.js View 1 chunk +1 line, -1 line 1 comment Download
java/gadgets/src/main/java/org/apache/shindig/gadgets/render/RenderingGadgetRewriter.java View 3 chunks +8 lines, -0 lines 1 comment Download
java/gadgets/src/test/java/org/apache/shindig/gadgets/render/RenderingGadgetRewriterTest.java View 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 5
johnfargo
15 years, 7 months ago (2010-01-21 03:57:31 UTC) #1
Paul Lindner
http://codereview.appspot.com/186253/diff/1/3 File java/gadgets/src/main/java/org/apache/shindig/gadgets/render/RenderingGadgetRewriter.java (right): http://codereview.appspot.com/186253/diff/1/3#newcode166 java/gadgets/src/main/java/org/apache/shindig/gadgets/render/RenderingGadgetRewriter.java:166: injectGadgetBeacon(gadget, head); could we avoid an extra script tag ...
15 years, 7 months ago (2010-01-21 07:42:28 UTC) #2
henry.saputra
some small comment. http://codereview.appspot.com/186253/diff/1/4 File features/src/main/javascript/features/rpc/rpc.js (right): http://codereview.appspot.com/186253/diff/1/4#newcode618 features/src/main/javascript/features/rpc/rpc.js:618: if (window['__isgadget'] === true) { We ...
15 years, 7 months ago (2010-01-21 19:36:41 UTC) #3
johnfargo
Sadly it can't (easily) -- the beacon needs to appear before feature libs, which may ...
15 years, 7 months ago (2010-01-21 23:27:21 UTC) #4
johnfargo
15 years, 7 months ago (2010-01-21 23:28:34 UTC) #5
Hi Henry: thanks for the comment. It's true that we could drop the
"===true") but I prefer it this way to be as precise as possible about the
checked value (since we inject __isgadget=true verbatim).

Cheers,
John

On Thu, Jan 21, 2010 at 11:36 AM, <henry.saputra@gmail.com> wrote:

> some small comment.
>
>
> http://codereview.appspot.com/186253/diff/1/4
> File features/src/main/javascript/features/rpc/rpc.js (right):
>
> http://codereview.appspot.com/186253/diff/1/4#newcode618
> features/src/main/javascript/features/rpc/rpc.js:618: if
> (window['__isgadget'] === true) {
> We could just check:
> if(window['__isgadget']) {
>
> which I think will check for both true and undefined
>
>
> http://codereview.appspot.com/186253/show
>
Sign in to reply to this message.

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