Re: Revisiting modelines in source files

2015-06-17 Thread Robert O'Callahan
As an experiment, we declared the coding style of rr to be whatever clang-format produces with rr's .clang-format file (which was tweaked to resemble Mozilla style, including an 80-char line limit). Overall I've been very happy with the results. Sometimes you get suboptimal linebreaking decisions,

Re: Revisiting modelines in source files

2015-06-17 Thread Robert O'Callahan
That reminds me: when I reformatted rr, I did manually change the code in a few places (usually around #ifdefs) so that clang-format's line breaking didn't go completely crazy. Rob -- oIo otoeololo oyooouo otohoaoto oaonoyooonoeo owohooo oioso oaonogoroyo owoiotoho oao oboroootohoeoro oooro

Re: GTK3 linux builds

2015-06-16 Thread Robert O'Callahan
On Wed, Jun 17, 2015 at 9:57 AM, Hubert Figuière h...@mozilla.com wrote: On 16/06/15 05:13 PM, Jeff Muizelaar wrote: Is there any reason not to support all the way back to the version of GTK (3.4) on the test machines? Between 3.10 and 3.14 there are bugs in the drag and drop code in Gtk3

Re: Intent to implement and ship: CSS and SVG filters for canvas 2D

2015-06-15 Thread Robert O'Callahan
On Tue, Jun 16, 2015 at 11:05 AM, Xidorn Quan quanxunz...@gmail.com wrote: On Tue, Jun 16, 2015 at 3:15 AM, Markus Stange msta...@themasta.com wrote: Summary: The filter property on CanvasRenderingContext2D allows authors to specify a filter that will get applied during canvas drawing. It

Re: Intent to implement and ship: CSS and SVG filters for canvas 2D

2015-06-15 Thread Robert O'Callahan
On Tue, Jun 16, 2015 at 11:23 AM, Robert O'Callahan rob...@ocallahan.org wrote: I think we're not quite there yet, but we're very close. There are two things I want before we ship: -- Get normative spec text up somewhere. -- Get a signal from some other browser vendor that they're OK

Re: Announcing MozillaBuild 2.0.0 Release

2015-06-14 Thread Robert O'Callahan
On Mon, Jun 15, 2015 at 1:00 PM, Xidorn Quan quanxunz...@gmail.com wrote: On Sun, Jun 14, 2015 at 9:03 AM, Ryan VanderMeulen rvandermeu...@mozilla.com wrote: SIGNIFICANT CHANGES * Added support for MSVC2015 and dropped support for MSVC 2013, WinSDK 8.1, and MSVC Express Edition.

Re: The War on Warnings

2015-06-09 Thread Robert O'Callahan
Does anyone know of a case where we had a regression that traded one assertion for another? I don't. Rob -- oIo otoeololo oyooouo otohoaoto oaonoyooonoeo owohooo oioso oaonogoroyo owoiotoho oao oboroootohoeoro oooro osoiosotoeoro owoiololo oboeo osouobojoeocoto otooo ojouodogomoeonoto.o

Re: The War on Warnings

2015-06-09 Thread Robert O'Callahan
On Wed, Jun 10, 2015 at 12:34 AM, Ryan VanderMeulen rya...@gmail.com wrote: On 6/9/2015 8:33 AM, Robert O'Callahan wrote: Does anyone know of a case where we had a regression that traded one assertion for another? I don't. How would we have found out? :) Detecting the regression some

Re: The War on Warnings

2015-06-04 Thread Robert O'Callahan
Usually I use NS_WARNING to mean something weird and unexpected is happening, e.g. a bug in Web page code, but not necessarily a browser bug. Sometimes I get useful hints from NS_WARNING spew leading up to a serious failure, but for those usages could probably be switched to PR_LOG without losing

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

2015-05-22 Thread Robert O'Callahan
On Sat, May 23, 2015 at 5:21 AM, Ehsan Akhgari ehsan.akhg...@gmail.com wrote: And that is exactly the point I have been trying to make. The potential for abuse definitely exists today, with Flash. And so far we have no evidence that this is an issue in practice today. At the very least, by

Re: Intent to deprecate: Insecure HTTP

2015-05-04 Thread Robert O'Callahan
On Mon, May 4, 2015 at 10:04 PM, Gervase Markham g...@mozilla.org wrote: On 03/05/15 03:39, Xidorn Quan wrote: This has been happening in the Internet in China. I would suggest you use 360 Secure Browser, one of the major browsers in China. They completely consider the experience of

Re: Is there an e10s plan for multiple content processes?

2015-05-04 Thread Robert O'Callahan
On Tue, May 5, 2015 at 10:29 AM, Leman Bennett (Omega X) Redacted.For.Spam@request.contact wrote: Inquiring minds would like to know. At the moment, e10s tabs is still somewhat slower than non-e10s. Multiple content processes would go a long way for more responsive navigation and less

Re: PSA: New C++11 features made available by dropping support for gcc-4.6 in Gecko 38

2015-04-30 Thread Robert O'Callahan
On Sat, Mar 21, 2015 at 4:14 AM, bo...@mozilla.com wrote: * member initializers Should we have any rules around these, or should we use them indiscriminately? I wonder particularly about initializers which are complicated expressions. Rob -- oIo otoeololo oyooouo otohoaoto oaonoyooonoeo

Re: Announcing Operation Instrument

2015-04-29 Thread Robert O'Callahan
On Thu, Apr 30, 2015 at 2:52 AM, Honza Bambas hbam...@mozilla.com wrote: Just let you know about my intensive work on Backtrack or Caller Chain which is about connecting Gecko Profiler and Task Tracer together to catch all (instrumented) inter-object and inter-thread calls + IO blocking, lock

Re: Announcing Operation Instrument

2015-04-27 Thread Robert O'Callahan
How is this related to PROFILER_LABELs, docshell ProfileTimelineMarkers, and VisualEventTracer? Rob -- oIo otoeololo oyooouo otohoaoto oaonoyooonoeo owohooo oioso oaonogoroyo owoiotoho oao oboroootohoeoro oooro osoiosotoeoro owoiololo oboeo osouobojoeocoto otooo ojouodogomoeonoto.o oAogoaoiono,o

Re: Excessive inbound bustage

2015-04-21 Thread Robert O'Callahan
On Wed, Apr 22, 2015 at 7:11 AM, Andrew Halberstadt ahalberst...@mozilla.com wrote: But contributors aside, it could be de-motivating for employees too. If I break inbound, I already feel really bad about it.. no need to rub it in my face :). If there are employees who are blatantly abusing

Re: Non-UTF-8 file paths on Gtk platforms

2015-04-13 Thread Robert O'Callahan
The argument for suggestion #1 seems irrefutable. Rob -- oIo otoeololo oyooouo otohoaoto oaonoyooonoeo owohooo oioso oaonogoroyo owoiotoho oao oboroootohoeoro oooro osoiosotoeoro owoiololo oboeo osouobojoeocoto otooo ojouodogomoeonoto.o oAogoaoiono,o oaonoyooonoeo owohooo osoaoyoso otooo oao

Re: The e10s throbber

2015-04-07 Thread Robert O'Callahan
On Wed, Apr 8, 2015 at 6:27 AM, Gavin Sharp ga...@gavinsharp.com wrote: We don't have telemetry yet. I've done some measurements and haven't found any cases where tab switching consistently takes longer in e10s. However, it's certainly possible that it does on average. Either way, it's

Nuwa on desktop

2015-04-07 Thread Robert O'Callahan
On Wed, Apr 8, 2015 at 8:00 AM, andreas@gmail.com wrote: Not sure do what degree we can replicate on Windows what we do on FFOS to launch content processes. The Cygwin people have looked into fork() in Windows a bit. Some links:

Re: Some site performance analysis from Google

2015-03-30 Thread Robert O'Callahan
On Tue, Mar 31, 2015 at 10:49 AM, Robert O'Callahan rob...@ocallahan.org wrote: This is a quick read and an interesting analysis of how various sites fail to achieve acceptable performance on mobile: https://docs.google.com/document/d/1K-mKOqiUiSjgZTEscBLjtjd6E67oiK8H2ztOiq5tigk/pub One

Some site performance analysis from Google

2015-03-30 Thread Robert O'Callahan
This is a quick read and an interesting analysis of how various sites fail to achieve acceptable performance on mobile: https://docs.google.com/document/d/1K-mKOqiUiSjgZTEscBLjtjd6E67oiK8H2ztOiq5tigk/pub Rob -- oIo otoeololo oyooouo otohoaoto oaonoyooonoeo owohooo oioso oaonogoroyo owoiotoho oao

Re: FYI: Serious windows bug affecting WebRTC when mem use is over 2GB

2015-03-26 Thread Robert O'Callahan
On Fri, Mar 27, 2015 at 5:05 AM, Andreas Gal andreas@gmail.com wrote: I guess we can add a command line option to our executable that calls the function and prints the results and exits and then invoke ourselves to do this in a new process and parse the output. What a silly bug. Surely

Re: SpiderMonkey and XPConnect style changing from |T *p| to |T* p|

2015-03-26 Thread Robert O'Callahan
On Fri, Mar 27, 2015 at 12:19 PM, Bobby Holley bobbyhol...@gmail.com wrote: \o/ Can we switch from 4-space to 2-space indentation at some point too? Together, those would remove the most glaring formatting differences. The others (bracing single-line consequents, aNamingWarts, etc) might be

Re: Refresh driver invalidate whole screen

2015-03-21 Thread Robert O'Callahan
On Sat, Mar 21, 2015 at 10:55 PM, Thinker K.F. Li thin...@codemud.net wrote: I was studying why maze solver from Microsoft is so slow with B2G and Gecko, in last few days. If I am right, I found refresh driver always invalidate whole region of display port, if there is, or visual overflow

Re: Intent to Ship: CSS Scroll Snapping on Desktop

2015-03-16 Thread Robert O'Callahan
On Tue, Mar 17, 2015 at 11:07 AM, Ehsan Akhgari ehsan.akhg...@gmail.com wrote: Is this feature worth having a hacks blog post about? (hint: I think so!) Yes! Rob -- oIo otoeololo oyooouo otohoaoto oaonoyooonoeo owohooo oioso oaonogoroyo owoiotoho oao oboroootohoeoro oooro osoiosotoeoro

Re: Intent to Ship: CSS Scroll Snapping on Desktop

2015-03-16 Thread Robert O'Callahan
Excellent! Rob -- oIo otoeololo oyooouo otohoaoto oaonoyooonoeo owohooo oioso oaonogoroyo owoiotoho oao oboroootohoeoro oooro osoiosotoeoro owoiololo oboeo osouobojoeocoto otooo ojouodogomoeonoto.o oAogoaoiono,o oaonoyooonoeo owohooo osoaoyoso otooo oao oboroootohoeoro oooro osoiosotoeoro,o

Using rr with test infrastructure

2015-03-12 Thread Robert O'Callahan
On Fri, Mar 13, 2015 at 12:34 PM, Seth Fowler s...@mozilla.com wrote: I guess (but don’t know for sure) that recording RR data for every test that gets run might be too expensive. It probably wouldn't be too expensive. The runtime overhead is low; the main cost is trace storage, but we can

Re: Project Silk on Desktop

2015-03-12 Thread Robert O'Callahan
On Fri, Mar 13, 2015 at 11:59 AM, Mason Chang mch...@mozilla.com wrote: Yeah it is, but I don’t really want to do another PR run when lots of people have already read about Silk on b2g. Feels spammy to me to do another one just a month after the previous one, but that’s my 2 cents. I see,

Re: UI Workers

2015-03-11 Thread Robert O'Callahan
I've posted a followup of sorts to public-houdini: https://lists.w3.org/Archives/Public/public-houdini/2015Mar/0020.html There have been no replies, so I suspect I've said something terribly incomprehensible and/or wrong :-). Rob -- oIo otoeololo oyooouo otohoaoto oaonoyooonoeo owohooo oioso

Re: Intent to ship: MouseEvent.offsetX/Y

2015-03-02 Thread Robert O'Callahan
On Tue, Mar 3, 2015 at 8:49 AM, Mike Taylor mi...@mozilla.com wrote: On 3/1/15 17:58, smaug wrote: Haven't changes from integer to doubles caused issues in some cases. Boris might recall some examples. IE just reverted from using doubles on MouseEvent for compat reasons:

Re: Intent to ship: MouseEvent.offsetX/Y

2015-03-02 Thread Robert O'Callahan
On Mon, Mar 2, 2015 at 7:00 PM, Chris Peterson cpeter...@mozilla.com wrote: Gecko's offsetX/Y could return doubles, for compatibility with the spec, that are always snapped to whole numbers, for compatibility with other browsers. Or Gecko could add random noise to the low bits of offsetX/Y

Re: Intent to ship: MouseEvent.offsetX/Y

2015-02-27 Thread Robert O'Callahan
On Sat, Feb 28, 2015 at 8:30 AM, Jeff Muizelaar jmuizel...@mozilla.com wrote: On Fri, Feb 27, 2015 at 2:21 PM, Robert O'Callahan rob...@ocallahan.org wrote: Oh, another issue is that I've followed the spec and made offsetX/Y doubles, whereas Blink is integers, which introduces a small

Re: Intent to ship: MouseEvent.offsetX/Y

2015-02-27 Thread Robert O'Callahan
On Sat, Feb 28, 2015 at 8:15 AM, Robert O'Callahan rob...@ocallahan.org wrote: Summary: CSSOM Views specify offsetX/Y properties on MouseEvent. Other browsers implement them. Many sites use it with a fallback for Firefox, but I've found at least one site that doesn't have a fallback. It's

Intent to ship: MouseEvent.offsetX/Y

2015-02-27 Thread Robert O'Callahan
Summary: CSSOM Views specify offsetX/Y properties on MouseEvent. Other browsers implement them. Many sites use it with a fallback for Firefox, but I've found at least one site that doesn't have a fallback. It's trivial to implement. Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=69787 Spec:

Re: UI Workers

2015-02-22 Thread Robert O'Callahan
On Fri, Feb 20, 2015 at 10:50 PM, Christopher Lord cl...@mozilla.com wrote: I'd like to see #1 implemented first for two reasons; 1- I know this is easy to do given our platform, and I expect the same for other browser vendors, and 2- behaviour here is 100% predictable. There is nothing

Re: UI Workers

2015-02-22 Thread Robert O'Callahan
On Fri, Feb 20, 2015 at 9:11 PM, Jonas Sicking jo...@sicking.cc wrote: On Thu, Feb 19, 2015 at 6:27 PM, Robert O'Callahan rob...@ocallahan.org wrote: Should UIWorkers have access to the full Worker API? It seems like there's no reason not to give them that. There's two use-cases that I

UI Workers

2015-02-19 Thread Robert O'Callahan
Last week in Sydney I spent a lot of time talking to Chrome devs about different approaches for 60fps effects in Web pages. There are three different kinds of approaches being discussed (so far): 1) Apple's animation-timeline proposal, which lets CSS animations use scroll position as an input

Re: [dev-servo] UI Workers

2015-02-19 Thread Robert O'Callahan
On Fri, Feb 20, 2015 at 4:02 PM, James Long longs...@gmail.com wrote: Personally I think what we *really* need to be working on is making all of the DOM APIs asynchronous. That's what Servo needs anyway. That's a step in the right direction for #3, and we can see much more we can

Re: e10s content processes and coordinate systems

2015-01-15 Thread Robert O'Callahan
On Fri, Jan 16, 2015 at 9:24 AM, Handyman david...@gmail.com wrote: I'm working on bug 1075670 ([e10s] event.screenX and event.screenY is wrong), which exposes a hole in the e10s architecture. Quickly, the issue is that the dom behavior in an e10s content process redefines screen coordinates

Re: Enhancing Gecko as a WebGL game platform

2015-01-13 Thread Robert O'Callahan
On Wed, Jan 14, 2015 at 4:56 AM, Mike de Boer mdeb...@mozilla.com wrote: 2. Optionally bypass the browser compositor when a WebGL context is in fullscreen mode. In this mode, WebGL draw calls would write to the OS back buffer directly, increasing performance. Of course, this would never be

Re: W3C Proposed Recommendation: longdesc

2015-01-06 Thread Robert O'Callahan
On Wed, Jan 7, 2015 at 3:37 PM, Jet Villegas jville...@mozilla.com wrote: The main downside I see is a potential Mozilla removes features used by disabled people... PR fiasco. I think we can avoid that with a better proposal that we do support. Maybe Marco Zehe would be interested in

Re: Can gecko be used as a Window manager in Linux CLI as it is used Firefox OS?

2014-12-07 Thread Robert O'Callahan
http://ifacethoughts.net/2007/07/21/pyro-desktop-inside-web/ -- oIo otoeololo oyooouo otohoaoto oaonoyooonoeo owohooo oioso oaonogoroyo owoiotoho oao oboroootohoeoro oooro osoiosotoeoro owoiololo oboeo osouobojoeocoto otooo ojouodogomoeonoto.o oAogoaoiono,o oaonoyooonoeo owohooo osoaoyoso otooo

Re: Proposal: Change the coding style guide to allow an 'o' prefix to indicate out-params

2014-12-05 Thread Robert O'Callahan
On Fri, Dec 5, 2014 at 12:08 PM, Seth Fowler s...@mozilla.com wrote: Well, converting all existing code to use this convention overnight definitely wouldn’t be worth it. And just adding this to the style guide will give us very little benefit *right now*. But I think if we add this to the

Re: Proposal: Change the coding style guide to allow an 'o' prefix to indicate out-params

2014-12-04 Thread Robert O'Callahan
On Thu, Dec 4, 2014 at 12:35 PM, Seth Fowler s...@mozilla.com wrote: I’d like to change the coding style guide to let us make out-params more obvious by using an ‘o’ prefix for their name instead of an ‘a’. For example, nsresult Modify(int aCount, size_t aSize, char* oResult); This will

Displaylists and layers discussion in Portland

2014-11-26 Thread Robert O'Callahan
Tuesday 4pm in the Medford Room. This discussion will focus on painting: how we go from a frame tree to a layer tree ready to be composited. I'll talk about what we currently do, what Blink does, where Blink is going, and where I think we should go. I've put my notes here so we can read, think and

Re: http-schemed URLs and HTTP/2 over unauthenticated TLS

2014-11-18 Thread Robert O'Callahan
On Wed, Nov 19, 2014 at 1:20 PM, Chris Peterson cpeter...@mozilla.com wrote: On 11/17/14 1:48 AM, Henri Sivonen wrote: As for cat and mouse, I'd prefer putting our cat-and-mouse energies into patching up https PKI instead of introducing a new cat-and-mouse situation to pay attention to.

Re: Intent to ship: CSSOM-View Scroll-Behavior CSS Property and CSSOM-View DOM Extensions for Smooth Scrolling

2014-10-31 Thread Robert O'Callahan
On Fri, Oct 31, 2014 at 7:21 PM, Jonas Sicking jo...@sicking.cc wrote: Which use-case do you need async for? The Adjust the scroll position down by 10 pixels atomically with the next reflow since I just added a 10 pixel element at the top of the page use case could be supported using

Re: Intent to ship: CSSOM-View Scroll-Behavior CSS Property and CSSOM-View DOM Extensions for Smooth Scrolling

2014-10-30 Thread Robert O'Callahan
On Fri, Oct 31, 2014 at 5:35 AM, Jonas Sicking jo...@sicking.cc wrote: Note that I can't find *any* functions in the spec which are descried as asynchronous. I can only find things like, for example, element.scrollBy(), which is defined in terms of reading scrollTop/scrollLeft, adding the

Re: Intent to ship: CSSOM-View Scroll-Behavior CSS Property and CSSOM-View DOM Extensions for Smooth Scrolling

2014-10-30 Thread Robert O'Callahan
On Fri, Oct 31, 2014 at 11:32 AM, Jonas Sicking jo...@sicking.cc wrote: Another use case that's not well supported by the current spec text is smoothly scoll down by 50 pixels. The way you'd do that is to call element.scrollBy({ top: 50, behavior: smooth }). However that function call is

Re: Intent to ship: CSSOM-View Scroll-Behavior CSS Property and CSSOM-View DOM Extensions for Smooth Scrolling

2014-10-28 Thread Robert O'Callahan
On Wed, Oct 29, 2014 at 9:40 AM, Jonas Sicking jo...@sicking.cc wrote: That said, it's scary that these APIs are described in terms of synchronous operations on the scroll position. I.e. it seems to pretend that off-main-thread scrolling doesn't exist and then hope that implementations are

Re: Screen Capture

2014-10-24 Thread Robert O'Callahan
On Fri, Oct 24, 2014 at 8:48 PM, Anne van Kesteren ann...@annevk.nl wrote: 2) We could perhaps have some concept of taking a snapshot of the current page or indicated fragment so we can analyze it asynchronously. Then if a known-bad thing was found, such as a plugin, native form control, or

Re: Screen Capture

2014-10-24 Thread Robert O'Callahan
On Sat, Oct 25, 2014 at 6:17 AM, Ehsan Akhgari ehsan.akhg...@gmail.com wrote: Can we keep track of where the stream comes from, and make sure to taint the images that can come out of them similar to the way that we taint cross origin images by default to prevent them from being read back on the

Re: Screen Capture

2014-10-23 Thread Robert O'Callahan
On Fri, Oct 24, 2014 at 10:10 AM, Jet Villegas j...@mozilla.com wrote: Roc wrote up a proposal last year for a web-facing screen capture API: https://wiki.mozilla.org/User:Roc/ScreenCaptureAPI Even if not web-facing, we could use the implementation code to cover chrome use cases like this

USB security keys

2014-10-21 Thread Robert O'Callahan
http://googleonlinesecurity.blogspot.co.nz/2014/10/strengthening-2-step-verification-with.html We should support this. Rob -- oIo otoeololo oyooouo otohoaoto oaonoyooonoeo owohooo oioso oaonogoroyo owoiotoho oao oboroootohoeoro oooro osoiosotoeoro owoiololo oboeo osouobojoeocoto otooo

Re: PSA: content/{base,html,media,svg,xul} will move to dom/

2014-10-20 Thread Robert O'Callahan
Hurrah! Rob -- oIo otoeololo oyooouo otohoaoto oaonoyooonoeo owohooo oioso oaonogoroyo owoiotoho oao oboroootohoeoro oooro osoiosotoeoro owoiololo oboeo osouobojoeocoto otooo ojouodogomoeonoto.o oAogoaoiono,o oaonoyooonoeo owohooo osoaoyoso otooo oao oboroootohoeoro oooro osoiosotoeoro,o

Re: The worst piece of Mozilla code

2014-10-16 Thread Robert O'Callahan
On Fri, Oct 17, 2014 at 1:32 AM, Nicholas Nethercote n.netherc...@gmail.com 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... Probably not the worst, but always deserves

Re: Moratorium on new XUL features

2014-10-16 Thread Robert O'Callahan
On Fri, Oct 17, 2014 at 9:45 AM, Gijs Kruitbosch gijskruitbo...@gmail.com wrote: There are also interesting height computation issues that I'm pretty sure HTML (flexbox) doesn't have, e.g. bug 451997. I'm not sure that's a function of the box model, considering it's not an issue with flexbox...

Using __declspec(thread) on Windows

2014-10-16 Thread Robert O'Callahan
It would be cool to use fast TLS via __declspec(thread) on Windows (and __thread on gcc/clang). Due to WinXP bustage that only works for variables in the .EXE or in DLLs statically linked by the .EXE, so not libxul, but in our shipped Windows builds mozglue.dll is statically linked to firefox.exe

Re: Using __declspec(thread) on Windows

2014-10-16 Thread Robert O'Callahan
On Fri, Oct 17, 2014 at 10:45 AM, David Major dma...@mozilla.com wrote: in the .EXE or in DLLs statically linked by the .EXE, so not libxul, but in our shipped Windows builds mozglue.dll is statically linked to firefox.exe so we could put __declspec(thread) variables there. What does

Re: Intent to implement: TV Manager API

2014-10-16 Thread Robert O'Callahan
Will this be restricted to certified or privileged apps? Rob -- oIo otoeololo oyooouo otohoaoto oaonoyooonoeo owohooo oioso oaonogoroyo owoiotoho oao oboroootohoeoro oooro osoiosotoeoro owoiololo oboeo osouobojoeocoto otooo ojouodogomoeonoto.o oAogoaoiono,o oaonoyooonoeo owohooo osoaoyoso otooo

Re: Moratorium on new XUL features

2014-10-14 Thread Robert O'Callahan
On Tue, Oct 14, 2014 at 4:56 PM, Joshua Cranmer  pidgeo...@gmail.com wrote: From another point of view: Mozilla, for over a decade, provided a relatively featureful toolkit for building UIs known as XUL. If the argument is that we should be using HTML instead of XUL, then wouldn't it make

Re: [RFC] Linux HiDPI support: choose default scale factor based on DPI

2014-10-13 Thread Robert O'Callahan
On Sun, Oct 12, 2014 at 10:26 PM, Giuseppe Bilotta giuseppe.bilo...@gmail.com wrote: Yes, sorry, I should have clarified that I meant the DPI for the scaling. I can prepare a patch for this too. Should I submit it as a second patch in addition to the first I submitted to the bugzilla, or

Re: Intent to Implement: webview

2014-10-13 Thread Robert O'Callahan
On Mon, Oct 13, 2014 at 2:54 AM, Kan-Ru Chen (陳侃如) kc...@mozilla.com wrote: Link to standard: Currently no formal standard. Ben Francis has created a draft which largely resembles the current mozbrowser API. Google and Microsoft both have their webview implementation similar to this

Re: Moratorium on new XUL features

2014-10-13 Thread Robert O'Callahan
On Tue, Oct 14, 2014 at 12:06 PM, Joshua Cranmer  pidgeo...@gmail.com wrote: I nominally agree with this sentiment, but there are a few caveats: 1. nsITreeView and xul:tree exist and are usable in Mozilla code today. No HTML-based alternative to these are so easily usable. 2. The main

Re: [RFC] Linux HiDPI support: choose default scale factor based on DPI

2014-10-12 Thread Robert O'Callahan
On Sun, Oct 12, 2014 at 1:41 AM, Giuseppe Bilotta giuseppe.bilo...@gmail.com wrote: On Fri, Oct 10, 2014 at 4:46 PM, Nicolas Silva nical.si...@gmail.com wrote: In the mean time we should really detect hidpi screens and default to an appropriate scale. The current scale is a terrible

Re: [RFC] Linux HiDPI support: choose default scale factor based on DPI

2014-10-12 Thread Robert O'Callahan
On Sun, Oct 12, 2014 at 12:06 PM, Giuseppe Bilotta giuseppe.bilo...@gmail.com wrote: Indeed. My patch only aims at providing a generic fallback. In contexts where it is known how the desktop environment handles the DPI settings, that convention should be followed. But in most cases, this

Re: [RFC] Linux HiDPI support: choose default scale factor based on DPI

2014-10-10 Thread Robert O'Callahan
On Thu, Oct 9, 2014 at 10:31 PM, giuseppe.bilo...@gmail.com wrote: I recently got a HiDPI monitor (15 at 3200x1800, 234 dpi) and I noticed that Firefox (32) doesn't automatically scale UI/content to take advantage of the hidpi, with the result that stuff renders uncomfortably small by

Re: Intend to implement: basic shapes for clip-path property

2014-09-25 Thread Robert O'Callahan
Sounds reasonable. Rob -- oIo otoeololo oyooouo otohoaoto oaonoyooonoeo owohooo oioso oaonogoroyo owoiotoho oao oboroootohoeoro oooro osoiosotoeoro owoiololo oboeo osouobojoeocoto otooo ojouodogomoeonoto.o oAogoaoiono,o oaonoyooonoeo owohooo osoaoyoso otooo oao oboroootohoeoro oooro

Re: WebCrypto for http:// origins

2014-09-11 Thread Robert O'Callahan
Is the argument still valid that active attacks are detectable while passive attacks are not, making the costs/risks to an active attacker significantly higher? Rob -- oIo otoeololo oyooouo otohoaoto oaonoyooonoeo owohooo oioso oaonogoroyo owoiotoho oao oboroootohoeoro oooro osoiosotoeoro

Re: Intent to implement and ship: ImageCapture

2014-09-05 Thread Robert O'Callahan
On Fri, Sep 5, 2014 at 10:19 PM, Henri Sivonen hsivo...@hsivonen.fi wrote: Does this have the same privacy protections as current gUM? Yes. You can only use this on a stream you've already acquired (e.g. via current gUM, but other APIs also produce streams). You can already shunt a MediaStream

Re: Restricting gUM to authenticated origins only (was: Re: Intent to implement and ship: ImageCapture)

2014-09-05 Thread Robert O'Callahan
On Fri, Sep 5, 2014 at 10:34 PM, Henri Sivonen hsivo...@hsivonen.fi wrote: On Fri, Sep 5, 2014 at 1:25 PM, Robert O'Callahan rob...@ocallahan.org wrote: On Fri, Sep 5, 2014 at 10:19 PM, Henri Sivonen hsivo...@hsivonen.fi wrote: Is current gUM restricted to authenticated origins

Re: Intent to implement and ship: ImageCapture

2014-09-04 Thread Robert O'Callahan
On Fri, Sep 5, 2014 at 11:01 AM, Jonas Sicking jo...@sicking.cc wrote: What's the use case here? Note that in order to build even a half-decent camera app just for taking selfies you need some amount of control over of focus. For more advanced camera apps you also want control over backlight

Re: Intent to implement and ship: ImageCapture

2014-09-04 Thread Robert O'Callahan
On Fri, Sep 5, 2014 at 11:39 AM, Jonas Sicking jo...@sicking.cc wrote: Ooh, that is great! Though surprisingly the API doesn't seem to have any support for focus or flash control? Was that intentionally left out? I think it's just a case of not wanting the spec to get too far ahead of

Re: Intent to implement and ship: ImageCapture

2014-09-04 Thread Robert O'Callahan
On Fri, Sep 5, 2014 at 11:58 AM, Jonas Sicking jo...@sicking.cc wrote: On Thu, Sep 4, 2014 at 4:45 PM, Robert O'Callahan rob...@ocallahan.org wrote: On Fri, Sep 5, 2014 at 11:39 AM, Jonas Sicking jo...@sicking.cc wrote: Looking at the API though, why is it based on Events rather than

Re: Intent to implement: Disabling auto-play videos on mobile networks/devices?

2014-08-22 Thread Robert O'Callahan
On Sat, Aug 23, 2014 at 5:59 AM, Jared Hirsch 6...@mozilla.com wrote: FWIW, Safari on iOS doesn't allow autoplay or preload, and also only initiates play/load on a user-triggered event (so, pages can't use JS to fake a click). The reason given in the docs[1] is that users might be charged

Re: Is that possible to setting a transparent background image for window element?

2014-08-17 Thread Robert O'Callahan
On Sun, Aug 17, 2014 at 6:16 PM, Yonggang Luo luoyongg...@gmail.com wrote: Thanks, I means a backgound-image: URL(transparent.png) Will this image take effect It should do, but transparent window backgrounds are not very well tested. Rob -- oIo otoeololo oyooouo otohoaoto oaonoyooonoeo

Re: How to transfrom nsRect to Javascript/DOM/XUL px coordinates

2014-08-17 Thread Robert O'Callahan
On Mon, Aug 18, 2014 at 12:19 AM, Yonggang Luo luoyongg...@gmail.com wrote: 在 2014年8月17日星期日UTC+8下午2时44分34秒,Yonggang Luo写道: I am trying to calling the JS API comes from C++, and need to transform the nsRect, so how to do the transformation. I found it's x/60, y/60, don't know where does

Re: Getting rid of already_AddRefed?

2014-08-12 Thread Robert O'Callahan
On Wed, Aug 13, 2014 at 4:35 AM, Aryeh Gregor a...@aryeh.name wrote: On Tue, Aug 12, 2014 at 6:46 PM, L. David Baron dba...@dbaron.org wrote: In these cases we document that it's likely safe for callers to do this by having those getters return raw pointers. Getters that require

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

2014-07-31 Thread Robert O'Callahan
On Fri, Aug 1, 2014 at 11:24 AM, Jeff Walden jwalden+...@mit.edu wrote: One last note. UniquePtr is patterned on std::unique_ptr, the C++11 standard version of this idiom. The current mozilla::Scoped class is another recent attempt to address largely the same needs. The older nsAutoPtr and

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

2014-06-25 Thread Robert O'Callahan
On Thu, Jun 26, 2014 at 8:06 AM, Jason Orendorff jorendo...@mozilla.com wrote: An alternative involves letting you modify JS code just before it's compiled (source-to-source transformation). This is more general (you could modify the instrumented code arbitrarily, and react synchronously as it

Re: Intent to implement: Proposal for SVG iframe element

2014-06-23 Thread Robert O'Callahan
See the thread in www-svg starting here: http://lists.w3.org/Archives/Public/www-svg/2014Jun/0063.html For the reasons mentioned in that thread, I'm against adding SVG elements like iframe that duplicate existing HTML elements, and I'm not the only one. Instead I think we should focus on

Re: Icon fonts in FxOS

2014-06-17 Thread Robert O'Callahan
On Wed, Jun 18, 2014 at 4:51 AM, Jonathan Kew j...@mozilla.com wrote: If I'm reading bug 948856 correctly, the difference may have been somewhat less (150ms? comment 17) when the font was inlined in the CSS using a data URI, rather than loaded from a separate file If we can't afford that,

Re: Intent to implement: WebMIDI

2014-06-16 Thread Robert O'Callahan
On Mon, Jun 16, 2014 at 6:08 PM, Jonas Sicking jo...@sicking.cc wrote: A long time ago we talked about just writing a very low-level USB API, then enabling signed snippets of javascript to create page-exposed APIs on top of that. This way we wouldn't have to go through the long and expensive

Re: Proposal for adding named arguments to C++

2014-06-14 Thread Robert O'Callahan
Looks good. A classic problem we have had is with boolean parameters, which are hard to read at call sites. We currently solve that by turning them into enum or flag parameters, but named parameters would be a lighter-weight alternative. However, it would be great to be able to ensure at the

Re: Intent to implement: WebMIDI

2014-06-14 Thread Robert O'Callahan
On Sun, Jun 15, 2014 at 11:24 AM, Leman Bennett (Omega X) Redacted.For.Spam@request.contact wrote: Is that really necessary? It seems superfluous. It's necessary in that there's no other way to use this hardware from a Web app. The only question is whether it's high-enough priority to work

Re: Intent to implement: CSSOM-View scroll-behavior property

2014-06-10 Thread Robert O'Callahan
On Wed, Jun 11, 2014 at 10:41 AM, Kip Gilbert kgilb...@mozilla.com wrote: While beginning implementation I noticed that there is smooth scrolling functionality already implemented within ScrollFrameHelper::AsyncScroll, using simple splines via nsSMILKeySpline. This smooth scrolling behavior

Re: Standardized assertion methods

2014-06-06 Thread Robert O'Callahan
On Fri, Jun 6, 2014 at 11:12 PM, Gijs Kruitbosch gijskruitbo...@gmail.com wrote: No, I think that in 99.99% of cases, I don't care about the type, and therefore I would normally use is() and not care that it's using non-strict equality. I think the case where there is (a) a possibility that I

Re: Intent to implement: DOMMatrix

2014-06-05 Thread Robert O'Callahan
On Fri, Jun 6, 2014 at 9:07 AM, Rik Cabanier caban...@gmail.com wrote: There are 2 things that I have questions about: 1. isIdentity() We settled that this should mean that the matrix was never changed to a non identity state. This means that the following code: var m = new DOMMatrix();

Re: Intent to implement: DOMMatrix

2014-06-05 Thread Robert O'Callahan
On Fri, Jun 6, 2014 at 9:57 AM, Dirk Schulze dschu...@adobe.com wrote: :) would be short enough I guess. But doesn’t sound serious enough. translateSelf? Rob -- Jtehsauts tshaei dS,o n Wohfy Mdaon yhoaus eanuttehrotraiitny eovni le atrhtohu gthot sf oirng iyvoeu rs ihnesa.rt sS?o Whhei

Re: Intent to implement: DOMMatrix

2014-06-05 Thread Robert O'Callahan
On Fri, Jun 6, 2014 at 10:28 AM, Robert O'Callahan rob...@ocallahan.org wrote: On Fri, Jun 6, 2014 at 9:57 AM, Dirk Schulze dschu...@adobe.com wrote: :) would be short enough I guess. But doesn’t sound serious enough. translateSelf? Or translateThis of course. Rob -- Jtehsauts tshaei

Re: Intent to implement: DOMMatrix

2014-06-05 Thread Robert O'Callahan
On Fri, Jun 6, 2014 at 4:22 PM, Dirk Schulze dschu...@adobe.com wrote: What about DOMMatrix(1,0,0,1,0,0) or DOMMatrix(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1) Do we check the values and determine if the matrix is identity or not? If we do, then authors could write

Re: unused non-[scriptable] XPIDL interfaces no longer shipped with Firefox

2014-06-04 Thread Robert O'Callahan
So IIUC this means that script can't call any methods on these interfaces, so the only remaining users could be binary extension components and those within libxul itself. So if we're willing to ignore the former, and eliminate the latter, then we can remove these interfaces entirely? Or do we

Re: Intent to implement: DOMMatrix

2014-06-03 Thread Robert O'Callahan
On Wed, Jun 4, 2014 at 1:13 AM, Benoit Jacob jacob.benoi...@gmail.com wrote: This list misses some of the points that I care more about: - Should DOMMatrix really try to be both 3D projective transformations and 2D affine transformations or should that be split into separate classes? I

Re: Intent to implement: DOMMatrix

2014-06-03 Thread Robert O'Callahan
On Wed, Jun 4, 2014 at 10:23 AM, Robert O'Callahan rob...@ocallahan.org wrote: On Wed, Jun 4, 2014 at 1:13 AM, Benoit Jacob jacob.benoi...@gmail.com wrote: This list misses some of the points that I care more about: - Should DOMMatrix really try to be both 3D projective transformations

Re: Intent to implement: DOMMatrix

2014-06-02 Thread Robert O'Callahan
On Mon, Jun 2, 2014 at 3:19 PM, Rik Cabanier caban...@gmail.com wrote: isIdentity() indeed suffers from rounding errors but since it's useful, I'm hesitant to remove it. In our rendering libraries at Adobe, we check if a matrix is *almost* identity. Maybe we can do the same here? One option

Re: Intent to implement: DOMMatrix

2014-06-02 Thread Robert O'Callahan
On Tue, Jun 3, 2014 at 4:24 AM, Martin Thomson m...@mozilla.com wrote: it conveys that this is a 2d matrix and that you can ignore the 3d components. Maybe you misunderstood what I was implying. You are describing an intended application of the matrix to 2d or 3d graphics. The problem is

Re: Can we remove NS_HIDDEN, NS_HIDDEN_(...)?

2014-06-02 Thread Robert O'Callahan
On Wed, May 21, 2014 at 9:53 PM, Robert O'Callahan rob...@ocallahan.org wrote: Android and B2G got fixed to use #pragma GCC visibility. So, we can go ahead and remove all NS_HIDDEN-related code now. This also means that when modifying Android and B2G-specific code that uses symbols imported

Re: Intent to implement: DOMMatrix

2014-06-02 Thread Robert O'Callahan
Off the top of my head, the places in Gecko I know of that use isIdentity or is2D fall into two categories: 1) math performance optimizations 2) (is2D only) we're going to take an implementation approach that only works for 2D affine transforms, and either a) there is no support for 3D perspective

Re: Intent to implement: DOMMatrix

2014-05-30 Thread Robert O'Callahan
I'm all for it! :-) Rob -- Jtehsauts tshaei dS,o n Wohfy Mdaon yhoaus eanuttehrotraiitny eovni le atrhtohu gthot sf oirng iyvoeu rs ihnesa.rt sS?o Whhei csha iids teoa stiheer :p atroa lsyazye,d 'mYaonu,r sGients uapr,e tfaokreg iyvoeunr, 'm aotr atnod sgaoy ,h o'mGee.t uTph eann

Re: Intent to implement: CSSOM-View scroll-behavior property

2014-05-27 Thread Robert O'Callahan
On Wed, May 28, 2014 at 5:36 AM, Kearwood Gilbert kearwood.gilb...@gmail.com wrote: My greatest concern is that as platform conventions change, this behavior could (or should) be updated to match. Web developers that depend on particular acceleration / deceleration curves or time to

<    1   2   3   4   >