Changing browser remoteness

2020-10-06 Thread Geoff Lankow
Context: I'm trying to make Thunderbird E10s-compatible. We have s that can display web content or email messages. For now, email messages are going to have to be in the parent process. So, I need to be able to switch the remoteness of a in both directions. I may be barking up the wrong tree

Re: New Bugzilla component for keeping comm-central in sync with mozilla-central

2020-07-07 Thread Geoff Lankow
ird is made relative to my work on Firefox (and I couldn't find a document online). -tom On Tue, Jul 7, 2020 at 3:45 AM Geoff Lankow wrote: Hi everybody Many changes to mozilla-central code require complementary changes to comm-central code. Communication about this hasn't always

New Bugzilla component for keeping comm-central in sync with mozilla-central

2020-07-06 Thread Geoff Lankow
Hi everybody Many changes to mozilla-central code require complementary changes to comm-central code. Communication about this hasn't always been effective, which leads to breakages that could have been prevented, and wasted developer time. We now have a dedicated Bugzilla component for aler

Re: How best to do async functions and XPCOM?

2019-12-12 Thread Geoff Lankow
Thanks to all who replied, including Kris whose reply seems to have not made it back to the list. As per usual when I ask for help I've been immediately distracted by something more urgent and not got back to the problem at hand. :-/ As some pointed out this would be a lot easier if I was excl

How best to do async functions and XPCOM?

2019-12-06 Thread Geoff Lankow
Hi all I'm redesigning a bunch of Thunderbird things to be asynchronous. I'd like to use Promises but a lot of the time I'll be far from a JS context so that doesn't really seem like an option. The best alternative I've come up with is to create some sort of listener object and pass it to the

Finding windows and docshells leaked until shutdown

2019-10-02 Thread Geoff Lankow
Hi all, I need some advice. I'm trying to enable Mochitest on debug builds of Thunderbird. It works fine, except for the leak check, which finds a number of leaked windows and docshells. Obviously we don't want to leak these things, but I can't find what's holding onto them. I've ruled out a

Re: Help: why won't Thunderbird display mail in mochitest conditions?

2019-08-28 Thread Geoff Lankow
hange from the usual!) GL On 27/08/19 10:40, Geoff Lankow wrote: Hi Over the past year or so, I've been adding mochitests for new Thunderbird features. It's recently occurred to me that in a mochitest, Thunderbird does not display mail messages. Not even the message header lis

Re: Help: why won't Thunderbird display mail in mochitest conditions?

2019-08-28 Thread Geoff Lankow
f is well outside my areas of expertise so I was hoping somebody out there had a simple answer. ;-) GL On 28/08/19 22:23, Gijs Kruitbosch wrote: On 26/08/2019 23:40, Geoff Lankow wrote: Hi Over the past year or so, I've been adding mochitests for new Thunderbird features. It's rece

Re: Help: why won't Thunderbird display mail in mochitest conditions?

2019-08-28 Thread Geoff Lankow
ocs/Mozilla/Projects/Mochitest#Running_flavors_and_subsuites) Is the Thunderbird tabbed UI its own normal XUL window self, or is it framed inside some type of iframe that it's not normally framed by? Andrew On 8/26/19 6:40 PM, Geoff Lankow wrote: Hi Over the past year or so, I've bee

Help: why won't Thunderbird display mail in mochitest conditions?

2019-08-26 Thread Geoff Lankow
Hi Over the past year or so, I've been adding mochitests for new Thunderbird features. It's recently occurred to me that in a mochitest, Thunderbird does not display mail messages. Not even the message header list, just a blank rectangle where the message should be. Obviously this is quite i

How do I inject the WebExtensions API into a ?

2018-08-28 Thread Geoff Lankow
I'm trying to make WebExtensions usable on Thunderbird. My current problem is trying to make moz-extension:// pages work in the UI. Everything happens as expected except the page has no access to the "browser" API. Can somebody show me how to set things up so the API is added to new browse

Getting files from builders to test machines

2018-07-01 Thread Geoff Lankow
On comm-central we have a number of extensions that get built alongside everything else, but are not shipped. (That is, building produces a .xpi file in objdir/dist/xpi-stage.) I'd like to be able to have them uploaded as build artefacts so they are available to download by testers (both human

Re: How can I find out when a background image is loaded?

2015-11-07 Thread Geoff Lankow
It's a lot harder to do what "background-size: cover" does, with an . GL On 07/11/15 14:34, Robert O'Callahan wrote: On Sat, Nov 7, 2015 at 2:17 PM, Geoff Lankow wrote: I'm displaying some quite large (6+ megapixels) images using CSS background-image, and somet

How can I find out when a background image is loaded?

2015-11-06 Thread Geoff Lankow
Hi all I'm displaying some quite large (6+ megapixels) images using CSS background-image, and sometimes want to swap one for another. If I just change the CSS property, there is a noticeable flicker as the first image is removed, then the second image is loaded and displayed. I want to avoid

Re: nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT and add-on chrome

2015-06-08 Thread Geoff Lankow
Ah, perfect. Thanks Boris. On 09/06/15 03:18, Boris Zbarsky wrote: On 6/8/15 6:57 AM, Geoff Lankow wrote: If I have an about page marked URI_SAFE_FOR_UNTRUSTED_CONTENT, it happily loads css/js from chrome://browser (in fact, about:home does this), but throws a security error loading from

nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT and add-on chrome

2015-06-08 Thread Geoff Lankow
If I have an about page marked URI_SAFE_FOR_UNTRUSTED_CONTENT, it happily loads css/js from chrome://browser (in fact, about:home does this), but throws a security error loading from chrome://foo. Is this intentional? Should I be filing a bug somewhere? GL

Re: Building with a RAM disk

2014-07-18 Thread Geoff Lankow
ivial; but then again, on Linux, the kernel is good enough at using extra RAM for disk cache automatically, that you get the benefits of a RAMdisk automatically). Benoit 2014-07-18 22:39 GMT-04:00 Geoff Lankow : Today I tried to build Firefox on a RAM disk for the first time, and altho

Building with a RAM disk

2014-07-18 Thread Geoff Lankow
Today I tried to build Firefox on a RAM disk for the first time, and although I succeeded through trial and error, it occurs to me that there are probably things I could do better. Could someone who regularly does this make a blog post or an MDN page about their workflow and some tips and trick

Re: Gamepad API problems

2014-04-02 Thread Geoff Lankow
I've tried both, and also Firefox built on this machine. On 03/04/14 15:16, Kevin Brosnan wrote: Using a Mozilla build or the Ubuntu package? http://nightly.mozilla.org/ or http://www.mozilla.org/en-US/firefox/all/ Kevin On Apr 2, 2014 6:15 PM, "Geoff Lankow" wrote: I&#x

Gamepad API problems

2014-04-02 Thread Geoff Lankow
I'm trying to use a gamepad in Firefox on Ubuntu 13.10. It shows up fine in lsusb and jstest, but neither Firefox nor Chromium seem to see it. It seems like I'm missing a crucial package or something. Any ideas? My code works fine if I forward the USB device to a VM, but I don't want to have t

Can we teach the updater to download and install multiple partial updates?

2013-11-20 Thread Geoff Lankow
It's very annoying to have to download a full update of Nightly (~40MB) if you miss one. It'd be a better experience to download two or more partial updates (usually < 10MB) and have the updater install them sequentially. [NB. I'm not suggesting doing anything else in the build, unlike in bug 5

Building with a pre-built libxul.so

2013-07-10 Thread Geoff Lankow
I recently discovered that I can build Firefox by downloading the XULRunner SDK and using it instead of compiling everything. Clobber to finished in under a minute. Great! (Ignoring the not-insignificant download time.) If I build this way I can hack the Firefox-specific UI. Not much else, inc