Re: Firefox debug build and https: sec_error_bad_signature
On Wed, 21 Nov 2012 04:17:35 +0200, Anthony Jones ajo...@mozilla.com wrote: I've seen this problem when building with Clang 2.9 on Linux but it seems to work fine with 3.0. Thanks! Good thing to check. I use clang 3.0: $ clang -v Ubuntu clang version 3.0-6ubuntu3 (tags/RELEASE_30/final) (based on LLVM 3.0) Target: x86_64-pc-linux-gnu Thread model: posix ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform
Re: Firefox debug build and https: sec_error_bad_signature
Thank you for your reply. On Wed, 21 Nov 2012 00:20:37 +0200, Brian Smith bsm...@mozilla.com wrote: Mihai Sucan wrote: Any https page I try to load shows: Peer's certificate has an invalid signature. Error code: sec_error_bad_signature I can't even run mochitests that load https pages. 1. Are you using --use-system-nss and/or --use-system-nspr? This is my mozconfig for dbg builds: https://github.com/mihaisucan/mozilla-work/blob/master/mozconfig/dbg I don't know what ./configure does. How can I check? 1.1: Are you trying to build 64-bit Firefox? I remember that 64-bit NSS doesn't always work. I'm on Ubuntu amd64. about:buildconfig: about:buildconfig Target: x86_64-unknown-linux-gnu Compiler: /usr/bin/ccache clang -Qunused-arguments -fcolor-diagnostics -w Flags: -Qunused-arguments -pedantic -Qunused-arguments -Wall -Wpointer-arith -Wdeclaration-after-statement -Werror=return-type -Wtype-limits -Wempty-body -Wno-unused -Wno-overlength-strings -Wno-long-long -fno-strict-aliasing -ffunction-sections -fdata-sections -pthread -pipe -DDEBUG -D_DEBUG -DTRACING -g -fno-omit-frame-pointer Compiler: /usr/bin/ccache clang++ -Qunused-arguments -fcolor-diagnostics -w Flags: -Qunused-arguments -pedantic -Qunused-arguments -Wall -Wpointer-arith -Woverloaded-virtual -Werror=return-type -Wtype-limits -Wempty-body -Wno-ctor-dtor-privacy -Wno-overlength-strings -Wno-invalid-offsetof -Wno-variadic-macros -Wno-c++0x-extensions -Wno-extended-offsetof -Wno-unknown-warning-option -Wno-return-type-c-linkage -Wno-mismatched-tags -Wno-long-long -fno-exceptions -fno-strict-aliasing -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -std=gnu++0x -pthread -pipe -DDEBUG -D_DEBUG -DTRACING -g -fno-omit-frame-pointer -Qunused-arguments Configure arguments: --enable-application=browser --disable-optimize --enable-debug --enable-tests --enable-chrome-format=symlink --with-ccache $ cclang -v Ubuntu clang version 3.0-6ubuntu3 (tags/RELEASE_30/final) (based on LLVM 3.0) Target: x86_64-pc-linux-gnu Thread model: posix $ file dist/bin/firefox-bin dist/bin/firefox-bin: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24 $ ccache -V ccache version 3.1.6 2. What compiler are you building with? See above. 3. Do things work with a new profile? Afaik, running mochitests always creates a new temporary profile and I have problems running them. I just tried with a new profile on my own (as a user): same problem. Here's what I get when I load google.com (something I haven't seen before): A PKCS #11 module returned CKR_DEVICE_ERROR, indicating that a problem has occurred with the token or slot. Error code: sec_error_pkcs11_device_error. 4. Do thinks work in safe mode and/or with all addons disabled? No addons installed - new profile. Tried -safe-mode as well, no luck. 5. File a bug, CC bsm...@mozilla.com, and attach one of the certificates to the bug. Which certificate should I attach? I have this problem with all https servers. :( Thanks again for your detailed questions. I hope my answers help us go towards a fix. Best regards, Mihai ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform
Re: Using anonymous namespace vs 'static'
On Wednesday, November 21, 2012 12:06:32 AM UTC-5, Robert O'Callahan wrote: On Wed, Nov 21, 2012 at 4:07 PM, net...@gmail.com wrote: Actually that seems quite easy. For example in FrameLayerBuilder.cpp I can add gMaskLayerImageCache to the watch window with no problems, even though it's in mozilla::{anonymous namespace}. Maybe it being static as well helps? Ya static is what makes that work. I don't know how. For example, I don't know how to set a breakpoint by name on GetMaskLayerImageCache, or ContainerState::ProcessDisplayItems. I have to open up the source file and click on a line. I also don't know how to cast to a ContainerState* in the expression evaluator. I was basically arguing a different point than what you meant. I was arguing that you can put a breakpoint on an anonymous symbol. Just not by an anonymous symbol easily. For example you can use the visual editor or set it by line number on top of an anonymous symbol. ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform
When nsGlobalWindow gets its principal?
Hi all, I'm completely re-implementing localStorage (and sessionStorage) implementation to be simpler and faster. One of features of the new code is a way to start async background cache preload as soon as we know global window is going to load a content page. The question is: where is a good place where nsGlobalWindow already knows its associated principal to trigger the preload? Thanks for help, -hb- ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform
Re: Firefox debug build and https: sec_error_bad_signature
On 2012-11-21, at 09:50 , David Dahl dd...@mozilla.com wrote: I have also experienced the same problem on ubuntu/clang - probably the same as yours. I downloaded a debug build from ftp.mozilla.org in order to test this with our official debug builds, which are built with gcc: There were many fixes since 3.0. We currently use the 3.2 branch in our bots for OS X. Can you give that a try? Cheers, David Cheers, Rafael ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform
Re: When nsGlobalWindow gets its principal?
On 11/21/12 9:50 AM, Honza Bambas wrote: The question is: where is a good place where nsGlobalWindow already knows its associated principal to trigger the preload? Outer window, or inner window? Also, do you need to know the exact principal, or just not system? -Boris ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform
abort listener not executed for XHR
I am registering a listener for abort event in XHR xhr.addEventListener(abort, onAbort, false); but it isn't executed in the following case: var request = new XMLHttpRequest(); request.open(POST, issue2462.php, true); request.send(null); request.abort(); nsIEventListenerService.addListenerForAllEvents doesn't work either Am I doing something wrong? (the listener is added in chrome scope) Honza ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform
Re: Firefox debug build and https: sec_error_bad_signature
On Wed, 21 Nov 2012 16:54:35 +0200, Rafael Ávila de Espíndola respind...@mozilla.com wrote: On 2012-11-21, at 09:50 , David Dahl dd...@mozilla.com wrote: I have also experienced the same problem on ubuntu/clang - probably the same as yours. I downloaded a debug build from ftp.mozilla.org in order to test this with our official debug builds, which are built with gcc: There were many fixes since 3.0. We currently use the 3.2 branch in our bots for OS X. Can you give that a try? Found a clang 3.1 ubuntu ppa. Tried it. It works! Thank you Rafael! Best regards, Mihai ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform
Re: When nsGlobalWindow gets its principal?
On 11/21/2012 4:06 PM, Boris Zbarsky wrote: On 11/21/12 9:50 AM, Honza Bambas wrote: The question is: where is a good place where nsGlobalWindow already knows its associated principal to trigger the preload? Outer window, or inner window? The same window localStorage getter is called on, so the *inner* one. Also, do you need to know the exact principal, or just not system? I need complete principal, since it is needed to map localStorage data (actually, the origin string and if present, appid+browser flag) Thanks -hb- -Boris ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform
Update your Snappy status for Nov 22 (no meeting this week)
Please share your Snappy status on the etherpad by EOD Thursday. https://etherpad.mozilla.org/snappy Lawrence ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform
Re: Are there plans for a chrome js debugger?
On 8/1/2011 6:55 AM, Panos Astithas wrote: We're not quite there yet, but as soon as we have a functional debugger for content, a debugger for chrome will soon follow. Panos What's the status of the chrome debugger? ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform
Re: Are there plans for a chrome js debugger?
On 22/11/2012 2:42 p.m., al...@yahoo.com wrote: What's the status of the chrome debugger? Pretty good - it has some rough(/sharp) edges, but I've found it to be usable for chrome work. See: https://campd.wordpress.com/2012/11/12/firefox-and-addon-developers-should-set-devtools-chrome-enabled/ - Blair ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform