<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Mark's World &#187; mozilla hidden window xul js</title>
	<atom:link href="http://www.digitalspace.ca/tag/mozilla-hidden-window-xul-js/feed" rel="self" type="application/rss+xml" />
	<link>http://www.digitalspace.ca</link>
	<description>GNU Not just another ranting blog</description>
	<lastBuildDate>Thu, 14 Jan 2010 05:35:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>The hidden window trick</title>
		<link>http://www.digitalspace.ca/2008/01/24/the-hidden-window-trick</link>
		<comments>http://www.digitalspace.ca/2008/01/24/the-hidden-window-trick#comments</comments>
		<pubDate>Fri, 25 Jan 2008 05:46:15 +0000</pubDate>
		<dc:creator>Mark Lise</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[mozilla hidden window xul js]]></category>

		<guid isPermaLink="false">http://www.digitalspace.ca/2008/01/24/the-hidden-window-trick</guid>
		<description><![CDATA[<p>I was working with an extension today and I came across the need to overlay browser.xul, but only have my overlay fired once-per-session.  So, say you write an extension that puts a toolbar in as well as display some XUL on startup, but you don&#8217;t want the XUL to display every time browser.xul is loaded [...]]]></description>
			<content:encoded><![CDATA[<p>I was working with an extension today and I came across the need to overlay browser.xul, but only have my overlay fired once-per-session.  So, say you write an extension that puts a toolbar in as well as display some XUL on startup, but you don&#8217;t want the XUL to display every time browser.xul is loaded (which is every time a new browser window is created).  johnm in the #extedev channel on irc.mozilla.org reminded me about the <a href="http://developer.mozilla.org/en/docs/Working_with_windows_in_chrome_code#The _hidden_window_hack" target="_blank">hidden window trick</a>!  The basics is to call into nsIAppShellService and set a property value so that the next time your &#8220;onLoad()&#8221; function gets called, you can see if that property exists again.  The lifetime of any data that you create in the hidden window is for the session, so it&#8217;s the perfect example.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.digitalspace.ca/2008/01/24/the-hidden-window-trick/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
