Re: Deprecating XUL in new UI

2017-02-15 Thread R Kent James
On 1/16/2017 12:43 PM, Dave Townsend wrote: One of the things I've been investigating since moving back to the desktop team is how we can remove XUL from the application as much as possible. Would you be open to a team of volunteers working on this issue? I've been pursing an effort in the

Re: Deprecating XUL in new UI

2017-01-24 Thread Eric Shepherd
Certainly given that there are already several projects that use HTML to build desktop and mobile app UIs, standardizing ways to use HTML to represent any missing parts of a desktop UI would be a worthwhile endeavor. Eric Shepherd Senior Technical Writer Mozilla https://developer.mozilla.org/

Re: Deprecating XUL in new UI

2017-01-23 Thread zbraniecki
On Monday, January 23, 2017 at 12:03:35 PM UTC-8, Eric Shepherd wrote: > It seems to me, anyway, that the ideal solution would be to enhance HTML > (ideally in the spec) with the features needed to build a full-fledged > desktop UI. That would be fabulous not just for Firefox making the

Re: Deprecating XUL in new UI

2017-01-23 Thread Eric Shepherd
It seems to me that the XUL to HTML transition is a big job that needs to be done with care. Would it make sense to try to work toward additions to HTML and/or additions of prefixed attributes and the like to add the needed behaviors to HTML wherever possible before trying to hack out a

Re: Deprecating XUL in new UI

2017-01-23 Thread Boris Zbarsky
On 1/23/17 10:31 AM, David Bolter wrote: Should (can) it die in the Quantum development timeframe? In my opinion, no. What does that do to shipping risk? Makes it super-high. I realize churn creates risk, but I seem to recall XBL is getting in the way for Quantum styling? Not as much

Re: Deprecating XUL in new UI

2017-01-23 Thread David Bolter
On Tue, Jan 17, 2017 at 12:55 PM, Bobby Holley wrote: > On Tue, Jan 17, 2017 at 8:56 AM, Boris Zbarsky wrote: > > > On 1/16/17 4:28 PM, Matthew N. wrote: > > > >> Does it just work from XHTML documents? > >> > > > > Yes, as far as I know. > > > > Is our

Re: Deprecating XUL in new UI

2017-01-23 Thread David Bolter
Hi all, so as not to leave this hanging: On Tue, Jan 17, 2017 at 9:24 AM, Axel Hecht wrote: > Am 16/01/2017 um 21:43 schrieb Dave Townsend: > >> >> What other features do we depend on in XUL that I haven't listed? >> >> > Accessibility? Not sure how big the difference is there

Re: Deprecating XUL in new UI

2017-01-19 Thread Bryan Clark
On Mon, Jan 16, 2017 at 1:28 PM, Matthew N. wrote: > Trees are the big thing that come to mind. I've heard about three non-XUL > re-implementations (IIRC mostly in devtools) which sounds like a > maintainability issue and potentially redundancy. I would rather keep using > XUL

Re: Deprecating XUL in new UI

2017-01-18 Thread zbraniecki
Regarding choice of framework for HTML-backed UIs. My initial suggestion is to try not to go into a fully-opinionated stack like React. My opinion has nothing to do with React itself, it's quality or suitability, but with a generic approach of using an opinionated stack that diverges from

Re: Deprecating XUL in new UI

2017-01-18 Thread smaug
On 01/18/2017 08:11 PM, J. Ryan Stinnett wrote: Thanks for checking it out! I guess the reading from / writing to disk is only for speeding up initial load of the first window then? reading is for speeding up the initial load, and once prototype has been loaded, no new loads are needed,

Re: Deprecating XUL in new UI

2017-01-17 Thread smaug
On 01/18/2017 08:28 AM, smaug wrote: On 01/17/2017 10:51 PM, J. Ryan Stinnett wrote: On Mon, Jan 16, 2017 at 3:08 PM, smaug wrote: On 01/16/2017 10:43 PM, Dave Townsend wrote: One of the things I've been investigating since moving back to the desktop team is how we can

Re: Deprecating XUL in new UI

2017-01-17 Thread smaug
On 01/17/2017 10:51 PM, J. Ryan Stinnett wrote: On Mon, Jan 16, 2017 at 3:08 PM, smaug wrote: On 01/16/2017 10:43 PM, Dave Townsend wrote: One of the things I've been investigating since moving back to the desktop team is how we can remove XUL from the application as much as

Re: Deprecating XUL in new UI

2017-01-17 Thread smaug
On 01/17/2017 12:05 AM, Dave Townsend wrote: Trees! I knew I was forgetting something, thank you. Yeah those are things we're going to need some sane replacements for. AS far as XBL goes, while I suspect it works from HTML documents I think we want to be phasing out use of XBL too for pretty

Re: Deprecating XUL in new UI

2017-01-17 Thread Gijs Kruitbosch
On 17/01/2017 17:55, Bobby Holley wrote: On Tue, Jan 17, 2017 at 8:56 AM, Boris Zbarsky wrote: On 1/16/17 4:28 PM, Matthew N. wrote: Does it just work from XHTML documents? Yes, as far as I know. Is our implementation of Web Components ready to replace it and riding

Re: Deprecating XUL in new UI

2017-01-17 Thread Brian Grinstead
A few things we had to handle when going through this process for the devtools UI: 1) Already mentioned to but for panels we added a new module that falls back to XUL panels for now 2) For context menu handling we we added a new module similar to the Menu API from Electron that falls back to

Re: Deprecating XUL in new UI

2017-01-17 Thread Kris Maglione
On Tue, Jan 17, 2017 at 02:51:47PM -0600, J. Ryan Stinnett wrote: I am not very familiar with the details of XUL prototype cache, but my understanding of bug 1286082[1] is that currently the XUL prototype cache is not actually working correctly (and possibly has been broken since bug 592943[2]

Re: Deprecating XUL in new UI

2017-01-17 Thread J. Ryan Stinnett
On Mon, Jan 16, 2017 at 3:08 PM, smaug wrote: > On 01/16/2017 10:43 PM, Dave Townsend wrote: >> >> One of the things I've been investigating since moving back to the desktop >> team is how we can remove XUL from the application as much as possible. >> The >> benefits for doing

Re: Deprecating XUL in new UI

2017-01-17 Thread J. Ryan Stinnett
On Mon, Jan 16, 2017 at 2:43 PM, Dave Townsend wrote: > * iframe elements don't have the same capabilities that the XUL browser > element does and we use that in some UI. We do have available to chrome pages on desktop now (bug 1238160[1], landed in Firefox 47), which

Re: Deprecating XUL in new UI

2017-01-17 Thread Jaroslav Šnajdr
Hello Boris, you're right - it's not XUL/HTML difference, but a chrome/content one. The issue with React and privileged iframes was investigated here: https://bugzilla.mozilla.org/show_bug.cgi?id=1245921#c55 see comments 55 and on. Jarda On Tue, Jan 17, 2017 at 6:05 PM, Boris Zbarsky

Re: Deprecating XUL in new UI

2017-01-17 Thread Bobby Holley
On Tue, Jan 17, 2017 at 8:56 AM, Boris Zbarsky wrote: > On 1/16/17 4:28 PM, Matthew N. wrote: > >> Does it just work from XHTML documents? >> > > Yes, as far as I know. > > Is our implementation of Web Components ready to replace it and riding the >> trains? >> > > No. >

Re: Deprecating XUL in new UI

2017-01-17 Thread Boris Zbarsky
On 1/16/17 4:31 PM, Jaroslav Šnajdr wrote: - there is a difference in how events are dispatched in HTML vs XUL iframes. In HTML, the capture/bubble phases are isolated inside the iframe window, but in XUL, the target chain crosses the iframe boundaries. I'm not aware of this behavior for XUL,

Re: Deprecating XUL in new UI

2017-01-17 Thread Boris Zbarsky
On 1/16/17 4:28 PM, Matthew N. wrote: Does it just work from XHTML documents? Yes, as far as I know. Is our implementation of Web Components ready to replace it and riding the trains? No. -Boris ___ dev-platform mailing list

Re: Deprecating XUL in new UI

2017-01-17 Thread Brian Grinstead
You can still use dtd files in XHTML as long as it’s chrome-privileged. A lot of the about pages are doing this (aboutNetError.xhtml and others: https://dxr.mozilla.org/mozilla-central/search?q=path%3Axhtml+dtd). Brian > On Jan 17, 2017, at 3:34 AM, zbranie...@mozilla.com wrote: > > One more

Re: Deprecating XUL in new UI

2017-01-17 Thread zbraniecki
One more thing that XUL gives us is L10n. With HTML, we can use .properties to load localization resources and inject them into HTML, but I believe this to be a very inelegant solution with a surprisingly high risk of bugs. We do have an l10n framework called L20n that is supposed to replace

Re: Deprecating XUL in new UI

2017-01-16 Thread Tim Guan-tin Chien
Hi Dave, I am glad that we are having this conversation. To be honest, two of features spinning in Taipei are already partly implemented in HTML, out of the expectations that, dealing with familiar tech means faster development and less regressions. They are - Desktop video control UI within

Re: Deprecating XUL in new UI

2017-01-16 Thread Robert O'Callahan
On Tue, Jan 17, 2017 at 11:41 AM, Sebastian Zartner < sebastianzart...@gmail.com> wrote: > https://bugzilla.mozilla.org/show_bug.cgi?id=740910 My comments in that bug still apply. Ellipsizing in the centre when the line contains more than just a single text node is really hard. Rob -- lbir

Re: Deprecating XUL in new UI

2017-01-16 Thread Joshua Cranmer 
On 1/16/2017 2:43 PM, Dave Townsend wrote: One of the things I've been investigating since moving back to the desktop team is how we can remove XUL from the application as much as possible. The benefits for doing this are varied, some obvious examples: * XUL is a proprietary standard and we

Re: Deprecating XUL in new UI

2017-01-16 Thread Dave Townsend
Trees! I knew I was forgetting something, thank you. Yeah those are things we're going to need some sane replacements for. AS far as XBL goes, while I suspect it works from HTML documents I think we want to be phasing out use of XBL too for pretty much the same reasons as XUL. Web components seem

Re: Deprecating XUL in new UI

2017-01-16 Thread Dave Townsend
Thanks for your feedback Jaroslav, it's really helpful. The issue around mixing XUL and HTML is one in particular where I think we may end up having to make some platform fixes to at least make the transition away from XUL possible. On Mon, Jan 16, 2017 at 1:31 PM, Jaroslav Šnajdr

Re: Deprecating XUL in new UI

2017-01-16 Thread Dave Townsend
On Mon, Jan 16, 2017 at 1:33 PM, Mike Connor wrote: > I think the rule is fine, subject to the reality that the scope of totally > new doc-level UX is fairly limited. I think you'll want to be a little > more aggressive up front if you want to shift the overall codebase in

Re: Deprecating XUL in new UI

2017-01-16 Thread Mike Connor
I think the rule is fine, subject to the reality that the scope of totally new doc-level UX is fairly limited. I think you'll want to be a little more aggressive up front if you want to shift the overall codebase in finite time. To that end, I'd propose an additional requirement that any major

Re: Deprecating XUL in new UI

2017-01-16 Thread Jaroslav Šnajdr
Hello Dave, while contributing to some of the devtools.html refactoring projects, I noticed the following further issues: - the XUL label element has attribute crop=start|center|end, which can be used to truncate the label text and insert an ellipsis character at the place of your choice. HTML

Re: Deprecating XUL in new UI

2017-01-16 Thread Philipp Kewisch
On 1/16/17 9:43 PM, Dave Townsend wrote: > One of the things I've been investigating since moving back to the > desktop team is how we can remove XUL from the application as much as > possible. The necessary first step of reducing XUL use is to stop > adding any more UI that uses XUL and here I'm

Re: Deprecating XUL in new UI

2017-01-16 Thread Matthew N.
Trees are the big thing that come to mind. I've heard about three non-XUL re-implementations (IIRC mostly in devtools) which sounds like a maintainability issue and potentially redundancy. I would rather keep using XUL trees than have even more different tree implementations (though I'd be fine

Re: Deprecating XUL in new UI

2017-01-16 Thread smaug
On 01/16/2017 10:43 PM, Dave Townsend wrote: One of the things I've been investigating since moving back to the desktop team is how we can remove XUL from the application as much as possible. The benefits for doing this are varied, some obvious examples: * XUL is a proprietary standard and we

Deprecating XUL in new UI

2017-01-16 Thread Dave Townsend
One of the things I've been investigating since moving back to the desktop team is how we can remove XUL from the application as much as possible. The benefits for doing this are varied, some obvious examples: * XUL is a proprietary standard and we barely maintain it. * Shallower learning curve