Message from discussion
Content script does not load on certain iframes
X-BeenThere: chromium-extensi...@chromium.org
Received: by 10.141.108.5 with SMTP id k5ls2362331rvm.1.p; Tue, 23 Mar 2010
11:01:05 -0700 (PDT)
Received: by 10.141.22.18 with SMTP id z18mr3568667rvi.66.1269367265468;
Tue, 23 Mar 2010 11:01:05 -0700 (PDT)
Received: by 10.141.22.18 with SMTP id z18mr3568663rvi.66.1269367265414;
Tue, 23 Mar 2010 11:01:05 -0700 (PDT)
Return-Path: <asarg...@google.com>
Received: from smtp-out.google.com (hpaq4.eem.corp.google.com [10.3.21.4])
by mx.google.com with ESMTPS id 12si4653057pzk.55.2010.03.23.11.01.03
(version=TLSv1/SSLv3 cipher=RC4-MD5);
Tue, 23 Mar 2010 11:01:04 -0700 (PDT)
Received-SPF: pass (google.com: domain of asarg...@google.com designates 10.3.21.4 as permitted sender)
Authentication-Results: mx.google.com; spf=pass (google.com: domain of asarg...@google.com designates 10.3.21.4 as permitted sender) smtp.mail=asarg...@google.com; dkim=pass (test mode) header...@google.com
Received: from kpbe11.cbf.corp.google.com (kpbe11.cbf.corp.google.com [172.25.105.75])
by smtp-out.google.com with ESMTP id o2NI11FT014253;
Tue, 23 Mar 2010 19:01:01 +0100
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta;
t=1269367262; bh=+rIfe4csLu35wd0gWQcK7DAb0Hk=;
h=MIME-Version:Sender:In-Reply-To:References:From:Date:Message-ID:
Subject:To:Cc:Content-Type;
b=lh0Wl89t2YRev+0kicvN+H4qsB65fQ06agTC0cG/K4rCojNNlUtzBsFInpZSrcFD+
ZemL05P0l7O05O3C4fmOA==
DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns;
h=mime-version:sender:in-reply-to:references:from:date:
x-google-sender-auth:message-id:subject:to:cc:content-type:x-system-of-record;
b=OW2yOe2phFtytOSpoDRBUwCwuWeWX8iS/Xrj26nceyadCoWylzkgLRYLgdiT5ra+I
lP1B6YPtYgZIkl5yruh6g==
Received: from vws19 (vws19.prod.google.com [10.241.21.147])
by kpbe11.cbf.corp.google.com with ESMTP id o2NHxGml026168;
Tue, 23 Mar 2010 13:01:00 -0500
Received: by vws19 with SMTP id 19so106128vws.37
for <multiple recipients>; Tue, 23 Mar 2010 11:00:59 -0700 (PDT)
MIME-Version: 1.0
Sender: asarg...@google.com
Received: by 10.220.108.205 with SMTP id g13mr4146692vcp.175.1269367259113;
Tue, 23 Mar 2010 11:00:59 -0700 (PDT)
In-Reply-To: <acf8488c1003230534o2ab7dc38pc44ff730ba7b4...@mail.gmail.com>
References: <36a71f00-7c2c-4b44-a4fd-19ebeef95...@14g2000yqp.googlegroups.com>
<4fbbc9401001261757k3a7d5ce5j26452316b2f64...@mail.gmail.com>
<x2mb7b4ecf81003211059jf78894f2mc966088831ec4...@mail.gmail.com>
<589844a51003222339w6fc631c6t6286a7077b4a0...@mail.gmail.com>
<acf8488c1003230534o2ab7dc38pc44ff730ba7b4...@mail.gmail.com>
From: Antony Sargent <asarg...@chromium.org>
Date: Tue, 23 Mar 2010 18:00:39 +0000
Message-ID: <589844a51003231100s1d1f2bccudf6fe01501549...@mail.gmail.com>
Subject: Re: [crx] Content script does not load on certain iframes
To: Daniel Wagner-Hall <dawag...@gmail.com>
Cc: "TAMURA, Kent" <tk...@chromium.org>,
Arne Roomann-Kurrik <kur...@chromium.org>,
Yaya <yair.levin...@gmail.com>,
Chromium-extensions <chromium-extensi...@chromium.org>
Content-Type: multipart/alternative; boundary=00c09f8e5d3291b0ac04827b983f
X-System-Of-Record: true
--00c09f8e5d3291b0ac04827b983f
Content-Type: text/plain; charset=ISO-8859-1
As a workaround until that bug is fixed, you can probably use your content
script to inject a <script> tag into the page with js that accesses
window.frames.
On Tue, Mar 23, 2010 at 12:34 PM, Daniel Wagner-Hall <dawag...@gmail.com>wrote:
> On 23 March 2010 06:39, Antony Sargent <asarg...@chromium.org> wrote:
> > You can access iframes with src="about:blank" from the enclosing page's
> > script via their reference in the window.frames array and control their
> > content from there.
>
> Or at least, you'll be able to when
> https://code.google.com/p/chromium/issues/detail?id=20773 is fixed
>
--00c09f8e5d3291b0ac04827b983f
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
As a workaround until that bug is fixed, you can probably use your content =
script to inject a <script> tag into the page with js that accesses w=
indow.frames.<div><br><br><div class=3D"gmail_quote">On Tue, Mar 23, 2010 a=
t 12:34 PM, Daniel Wagner-Hall <span dir=3D"ltr"><<a href=3D"mailto:dawa=
g...@gmail.com">dawag...@gmail.com</a>></span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex;"><div class=3D"im">On 23 March 2010 06:39, A=
ntony Sargent <<a href=3D"mailto:asarg...@chromium.org">asargent@chromiu=
m.org</a>> wrote:<br>
> You can access iframes with src=3D"about:blank" from the enc=
losing page's<br>
> script via their reference in the window.frames array and control thei=
r<br>
> content from there.<br>
<br>
</div>Or at least, you'll be able to when<br>
<a href=3D"https://code.google.com/p/chromium/issues/detail?id=3D20773" tar=
get=3D"_blank">https://code.google.com/p/chromium/issues/detail?id=3D20773<=
/a> is fixed<br>
</blockquote></div><br></div>
--00c09f8e5d3291b0ac04827b983f--