X-BeenThere: chromium-extensions@googlegroups.com Received: by 10.90.19.24 with SMTP id 24ls54292ags.0.p; Thu, 21 Jan 2010 16:44:39 -0800 (PST) Received: by 10.90.6.10 with SMTP id 10mr2895755agf.8.1264121071645; Thu, 21 Jan 2010 16:44:31 -0800 (PST) Received: by 10.90.6.10 with SMTP id 10mr2895752agf.8.1264121071618; Thu, 21 Jan 2010 16:44:31 -0800 (PST) Return-Path: Received: from mail-yx0-f170.google.com (mail-yx0-f170.google.com [209.85.210.170]) by gmr-mx.google.com with ESMTP id 19si119892yxe.6.2010.01.21.16.44.31; Thu, 21 Jan 2010 16:44:31 -0800 (PST) Received-SPF: pass (google.com: domain of reti...@gmail.com designates 209.85.210.170 as permitted sender) client-ip=209.85.210.170; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of reti...@gmail.com designates 209.85.210.170 as permitted sender) smtp.mail=reti...@gmail.com Received: by yxe42 with SMTP id 42so1127031yxe.22 for ; Thu, 21 Jan 2010 16:44:31 -0800 (PST) MIME-Version: 1.0 Received: by 10.101.180.10 with SMTP id h10mr168425anp.18.1264121071567; Thu, 21 Jan 2010 16:44:31 -0800 (PST) Date: Thu, 21 Jan 2010 16:44:31 -0800 (PST) In-Reply-To: <265be4081001211629r432f6b10h17fab714ea9dd7da@mail.gmail.com> X-IP: 174.127.47.2 References: <863fc7e0-d578-497f-bc60-e72487b55c93@14g2000yqp.googlegroups.com> <265be4081001211629r432f6b10h17fab714ea9dd7da@mail.gmail.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.6) Gecko/20091216 Iceweasel/3.5.6 (like Firefox/3.5.6; Debian-3.5.6-1),gzip(gfe),gzip(gfe) Message-ID: Subject: Re: Programmatic way to stop page load? From: Min Huang To: Chromium-extensions Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hmm, but then I would need to have a window object to begin with. I think I need to back up. Suppose I want to create an extension that stops users from visiting a malicious website; I add an event listener to the chrome.tabs.onUpdated event. When I see a URL that is suspicious, I stop the page from loading and ask the user if he really wants to visit the site. How could I implement that? On Jan 21, 4:29=A0pm, Mohamed Mansour wrote: > You can use JavaScript's window.stop to stop loading the page > programmatically. > > https://developer.mozilla.org/en/DOM/window.stop > > -Mohamed Mansour > > On Thu, Jan 21, 2010 at 7:23 PM, Min Huang wrote: > > I know can I press ESC to stop a page from loading manually, but is > > there no way to do it otherwise? =A0I feel like an idiot for asking but > > I don't see anything in the chrome.* APIs. > > > -Min > > > -- > > You received this message because you are subscribed to the Google Grou= ps > > "Chromium-extensions" group. > > To post to this group, send email to chromium-extensi...@googlegroups.c= om. > > To unsubscribe from this group, send email to > > chromium-extensions+unsubscribe@googlegroups.com > > . > > For more options, visit this group at > >http://groups.google.com/group/chromium-extensions?hl=3Den.