Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Javascript source not showing when eval'd with evalInSandbox
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Michail Frolov  
View profile  
 More options Oct 8 2012, 5:30 am
From: Michail Frolov <frol...@pobox.com>
Date: Mon, 8 Oct 2012 02:30:14 -0700 (PDT)
Local: Mon, Oct 8 2012 5:30 am
Subject: Javascript source not showing when eval'd with evalInSandbox

I am using Firebug 1.10.3 with Firefox 15.0.1

I have an extension that runs a script in a Sandbox with a web page's
window object set up as prototype.  I am using evalInSandbox to first eval
a small script in the Sandbox and then I use evalInSandbox again to eval a
large script in the same Sandbox.

Firebug detects the scripts and displays one as *undefined* and another as
a named script (I am using //@ sourceURL in the large script) in the
Scripts panel in the script drop down menu.  When I select *inline* to show
the source of either one of them, Firebug displays a blank panel.

Any ideas what I can do to to fix this?  What can I do to troubleshoot this?

Thanks,
Michail.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jan Honza Odvarko  
View profile  
 More options Oct 8 2012, 6:32 am
From: Jan Honza Odvarko <odva...@gmail.com>
Date: Mon, 8 Oct 2012 03:32:29 -0700 (PDT)
Local: Mon, Oct 8 2012 6:32 am
Subject: Re: Javascript source not showing when eval'd with evalInSandbox
Could this be related to the following report?
http://code.google.com/p/fbug/issues/detail?id=2198

Do you have a test case I could try out?

Honza

On Oct 8, 11:30 am, Michail Frolov <frol...@pobox.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michail Frolov  
View profile  
 More options Oct 8 2012, 4:42 pm
From: Michail Frolov <frol...@pobox.com>
Date: Mon, 8 Oct 2012 13:42:50 -0700 (PDT)
Local: Mon, Oct 8 2012 4:42 pm
Subject: Re: Javascript source not showing when eval'd with evalInSandbox

It does not look like the linked bug describes the same problem.

I can select the file but I do not see it loaded into the source pane (it's
blank)

I will try to put a test case together but I don't have much free time.  
Might take a while.

Michail.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michail Frolov  
View profile  
 More options Oct 8 2012, 5:30 pm
From: Michail Frolov <frol...@pobox.com>
Date: Mon, 8 Oct 2012 14:30:27 -0700 (PDT)
Local: Mon, Oct 8 2012 5:30 pm
Subject: Re: Javascript source not showing when eval'd with evalInSandbox

I attached a zip file with a simple extension.

Install this extension by using the Windows registry:

[HKEY_CURRENT_USER\Software\Mozilla\Firefox\Extensions]
"acmet...@acmetest.com"="<full path to>\\Test Extension\\AcmeTest"

The extension injects a single line script into a page using
evalInSandbox.  Selecting this script in Firebug will not show the source
of the script.

Michail.

  Test Extension.zip
12K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jan Honza Odvarko  
View profile  
 More options Oct 9 2012, 10:07 am
From: Jan Honza Odvarko <odva...@gmail.com>
Date: Tue, 9 Oct 2012 07:07:15 -0700 (PDT)
Local: Tues, Oct 9 2012 10:07 am
Subject: Re: Javascript source not showing when eval'd with evalInSandbox
Thanks for the test case!

I believe that the problem is hidden in the way how Firebug is
filtering out all scripts that are coming from chrome://
which is also this case.

Note that Firebug is focused on content (page) JS debugging.

Honza

On Oct 8, 11:30 pm, Michail Frolov <frol...@pobox.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michail Frolov  
View profile  
 More options Oct 9 2012, 7:10 pm
From: Michail Frolov <frol...@pobox.com>
Date: Tue, 9 Oct 2012 16:10:54 -0700 (PDT)
Local: Tues, Oct 9 2012 7:10 pm
Subject: Re: Javascript source not showing when eval'd with evalInSandbox

I am not sure about this.

Initially I gave my inline script a name with a full chrome:// path and the
script was not showing up in the drop down scripts menu at all.

After looking through the FBTrace logs I discovered that the script was
being filtered because it started with "chrome:"  I renamed my inline
script to give it a name without any path or in the test case not give it a
name.  This way Firebug does not filter the script and shows it in the drop
down menu but yet it does not display its contents.

I have a feeling I would have to file a bug for this.

Michail.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jan Honza Odvarko  
View profile  
 More options Oct 10 2012, 2:25 am
From: Jan Honza Odvarko <odva...@gmail.com>
Date: Tue, 9 Oct 2012 23:25:32 -0700 (PDT)
Local: Wed, Oct 10 2012 2:25 am
Subject: Re: Javascript source not showing when eval'd with evalInSandbox
On Oct 10, 1:10 am, Michail Frolov <frol...@pobox.com> wrote:
> I am not sure about this.

> Initially I gave my inline script a name with a full chrome:// path and the
> script was not showing up in the drop down scripts menu at all.

> After looking through the FBTrace logs I discovered that the script was
> being filtered because it started with "chrome:"  I renamed my inline
> script to give it a name without any path or in the test case not give it a
> name.  This way Firebug does not filter the script and shows it in the drop
> down menu but yet it does not display its contents.

> I have a feeling I would have to file a bug for this.

OK, please do.

Honza


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »