E10S - how do I identify an nsIChannel's requesting window?

2015-06-12 Thread mratcliffe
If a page contains the Set-Cookie header it sets the cookie and the "http-on-response-set-cookie" notification is triggered with subject being a nsIChannel. I am monitoring cookies in E10S using this observer. Because Services.obs doesn't work in the child process it has to run in the parent.

Re: Detecting 32 or 64-bit Firefox build from privileged JS

2015-02-24 Thread mratcliffe
> Assuming you just want to know what the architecture of the build is, not > what the architecture of the machine it's running on is, you're making this > far more complicated than it needs to be. We don't know what we will support in the future so I wanted a future proof solution... adding is64

Re: Detecting 32 or 64-bit Firefox build from privileged JS

2015-02-24 Thread mratcliffe
I have settled on doing it the easy way at compile time in nsAppRunner.cpp: NS_IMETHODIMP nsXULAppInfo::GetIs64Bit(bool* aResult) { #ifdef HAVE_64BIT_BUILD *aResult = true; #else *aResult = false; #endif return NS_OK; } ___ dev-platform mailing list

Detecting 32 or 64-bit Firefox build from privileged JS

2015-02-24 Thread mratcliffe
The DevTools team need to log some telemetry about whether the current Firefox build is 32 or 64-bit. I was told to use XPCOMABI but the possible results are x86, x86_64, ia_64, ppc, SPARC, Alpha or ARM. The problem is that early mac versions were 32-bit so assuming ppc is 64-bit is not accura

Is there a way to force caching on a mochitest browser test support file (test.html)?

2013-11-19 Thread mratcliffe
We are adding a disable cache option to the developer tools because it would be very useful for web and fxOS app devs. Before we land it we would like to create a browser mochitest but we are struggling to find a way to force caching of testfiles.html (obviously necessary to test a disable cach

A simple appcache question http(s)://*: or just *

2013-07-10 Thread mratcliffe
The spec says that that the only use of an asterisk is a single line containing only the * character in the NETWORK section. At one point Firefox implemented http://* and https://* instead ... does anybody know if this is still the case? ___ dev-platfor

Re: Clearing appcache entries

2013-04-15 Thread mratcliffe
That will work to clear the group but most users will want to use our tools to clear the cache for a single URI or domain (they probably have no idea what a group is). How is this done? On Monday, April 15, 2013 3:22:00 PM UTC+1, Honza Bambas wrote: > Thanks for bringing this up Mike. True is

Clearing appcache entries

2013-04-15 Thread mratcliffe
I believe I can clear *all* appcache entries using: Services.cache.evictEntries(Ci.nsICache.STORE_OFFLINE); But how the heck do I: - Clear all entries for a single cache group - Clear all entries for a string match (e.g. domain) - Clear a single entry (or by URI) I have been trying to work this o