Re: Questions about bindings for L20n

2016-06-10 Thread Neil Deakin
On 2016-06-10 4:51 AM, zbranie...@mozilla.com wrote: While working on the new localization API (See Intent to Implement post from yesterday), we're developing bindings into UI languages used by Firefox and we have some decisions to make that could be better answered by this group. The general

Re: Intent to ship: unprefix :dir pseudo-class

2016-05-11 Thread Neil Deakin
On 2016-05-11 4:31 AM, Cameron McCormack wrote: Mike de Boer: We use :-moz-locale-dir extensively in frontend code. Who will own converting that to the unprefixed version? Or, if :-moz-locale-dir is still supported after the transition period, can we discuss deprecating it in favour of unprefixe

Re: Hash files, signature and key now missing from release directory

2016-04-12 Thread Neil Harris
On 12/04/16 17:32, Ralph Giles wrote: On Tue, Apr 12, 2016 at 3:51 AM, Neil Harris wrote: for example, http://releases.mozilla.org/pub/firefox/releases/45.0.1/ Also note that the releases.mozilla.org host supports https, which offers an additional verification path. -r Yes, indeed it

Hash files, signature and key now missing from release directory

2016-04-12 Thread Neil Harris
security. If this is an oversight, could it be remedied, please? If this is a deliberate change, could someone please provide a rationale for the changes? Kind regards, Neil Harris ___ dev-platform mailing list dev-platform@lists.mozilla

Re: navigator.clipboard

2016-03-10 Thread Neil Deakin
g/show_bug.cgi?id=1221562) about this. As an aside, in IE5 one could do: window.clipboardData.setData("text/plain", "Data"); So the proposed syntax has some precedent. Neil On 2016-03-10 3:00 PM, Hallvord Reiar Michaelsen Steen wrote: People kindly pointed out to me that

Re: e10s tests

2016-01-26 Thread neil
ing existing tests and for writing new tests. This is based on a similar talk I gave during the last work week. I can help anyone with converting and enabling tests; if not, the rest of the e10s team will be happy to help with any test issues. Neil _

Re: Question: "Chrome file doesn't exist: ..." in |make mozmill| log by running DEBUG versions of C-C TB

2015-11-25 Thread Neil
ISHIKAWA,chiaki wrote: Does anybody have an idea of the issue of > 113 Chrome file doesn't exist: /NREF-COMM-CENTRAL/objdir-tb3/dist/bin/chrome/messenger/content/messenger/messengercompose/null "null" can't be right. A test is probably trying to set the src of an image to null instea

Re: FYI: updating yasm on build machines

2015-11-20 Thread Neil
Chris Peterson wrote: mozilla-build tools already use 1.3 When did it get upgraded? (My mozilla-build only has yasm 1.1) -- Warning: May contain traces of nuts. ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/l

Re: How to stop the docShell to loading new URIs

2015-11-12 Thread Neil
Yonggang Luo wrote: I opened a window and I don't hope it's loading anymore URIs into the docShell. How to configure the docShell to do that. I think you can associate an nsIURIContentListener with the docShell and then the listener can tell the docShell not to handle content. (Sorry but I

Re: Intent to unship: jar: URIs from content

2015-10-15 Thread Neil
Robert O'Callahan wrote: I'm sad that I won't be able to use jar: URLs to load testcases in ZIP files uploaded to Bugzilla Or indeed any ZIP-like file, once you flip the appropriate pref. -- Warning: May contain traces of nuts. ___ dev-platform mai

Re: Building js/xul/css from Firefox faster

2015-10-02 Thread Neil
Mike Hommey wrote: ./mach build faster So is this the complete opposite of ./mach build binaries? -- Warning: May contain traces of nuts. ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform

Re: CloseFile() latency on Windows

2015-09-29 Thread Neil
Gregory Szorc wrote: Files are opened with _fopen() in "a+" mode if it matters. I can also repro in "a" mode. ... Short of going full overlapped I/O Overlapped I/O isn't supported for operations that change the valid data length of the file. http://blogs.msdn.com/b/oldnewthing/archive/

Re: Changes in chrome JS code due to ES6 global lexical scope

2015-09-18 Thread Neil
Shu-yu Guo wrote: Good catch and thanks for the correction! The take-home from the example is that: due to the global lexical scope, a TDZ error could arise later due to newly introduced bindings. So for that I guess the code would have to look like this? var x; function f() { dump(x); } f()

Re: Changes in chrome JS code due to ES6 global lexical scope

2015-09-17 Thread Neil
Shu-yu Guo wrote: 4. The global lexical scope is extensible. This means dynamic scope (lol!): function f() { dump(x); } f(); // prints undefined​ ​ ​let x = 42; f(); // prints 42 Would you mind clarifying what this is supposed to demonstrate? It looks to me that this is demonstrating TDZ

Re: Alternative to Bonsai?

2015-09-15 Thread Neil
Joshua Cranmer 🐧 wrote: There is no git or mercurial repository that contains the full history of mozilla CVS. Slightly unsurprising, since the full history of mozilla CVS actually breaks most conversion tools. Even "CVS moved" files throw them a loop, I tried looking for blame for some code

Re: Is there any events before loading a URL to a docshell.

2015-09-15 Thread Neil
Mike Conley wrote: From the passed in nsIWebProgress[1], you should be able to get at the nsIDOMWindow, and from there, I *think* you can get to the nsIDocShell by QI'ing the nsIWebProgress to an nsIInterfaceRequestor and then GetInterface'ing nsIDocShell. I haven't tried this, but I'm reason

Re: You can now freely mix declarations and statements in all Mozilla C code

2015-09-10 Thread Neil
Nicholas Nethercote wrote: Therefore, 16 years later, you can now mix statements and declarations freely in Mozilla C code. We still have Mozilla C code? -- Warning: May contain traces of nuts. ___ dev-platform mailing list dev-platform@lists.mozi

Re: I think XUL overlays should also ignore query strings.

2015-08-16 Thread Neil
Philip Chee wrote: The first question that occurs to me is what is the rationale? Can we revisit this in 2015 to see if the original reason still holds? Back then ignoring the hash or the search were equally complicated; nowadays ignoring the hash is relatively easy. Anne van Kesteren wrote

Re: Fwd: mozilla::TemporaryRef is gone; please use already_AddRefed

2015-07-06 Thread Neil
Michael Layzell wrote: In summary, the nsRefPtr is copied into a temporary in its side of the conditional. The nullptr is cast to a struct Foo*, which is constructed into a nsRefPtr, which is bound to a temporary, and then moved around a bit between temporaries. The resulting temporary xvalue

Re: mozilla::TemporaryRef is gone; please use already_AddRefed

2015-07-03 Thread Neil
Aryeh Gregor wrote: we still want a new type for function parameters that accepts implicit conversions from nsRefPtr/nsCOMPtr, to use instead of raw pointers. Sure, but that won't stop someone from writing Arg foo = ReturnFoo2(); will it? -- Warning: May contain traces of nuts.

Re: mozilla::TemporaryRef is gone; please use already_AddRefed

2015-07-03 Thread Neil
Nathan Froyd wrote: I guess we could fix this in current m-c to be smarter about the parameter passing, perhaps by declaring that ParameterStorage> is StoreCopyPassByConstLRef>? (Similarly for nsRefPtr.) So what's StorensRefPtrPassByPtr for? -- Warning: May contain traces of nuts.

Re: mozilla::TemporaryRef is gone; please use already_AddRefed

2015-07-02 Thread Neil
Nathan Froyd wrote: I tried this, fixed a few compilation errors, then decided this wasn't worth it just yet and threw my work into a bug. Comments appreciated: https://bugzilla.mozilla.org/show_bug.cgi?id=1179451 1. It's because QueryInterface has to addref, so we can't directly p

Re: mozilla::TemporaryRef is gone; please use already_AddRefed

2015-07-02 Thread Neil
Jeff Muizelaar wrote: I believe this is predicated on removing the implicit conversion from nsRefPtr to T* Would you mind reminding me what the failure case this avoids is? -- Warning: May contain traces of nuts. ___ dev-platform mailing list dev-p

Intent to remove: support for old drag events

2015-06-09 Thread Neil Deakin
In bug 1162050, we'd like to remove support for the old non-standard drag events, which were left in for a period of compatibility. The 'draggesture' event should be replaced with the 'dragstart' event (such as ondragstart) The 'dragdrop' event should be replaced with the 'drop' event. If you

Re: nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT and add-on chrome

2015-06-09 Thread Neil
Boris Zbarsky wrote: That said, it's pretty weird to me that we're exposing the entirety of chrome://browser like that. Seems like we should scope it down. You could move the relevant files (presumably the CSS for those about: pages) into a different package. (Thunderbird did that with its

Re: Intent to implement and ship: document.execCommand("cut"/"copy")

2015-05-26 Thread Neil Deakin
On 2015-05-26 10:42 AM, Jesper Kristensen wrote: It would be much faster if I could just present a "Paste data" or "Upload from clipboard" button, which could load the data from the clipboard directly into a JavaScript string without first trying to render it. I feel that doing this by handling t

Re: NS_LITERAL_CSTRING

2015-05-17 Thread Neil
FYI The patch to make NS_LITERAL_CSTRING only work with string literals (and preprocessor macros that expand to string literals) has now been merged to mozilla-central. -- Warning: May contain traces of nuts. ___ dev-platform mailing list dev-platform

Re: Changing the style guide's preference for loose over strict equality checks in non-test code

2015-05-16 Thread Neil
Boris Zbarsky wrote: DOM constructors have an instanceof behavior that is global-agnostic. Well, window-agnostic; instanceof is harder to use in components or modules. -- Warning: May contain traces of nuts. ___ dev-platform mailing list dev-platfor

Re: Changing the style guide's preference for loose over strict equality checks in non-test code

2015-05-16 Thread Neil
Gijs Kruitbosch wrote: On 14/05/2015 18:12, Martin Thomson wrote: I have no idea what you are talking about. I have never had cause to use new String() anywhere. .toString() maybe. There are more than 1000 hits for "new String(" in MXR, so our codebase disagrees. Most if these are in JS

Re: Intent to implement and ship: document.execCommand("cut"/"copy")

2015-05-06 Thread Neil Deakin
On 2015-05-06 2:38 PM, Adam Roach wrote: In any case, we should have a better technical exploration of the assertion that restoring a clipboard isn't possible in all cases before we take it as given. A cursory examination of the OS X clipboard API leads me to believe that this would be trivially

Re: NS_LITERAL_CSTRING

2015-04-28 Thread Neil
Ehsan Akhgari wrote: On 2015-04-27 6:29 AM, Neil wrote: I found the following in-tree examples, none of which would have worked with NS_LITERAL_STRING: These are terrible! But what should we replace them with? 1. Change all of those static const char arrays back into #define 2

NS_LITERAL_CSTRING

2015-04-27 Thread Neil
NS_LITERAL_STRING, as its name suggests, only ever gets used on string literals, or macros that expand to string literals. NS_LITERAL_CSTRING gets (ab?)used in all sorts of ways. Should we be consistent and require NS_LITERAL_CSTRING to be used on string literals? I found the following in-tree

Re: Excessive inbound bustage

2015-04-24 Thread Neil
Mike Hommey wrote: the biggest number of changesets pushed by someone without a backout in the last 25271 changesets is 126. But what's their Try usage like? -- Warning: May contain traces of nuts. ___ dev-platform mailing list dev-platform@lists.m

Re: PSA: moz_malloc, moz_realloc, moz_calloc and moz_free are no more

2015-03-31 Thread Neil
Mike Hommey wrote: 1. if you look for it, you'll find cases of one family used for allocation and another for deallocation, for possibly close to all combinations of families (NS_Alloc, nsMemory, moz_malloc, malloc, new). It used to be that you didn't have to look very hard. (At one

dev-platform@lists.mozilla.org

2015-03-02 Thread Neil
Xidorn Quan wrote: The method name AssignLiteral can easily make people at the callee side think it makes the string point to a piece of static data, which has no runtime penalty. But this is false. Actually nsACString::AssignLiteral used to copy too until I fixed it last year. Hence I

Re: HTTP/2 and User-Agent strings?

2015-01-28 Thread Neil
Aryeh Gregor wrote: I remember one particular bug in Firefox (which was only fixed years later) that I spent considerable effort trying to figure out how to work around without a UA string check, and eventually gave up. It was something like: if you append #foo to the URL while the page is l

Re: Good ways to view Firefox compile errors in a terminal?

2015-01-14 Thread Neil
Nathan Froyd wrote: Use the second cd command so mach is invoked from the correct directory. Absolute path to mach doesn't work? -- Warning: May contain traces of nuts. ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.moz

Re: PSA: Support for building with Windows SDK <8.1 removed from Gecko 37

2015-01-09 Thread Neil
Joshua Cranmer 🐧 wrote: On 1/8/2015 10:05 AM, Mike Hoye wrote: I'm revisiting our docs in light of this to figure out what our real minimum hardware/ram/disk requirements are. The temptation to start adding "If you try to build Firefox with 2 gigs of RAM, you're gonna have a bad time" memes

Re: Dropping support for MSVC2012

2015-01-06 Thread Neil
Ted Mielczarek wrote: Especially with something like MSVC, where some contributors have actually paid for Pro versions of the suite and telling them to upgrade involves spending actual money that can be a huge deterrent. That's unfortunate since the professional VC2005, VC2008, VC2010 and n

Re: Getting rid of already_AddRefed?

2014-12-24 Thread Neil
Ehsan Akhgari wrote: On 2014-12-23 5:30 PM, Eric Rescorla wrote: nothing stops the callee from simple assigning the raw pointer to some location that outlives the function call. That's actually pretty easy to detect and disallow! Filed bug 1115175. Although we want to allow it in the case

Re: PSA: Support for Visual C++ 2010 has been dropped

2014-12-19 Thread Neil
Neil wrote: Neil wrote: Mike Hommey wrote: On Wed, Dec 17, 2014 at 06:06:25PM +, Neil wrote: I downloaded the MSVC 2013 Community Edition, but there was no sign of an SDK, so I downloaded that separately. Is this expected? If so, I'll update MDN. The SDK comes with it. So yo

Re: PSA: Support for Visual C++ 2010 has been dropped

2014-12-18 Thread Neil
Neil wrote: Mike Hommey wrote: On Wed, Dec 17, 2014 at 06:06:25PM +, Neil wrote: I downloaded the MSVC 2013 Community Edition, but there was no sign of an SDK, so I downloaded that separately. Is this expected? If so, I'll update MDN. The SDK comes with it. So you say, b

Re: PSA: Support for Visual C++ 2010 has been dropped

2014-12-18 Thread Neil
Mike Hommey wrote: On Wed, Dec 17, 2014 at 06:06:25PM +, Neil wrote: Ehsan Akhgari wrote: MSVC 2012 and 2013 can still be used to build Firefox on Windows. I downloaded the MSVC 2013 Community Edition, but there was no sign of an SDK, so I downloaded that separately. Is this

Re: PSA: Support for Visual C++ 2010 has been dropped

2014-12-17 Thread Neil
Ehsan Akhgari wrote: MSVC 2012 and 2013 can still be used to build Firefox on Windows. I downloaded the MSVC 2013 Community Edition, but there was no sign of an SDK, so I downloaded that separately. Is this expected? If so, I'll update MDN. -- Warning: May contain traces of nuts.

Re: prebuilt libraries?

2014-11-28 Thread Neil
Gregory Szorc wrote: Please read http://www.conifersystems.com/whitepapers/gnu-make/. "after a command fails, |make| does not delete the partially built output file" .DELETE_ON_ERROR was added to address this. -- Warning: May contain traces of nuts.

Re: New chrome-only API to inject content on top of the page

2014-10-29 Thread Neil
Patrick Brosset wrote: The discussion [2] that led to the bug was about finding a solution to display the devtools highlighter (the box-model overlay you see when inspecting a page with the devtools) in a way that would work on anything that runs gecko (indeed, prior to this bug, the devtools

Re: Switching to Visual Studio 2013

2014-10-22 Thread Neil
Mike Hommey wrote: note that the express version requires to be registered, now. Technically that's only true if you want to build or debug using Visual Studio rather than the command-line tools, but that's still a pain. -- Warning: May contain traces of nuts. _

Re: Using __declspec(thread) on Windows

2014-10-17 Thread Neil
Robert O'Callahan wrote: I assume no-one's finding the Firefox libxul.dll and loading it from their own .EXE I assume people are finding the XULRunner libxul.dll and loading it from their own .EXE -- Warning: May contain traces of nuts. ___ dev-

Re: Compiler version expectations

2014-10-17 Thread Neil
Syd Polk wrote: Does MSVC 2013 run on Windows XP? We still support Win XP for the browser; do we support building on it? You can't create a stock build on XP since the latest SDK is 7.1 and the gamepad code needs 8.0 and the DirectX code would like it too. -- Warning: May contain traces o

Re: The worst piece of Mozilla code

2014-10-17 Thread Neil
Mike Hoye wrote: I mean, if you find somebody in their office today curled up in a ball, rocking back and forth and muttering "mork, mork, mork" over and over again, that person's having a bad flashback. Call for help, stay with them. Tell them we've got sqlite now and it's going to be OK. T

Re: The worst piece of Mozilla code

2014-10-17 Thread Neil
Nicholas Nethercote wrote: I was wondering what people think is the worst piece of code in the entire Mozilla codebase. I'll leave the exact meanings of "worst" and "piece of code" unspecified... When you get time, find someone to tell you about Morse code. (No, I don't mean Samuel.) -- War

Re: The worst piece of Mozilla code

2014-10-17 Thread Neil
Ehsan Akhgari wrote: Speaking about code that causes correctness bugs that actually affect our end users, the best example that I know is editor/. Not just correctness, but the unique way it use pointers to nsCOMPtr all over... -- Warning: May contain traces of nuts. ___

Re: Moratorium on new XUL features

2014-10-16 Thread Neil
Boris Zbarsky wrote: The situation is that we have a bunch of unmaintained code that complicates layout. Out of interest, what does it do that complicates layout? You mentioned the box model of course, but what else is there? -- Warning: May contain traces of nuts. _

Re: Breakdown of Firefox full installer

2014-10-15 Thread Neil
Gregory Szorc wrote: If you treat all files from those two archives as a single compression context Aha, this was the bit I was overlooking. Sorry for the confusion. -- Warning: May contain traces of nuts. ___ dev-platform mailing list dev-platform@

Re: Breakdown of Firefox full installer

2014-10-15 Thread Neil
Robert Strong wrote: Another example, if the omni.jar is not compressed the installer can compress it about as well as if they were individual files and the minimal compression currently used by omni.jar makes it so the installer is not able to compress the omni.jar nearly as well which incre

Re: Breakdown of Firefox full installer

2014-10-14 Thread Neil
Gregory Szorc wrote: If you are looking for ideas on how to reduce download size, the way omni.ja is included in the installer could be reduced by 4+ MB. Both omni.ja and browser/omni.ja are zip archives, where each file has a separate compression context. If you treat all files from those two

Re: Why does nsWindowMediator have a lock?

2014-10-06 Thread Neil
Josh Matthews wrote: As far as I can tell, nsWindowMediator::mListLock protects mOldestWindow and mTopmostWindow. However, the only direct users of nsWindowMediator are the enumerators in nsAppShellWindowEnumerator.cpp, and all uses of nsIWindowMediator that I could find appear to be in JS (i

Re: Using c++11 right angle bracket in template code?

2014-10-06 Thread Neil
Ehsan Akhgari wrote: The usage of the iterator object which can also store state allows you to check for that exact pattern, so arguably you won't lose anything using range-based for loops if we added a good iterator implementation to nsTArray that checks for mutations. If you need to check

Re: Using c++11 right angle bracket in template code?

2014-10-06 Thread Neil
Trevor Saunders wrote: for (auto l = tarray.Length() - 1; l < tarray.Length(); l--) Which is how you'd iterate backwards over a non empty array. for (auto l = tarray.Length(); l-- > 0; ) -- Warning: May contain traces of nuts. ___ dev-platform mail

Re: Xulrunner standalone application auto update stopped working

2014-10-06 Thread Neil
Manish wrote: Also we came across this error on console: Error: NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIStringBundle.GetStringFromName] Source File: XStringBundle Line: 21 If you had a debug build you could try setting a breakpoint here: http://

Re: How to make XUL 's each layer response to mouse events/

2014-09-28 Thread Neil
Yonggang Luo wrote: For example, I have the button on the top, and the tree under the button, I want both tree and button respond to mouse events. They can't both respond to mouse events. However the events that don't target the button may miss the tree because there is an intervening elem

Re: Extension development - Compilation issues with Firefox 33 SDK

2014-09-07 Thread Neil
Shanmugham Sundaram wrote: Till FF 32, we did not have issue in compiling the following function const jschar* GetStringCharsZ(JSContext *cx, JSString *str) const throw() { if( !cx || !str) { return NULL; } return JS_GetStringCharsZ(cx, str); }

Re: PSA: ./mach build doesn't work reliably any longer

2014-09-04 Thread Neil
Mike Hommey wrote: I guess this comes from installing test files. Is there a build target that just installs installable files? (Although presumably unless you're using Windows they should probably be symlinks in which case you don't need to reinstall them.) -- Warning: May contain traces

Re: Upcoming changes to autocomplete code affecting Thunderbird

2014-08-27 Thread Neil
Paolo Amadini wrote: The first changes to autocomplete will land in the next few weeks. So do you have some bug numbers you can quote us? -- Warning: May contain traces of nuts. ___ dev-platform mailing list dev-platform@lists.mozilla.org https://

Re: Switching to Visual Studio 2013

2014-08-26 Thread Neil
Ehsan Akhgari wrote: I was talking about MSVC2012 + the November CTP. We absolutely don't want to support older versions of 2012 (or 2013 for that matter.) What does that mean and why isn't it mentioned on MDN? -- Warning: May contain traces of nuts. _

Re: Switching to Visual Studio 2013

2014-08-23 Thread Neil
David Major wrote: * No more linker OOM crashes. VS2013 includes a 64-bit toolchain for 32-bit builds, so the linker will no longer be limited to 4GB address space. So will you be requiring 64-bit builders? -- Warning: May contain traces of nuts. _

Re: Running mochitests from a copy of the objdir?

2014-08-20 Thread Neil
Ted Mielczarek wrote: it requires you to specify all of the relevant options. And where are these options documented? -- Warning: May contain traces of nuts. ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/li

Re: Opening windows hidden, showing windows lowered

2014-08-20 Thread Neil
Jan Varga wrote: On 20/08/14 10:50, David Rajchenbach-Teller wrote: I'm looking for: 1. an API to open a XUL window but keep it invisible; 2. an API to make an invisible XUL window visible, but behind the currently active window; I remember that the Composer in Mozilla Suite was doing somet

Re: Running mochitests from a copy of the objdir?

2014-08-20 Thread Neil
Ted Mielczarek wrote: our supported use cases are "run from mach" and "run from the test package". How does a test package differ from an objdir? Do you still need an entire build environment to run a test package? -- Warning: May contain traces of nuts. ___

Re: Running mochitests from a copy of the objdir?

2014-08-20 Thread Neil
Neil wrote: Gregory Szorc wrote: Well, mach seems to be working for people doing m-c development. [Still needs a working build environment, while python runtests.py just used to need an objdir.] In fact there was a time where I could cross-compile and copy the objdir onto the target OS

Re: Running mochitests from a copy of the objdir?

2014-08-20 Thread Neil
Gregory Szorc wrote: Well, mach seems to be working for people doing m-c development. [Still needs a working build environment, while python runtests.py just used to need an objdir.] -- Warning: May contain traces of nuts. ___ dev-platform mailing

Re: Running mochitests from a copy of the objdir?

2014-08-19 Thread Neil
Gregory Szorc wrote: On 8/19/14 2:11 PM, Neil wrote: Gregory Szorc wrote: I think the underlying bug here is "mach mochitest doesn't work for comm-central." It should. I'm sure there is a bug on file somewhere. Fair enough, but for when it does work, what's th

Re: Running mochitests from a copy of the objdir?

2014-08-19 Thread Neil
Gregory Szorc wrote: I think the underlying bug here is "mach mochitest doesn't work for comm-central." It should. I'm sure there is a bug on file somewhere. Fair enough, but for when it does work, what's the mach version of python runtests.py? -- Warning: May contain traces of nuts. __

Re: Running mochitests from a copy of the objdir?

2014-08-19 Thread Neil
Jonathan Griffin wrote: Can you show us the command-line you're using? ../path/to/python runtests.py -- Warning: May contain traces of nuts. ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform

Re: Running mochitests from a copy of the objdir?

2014-08-19 Thread Neil
Gregory Szorc wrote: On 8/18/2014 4:45 PM, Neil wrote: Time was that you could just python runtests.py to run mochitests. Then we needed modules that you don't get in the default python, so you had to invoke python from the virtualenv instead. Now that doesn't work either, be

Running mochitests from a copy of the objdir?

2014-08-18 Thread Neil
Time was that you could just python runtests.py to run mochitests. Then we needed modules that you don't get in the default python, so you had to invoke python from the virtualenv instead. Now that doesn't work either, because it's trying to run .mozconfig, so my questions are a) why and b) h

Re: Exporting user configurations

2014-08-18 Thread Neil
Nicholas Nethercote wrote: One of the commenters made an interesting suggestion: some kind of about:config export tool that would make it easier for Firefox devs to reproduce these kinds of problems. The profile prefs.js only contains the modified preferences, if that's all you need. --

Re: Upcoming changes to autocomplete code affecting Thunderbird

2014-08-15 Thread Neil
Paolo Amadini wrote: On 8/15/2014 3:27 PM, Neil wrote: *SeaMonkey's search bar uses toolkit's autocomplete widget but SeaMonkey's popup. You're saying that it manually binds to Toolkit's autocomplete.xml? Indeed, http://mxr.mozilla.org/comm-central/s

Re: Upcoming changes to autocomplete code affecting Thunderbird

2014-08-15 Thread Neil
Paolo Amadini wrote: It soon became apparent that most of the autocomplete code was designed for synchronous operation Synchronous operation of what? Autocomplete works like this: You ask for some results; some time later, you get some results. How could that be less synchronous? In fact,

Re: Upcoming changes to Mac package layout, signing

2014-08-14 Thread Neil
Benjamin Smedberg wrote: On 8/13/2014 3:34 AM, Philipp Kewisch wrote: Does this also affect binary extensions in any way? I'd imagine that globally installed extensions would break signing if placed incorrectly. You cannot place anything in the Firefox bundle. Any extensions, binary or not,

Re: Getting rid of already_AddRefed?

2014-08-14 Thread Neil
Aryeh Gregor wrote: for instance, here's a real-world bit of code from nsWSRunObject: if ((aRun->mRightType & WSType::block) && IsBlockNode(nsCOMPtr(GetWSBoundingParent( { GetWSBoundingParent() returns an already_AddRefed Well there's your problem: GetWSBoundingParent doesn'

Re: Getting rid of already_AddRefed?

2014-08-13 Thread Neil
Karl Tomlinson wrote: Aryeh Gregor writes: The compiler is required to use the move constructor (if one exists) instead of the copy constructor when constructing the return value of a function, and also when initializing an object from the return value of a function, or assigning the return

Re: Getting rid of already_AddRefed?

2014-08-12 Thread Neil
Aryeh Gregor wrote: 2) It's easier to use, as evidenced by the patches in bugs 1015114 and 1052477. No .forget() is needed, a raw pointer can be returned directly, even things like do_QueryInterface can be returned directly without a temporary nsCOMPtr (since the return type creates the temp

Re: I want to implement a ListBox that contains one million(1, 000, 000) custom vbox, how to speed it up.

2014-08-01 Thread Neil
Paul Rouget wrote: Yonggang Luo wrote: The vbox's content comes from a large database. Is there any standard way to implement it A xul listbox? You probably want to use a treeview. It's designed for such use cases. Doesn't help if he needs a custom vbox. -- Warning: May contain t

Re: Introducing mozilla::UniquePtr and mozilla::MakeUnique for |new T| and |new T[]| resources

2014-08-01 Thread Neil
Jeff Walden wrote: Additionally, UniquePtr is best used by threading it through interfaces, beyond just immediate use sites. Rather than returning a raw pointer, code should return UniquePtr instead. Rather than extracting a raw pointer to pass to a method, code should pass Move(ptr) instea

Re: TOOL_DIRS, TEST_TOOL_DIRS and PARALLEL_DIRS are no more

2014-07-31 Thread Neil
Mike Hommey wrote: - TOOL_DIRS Does that mean that the tools tier is no more? How do you get something done after jar.mn processing? -- Warning: May contain traces of nuts. ___ dev-platform mailing list dev-platform@lists.mozilla.org https://list

Re: I was creating a XUL application and want to enable a bunch of extensions at the first startup,

2014-07-31 Thread Neil
Yonggang Luo wrote: How to do that? I want to do it programmatically, such as by using Javascript code. The extensions.autoDisableScopes application preference controls the first startup state of extensions, so you can set it to a value convenient for your application. -- Warning: May co

e10s startup?

2014-07-29 Thread Neil
How do toolkit components in content processes start themselves up, does it all have to be done through content scripts loaded by the message manager? -- Warning: May contain traces of nuts. ___ dev-platform mailing list dev-platform@lists.mozilla.org

Re: Deprecating localstore.rdf

2014-07-23 Thread Neil
Mike Hommey wrote: Who would object to less use of the rdf code? Especially as you get to reinvent each replacement independently! -- Warning: May contain traces of nuts. ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.m

Re: Intent to Transition from TBPL to Treeherder

2014-07-23 Thread Neil
I get a slow script warning in my unoptimised nondebug build when the page first loads :\ IMHO closing the detail pane should unhighlight the build. Boris Zbarsky wrote: 3) The revision id is linkified, but clicking it just focuses the corresponding push in treeherder. Can I get links to th

Re: Windows 7 Program Compatibility Assistant

2014-07-20 Thread Neil
Neil wrote: I have tried disabling the Application Compatibility Engine and the Program Compatibility Assistant through gpedit.msc (Administrative Templates\Windows Components\Application Compatibility) and so far have not had any problems running configure. As yet I have not tried

Windows 7 Program Compatibility Assistant

2014-07-20 Thread Neil
Recently I've found that configure has started to fail horribly often (i.e. most of the time) because of an inability to create conftest.exe, and I know that other people have been having issues with configure failing too. Previously we've been blaming antivirus software and/or Windows Search

Re: PSA: Refcounted classes should have a non-public destructor & should be MOZ_FINAL where possible

2014-07-10 Thread Neil
Daniel Holbert wrote: (a) Your class should have an explicitly-declared non-public destructor. (should be 'private' or 'protected') Except for refcounted base classes (which as you note need to have a protected virtual destructor), is there a correct style as to whether the destructor shou

Re: Reordering opened windows

2014-07-06 Thread Neil
David Rajchenbach-Teller wrote: We are considering redesigning slightly how windows are reopened by Session Restore, to ensure that most recently used windows are loaded first. I can't quite tell from your phrasing whether the bottleneck here is the time it takes to open windows. I'm assumi

Re: Are you interested in doing dynamic analysis of JS code?

2014-07-01 Thread Neil
Fitzgerald, Nick wrote: Honza and the Firebug folks have been asking for something like this for a while, and they can't completely remove dependency on the old debugger API until there is a replacement. https://bugzilla.mozilla.org/show_bug.cgi?id=797876 JSD1 just got removed in bug 800200

Re: Intent to implement: DOMMatrix

2014-06-08 Thread Neil
Benoit Jacob wrote: Strawman class diagram: Transformation / | \ / | \ /|\ / | \ Identity MatrixOther transform types e.g. Translation In such a world, the class containing the word "Matrix"

Re: Intent to implement: DOMMatrix

2014-06-06 Thread Neil
Rik Cabanier wrote: 1. isIdentity() We settled that this should mean that the matrix was never changed to a non identity state. Are you doing something similar for the 2d/3d case? -- Warning: May contain traces of nuts. ___ dev-platform mailing lis

Re: bugzilla can now show bugs that have been updated since you last visited them

2014-06-04 Thread Neil
Byron Jones wrote: thanks to dylan's work on bug 489028, bugzilla now tracks when you view a bug, allowing you to search for bugs which have been updated since you last visited them. I shared a basic search which I call "Unseen Changes". I was slightly disappointed that I couldn't search for

Re: Intent to implement: DOMMatrix

2014-06-04 Thread Neil
Dirk Schulze wrote: There was an argument that: if (matrix.isInvertible()) matrix.invert(); would force UAs to compute the determinant twice. Actually, UAs can be very smart about that. The determinant is a simple double. It can be stored and invalidated as needed internally. (If it

Re: Intent to implement: DOMMatrix

2014-06-03 Thread Neil
Rik Cabanier wrote: Still up for discussion: - rename isIdentity My understanding is that you want to use isIdentity/is2D as an optimisation for known classes of matrix, and what you're really interested in is if the matrix has had any 2D or 3D transforms applied to it, even if those transfo

  1   2   3   4   >