Message from discussion
How to access remote objects IDs?
Received: by 10.52.67.145 with SMTP id n17mr12157056vdt.0.1322097736957;
Wed, 23 Nov 2011 17:22:16 -0800 (PST)
X-BeenThere: google-chrome-developer-tools@googlegroups.com
Received: by 10.220.239.19 with SMTP id ku19ls18964899vcb.4.canary; Wed, 23
Nov 2011 17:22:16 -0800 (PST)
Received: by 10.52.187.131 with SMTP id fs3mr34229926vdc.4.1322097736407;
Wed, 23 Nov 2011 17:22:16 -0800 (PST)
Received: by 10.52.187.131 with SMTP id fs3mr34229925vdc.4.1322097736398;
Wed, 23 Nov 2011 17:22:16 -0800 (PST)
Return-Path: <masoomeh.rudafsh...@gmail.com>
Received: from mail-vw0-f55.google.com (mail-vw0-f55.google.com [209.85.212.55])
by gmr-mx.google.com with ESMTPS id bu17si9067571vdc.0.2011.11.23.17.22.16
(version=TLSv1/SSLv3 cipher=OTHER);
Wed, 23 Nov 2011 17:22:16 -0800 (PST)
Received-SPF: pass (google.com: domain of masoomeh.rudafsh...@gmail.com designates 209.85.212.55 as permitted sender) client-ip=209.85.212.55;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of masoomeh.rudafsh...@gmail.com designates 209.85.212.55 as permitted sender) smtp.mail=masoomeh.rudafsh...@gmail.com
Received: by vbbff1 with SMTP id ff1so913134vbb.10
for <google-chrome-developer-tools@googlegroups.com>; Wed, 23 Nov 2011 17:22:16 -0800 (PST)
MIME-Version: 1.0
Received: by 10.52.76.71 with SMTP id i7mr11198652vdw.19.1322097736295; Wed,
23 Nov 2011 17:22:16 -0800 (PST)
Received: by p9g2000vbb.googlegroups.com with HTTP; Wed, 23 Nov 2011 17:22:16
-0800 (PST)
Date: Wed, 23 Nov 2011 17:22:16 -0800 (PST)
In-Reply-To: <CABapexd7nyszw=y-=5QRxq5CqnPa3GMNLqmBSVH329zK637UJw@mail.gmail.com>
References: <CABapexeNwa4zLGAJmFmdF=FhGAW_zwTnOE23i8Kxmy18daq-0A@mail.gmail.com>
<21242996-f104-4436-8ade-0766781890e1@j15g2000yqf.googlegroups.com>
<9c886420-3c3d-4615-bcc1-5b1f3b80bc9b@y13g2000yqy.googlegroups.com> <CABapexd7nyszw=y-=5QRxq5CqnPa3GMNLqmBSVH329zK637UJw@mail.gmail.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/534.30 (KHTML,
like Gecko) Chrome/12.0.742.112 Safari/534.30,gzip(gfe)
Message-ID: <8fffcd53-f303-4976-9780-1cc3a6268...@p9g2000vbb.googlegroups.com>
Subject: Re: How to access remote objects IDs?
From: masoomeh <masoomeh.rudafsh...@gmail.com>
To: Andrey Kosyakov <ca...@chromium.org>
Cc: google-chrome-developer-tools@googlegroups.com
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Hi there,
I'm trying to use Runtime.releaseObject to delete objects from a page.
I use Runtime.evaluate as discussed before in these emails to find the
object and objectId and then call Runtime.releaseObject on that
object.
I expect the memory of the object to be released. Also I expect if I
use Runtime.evaluate again to find the object, it does not find it
again. But neither of this happens; not the memory is released not the
object is deleted. Calling the function again can find the
corrresponding object.
Any help in this regard would be appreciated.
Masoomeh
On Aug 3, 1:55=A0pm, Andrey Kosyakov <ca...@chromium.org> wrote:
> On Wed, Aug 3, 2011 at 10:19 PM, masoomeh Rudafshani <
>
> masoomeh.rudafsh...@gmail.com> wrote:
>
> > Thanks for the info, but I have some more questions:
> > 1) How can one issue commands such as Runtime.getProperties and
> > Runtime.evaluate in console as there is no panel for runtime?
>
> You won't be able to issue DevTools protocol commands via the console.
> However, the DevTools console internally uses Runtime.evaluate to evaluat=
e
> expressions entered in console within the inspected page. So the idea is
> that you can just experiment with the expressions you'll be passing to
> Runtime.evaluate in the console.
>
> 2) How can I access the JavaScript objects of a page? Right now I
>
> > tried passing "document" and it does not contain any info about the
> > JavaScript objects of the page.
>
> The global objects of the page are properties of the window objects -- so=
in
> case you need to enumerate all global objects, you just use "window" as a=
n
> expression and enumerate its properties.
>
> 3) What are the other options that I can pass to "expression" argument
>
> > (I mean other than "document" and "localstorage")? Is there anywhere
> > on the code that I can look to get more info as the documentation does
> > not have such info.
>
> These are not any special options, these are just JavaScript expressions.
> "document" and "localStorage" are just properties of the window object. T=
ype
> "window" at console to explore global symbols.
>
> Best regards,
> Andrey.