mirror of
https://github.com/servo/servo
synced 2026-04-25 17:15:48 +02:00
Page:
Meeting Devtools Servo 2
Pages
Adding a new WebIDL binding
Alternative Logo Proposals and Related Swag
Asynchronous WebAssembly compilation project
Austin Oxidation
Autogeneration of style structs
Basic SVG support project
Beginner's guide to rebasing and squashing
Benchmarking
Benchmarks
Bots
Browser Engine Research
Build Errors FAQ
Buildbot administration
Building for Android
Building for Magic Leap
Building for UWP
Building on ARM desktop Linux
Building
CI Services we use
CSS parse error reporting
CSSOM student project
Canvas rendering project
Cargo upgrade service project
Code rust concurrency
Code Review
Code of Conduct
Coding standards
Compiler upgrade recipes
Compositor Layer Design
Contributing
Control Servo using WebDriver
Creating and viewing WARC web archives in Servo
Creating new OpenSSL Windows binary distributions
Cross compiling from linux to mac
Crowbot
Css selector matching meeting 2013 07 19
DOM Design
DOM documentation
DOM missing pieces
Debugging JS web compat issues
Debugging and editing tools
Debugging
Design
Developer tools student project
Devtools CSS errors
Devtools plans
Devtools
Diagnosing SpiderMonkey JIT issues
Eric Atkinson visit 2013 09 10
Events and sundry
Expand HTTP request response monitoring
Fetch improvement project
Firefox Reality release notes
FirefoxReality build
Firewall setup for servo master1
Focus student project
Form validation student project
GSoC project brainstorming
Garbage collected DOM
Getting started with layout
GitHub Labels
Github & Critic PR handling 101
Github workflow
Glossary
Governance
Graphics toolkit integration
HTML parser improvement project
HTMLElement binding conversion
HTTP archive support project
HTTP library requirements
Hawaii Rooting
High priority content for layout
Highfive
HoloLens 2 test plan
Home
How to generate GStreamer binaries for CI
Image load conformance student project
Image maps project
Implement HTML charset parsing project
Implement ImageBitmap project
Implement missing WebAudio automation student project
Implement support for missing XMLHttpRequest APIs
Implement worker modules
Implementing a web standard (RGSoC)
Improve specification conformance of unicode bidi library
Incremental flow tree construction
Infrastructure
Integrate xml5ever
Intern project brainstorming
Intern projects
JS objects, wrappers, and cross origin concerns 2013 08 07
Layout 2020
Layout Overview
Layout resources
Layout revamp ideas
Leo meyerovich visit 2013 07 22
Linux sandboxing
London Oxidation
London Security
Meeting 2014 10 27
Meeting 2014 12 08
Meeting 2012 02 08
Meeting 2012 02 16
Meeting 2012 07 20
Meeting 2013 04 01
Meeting 2013 04 15
Meeting 2013 04 22
Meeting 2013 04 29
Meeting 2013 05 06
Meeting 2013 05 13
Meeting 2013 05 20
Meeting 2013 06 03
Meeting 2013 06 10
Meeting 2013 06 14
Meeting 2013 06 17
Meeting 2013 06 24
Meeting 2013 07 01
Meeting 2013 07 15
Meeting 2013 07 22
Meeting 2013 07 29
Meeting 2013 08 05
Meeting 2013 08 12
Meeting 2013 08 19
Meeting 2013 09 09
Meeting 2013 09 16
Meeting 2013 09 23
Meeting 2013 09 30
Meeting 2013 10 14
Meeting 2013 10 21
Meeting 2013 10 28
Meeting 2013 11 04
Meeting 2013 11 18
Meeting 2013 11 25
Meeting 2013 12 02
Meeting 2013 12 09
Meeting 2013 12 16
Meeting 2014 01 06
Meeting 2014 01 13
Meeting 2014 01 21
Meeting 2014 01 27
Meeting 2014 02 03
Meeting 2014 02 10
Meeting 2014 02 24
Meeting 2014 03 10
Meeting 2014 03 17
Meeting 2014 03 24
Meeting 2014 03 31
Meeting 2014 04 07
Meeting 2014 04 14
Meeting 2014 04 21
Meeting 2014 04 28
Meeting 2014 05 05
Meeting 2014 05 13
Meeting 2014 05 19
Meeting 2014 06 09
Meeting 2014 06 17
Meeting 2014 06 23
Meeting 2014 06 30
Meeting 2014 07 07
Meeting 2014 07 14
Meeting 2014 07 21
Meeting 2014 07 29
Meeting 2014 08 04
Meeting 2014 08 11
Meeting 2014 08 12
Meeting 2014 08 18
Meeting 2014 08 25
Meeting 2014 09 08
Meeting 2014 09 15
Meeting 2014 09 22
Meeting 2014 09 29
Meeting 2014 10 06
Meeting 2014 10 13
Meeting 2014 10 20
Meeting 2014 11 10
Meeting 2014 11 17
Meeting 2014 11 24
Meeting 2014 12 15
Meeting 2015 01 05
Meeting 2015 01 12
Meeting 2015 01 26
Meeting 2015 02 09
Meeting 2015 02 23
Meeting 2015 03 02
Meeting 2015 03 16
Meeting 2015 03 30
Meeting 2015 04 06
Meeting 2015 04 13
Meeting 2015 04 27
Meeting 2015 05 04
Meeting 2015 05 11
Meeting 2015 05 18
Meeting 2015 06 01
Meeting 2015 06 08
Meeting 2015 06 15
Meeting 2015 07 06
Meeting 2015 07 13
Meeting 2015 07 27
Meeting 2015 08 10
Meeting 2015 08 17
Meeting 2015 08 24
Meeting 2015 08 31
Meeting 2015 09 14
Meeting 2015 09 21
Meeting 2015 09 28
Meeting 2015 10 05
Meeting 2015 10 12
Meeting 2015 10 19
Meeting 2015 10 26
Meeting 2015 11 02
Meeting 2015 11 09
Meeting 2015 11 16
Meeting 2015 11 30
Meeting 2016 01 04
Meeting 2016 01 11
Meeting 2016 01 25
Meeting 2016 02 01
Meeting 2016 02 08
Meeting 2016 02 22
Meeting 2016 03 07
Meeting 2016 03 21
Meeting Devtools Servo 2
Meetings
Microdata project
Minutes Hackathon 2012 03 27
Missing DOM features project
More ServiceWorker support project
More developer tools student project
Mozlandia Automation
Mozlandia B2S
Mozlandia JS
Mozlandia Rust In Gecko
Mozlandia WPT
Mozlandia gfx
Mozlando Devtools Servo
Mozlando Oxidation
Mozlando SM Servo
Mozlando Servo Bluetooth
Mozlando Servo MagicDOM
Mozlando Servo SMStrings
Mutation observer project
Mutation testing project
NCSU student projects
Network security project
Off main thread HTML parsing project
Offscreen canvas improvements project
Offscreen canvas project
Orlando Oxidation 2018
Oxidation 2015 11 05
Persistent sessions student project
Preparing ARM libraries for CI
Priority of CSS properties
Priority of DOM implementation
Priority of dom bindings
Private browsing student project
Profiling
Project proposal deadlines
Prototype JS form controls student project
Prototype ways of splitting the script crate
Publishing a new ANGLE NuGet version
Publishing a new app store release
Push vs Pull for caching
Random web content project
Refactor GLES2 student project
Refactor bluetooth support student project
Remaining work
Removing push notifications from IRC hooks
Replace C libraries student project
Report new contributors project
Representation of computed style
Research
Reviewer
Roadmap
Running Web Platform Tests on Servo
Rust HTML parser
Rust SpiderMonkey debugger API
Rust cssparser code walk 2013 08 02
SaltStack Administration
San Francisco Oxidation
Servo Benchmarking Report (December 2024)
Servo Benchmarking Report (November 2024)
Servo Benchmarking Report (October 2024)
Servo Layout Engines Report
Servo and SpiderMonkey Report
Servo for Gecko Developers
Specification Links
SpiderMonkey related tasks
SpiderMonkey infodump
SpiderMonkey upgrade details
Storage student project
Streaming webassembly student project
Strings
Student project brainstorm
Student projects
Styling overview
Stylo hacking guide
Summer of Code 2014: Implement XMLHttpRequest
Summer of Code 2016: Fetch API
Summer of Code 2016: File support
Summer of Code 2016: ServiceWorker infrastructure
Summer of Code projects
Summit meeting 2013 09 09
Support WebDriver based tests project
Syncing web platform tests (WPT)
TaskCluster
Testing
Tools
Tracking intermittent failures over time project
Transcription Notes from Servo Architecture talk in Suwon
Transcription notes from rust patterns talk in suwon
Transcription parallelism
Transcription rust concurrency
Transcription rust runtime
Transription layout and acid2
Trinity College Dublin student projects
UPenn student projects
Updating the Rust compiler used by Servo
Upgrading non taskcluster linux CI machines
Upgrading the UWP gstreamer binaries
Upgrading the windows LLVM binaries
Upgrading wptrunner
Using DOM types
Using Rust Spidermonkey Prototype
Using WebWorker Prototype
Version 0.1
Videos and presentations
WebAudio JS interfaces student project
WebAudio nodes student project
WebCompatBug
WebSocket student project
Webdriver student project
Webdriver tests student project
Webrender Overview
Whistler 2019 notes
Whistler Bugzilla
Whistler FFOS
Whistler GFX
Whistler Houdini1
Whistler Houdini2
Whistler Necko
Whistler Oxidation 2019
Work items for new contributors
Workweek COW DOM
Workweek alt js
Workweek android arm
Workweek boot 2 servo
Workweek compiler lints
Workweek displaylist
Workweek dogfooding
Workweek encoding
Workweek generated content
Workweek governance
Workweek graphics stack
Workweek graphics toolkit
Workweek incremental layout
Workweek js bindings status
Workweek layers
Workweek layers2
Workweek pixels
Workweek rasterization
Workweek reftests
Workweek roadmap
Workweek script crate
Workweek security
Workweek string interning
Workweek tables
Workweek writing modes
XML parser student project
infra triage notes
jQuery status
webxr.today support
Clone
This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
Protocol plans
- jim: concern is that if Servo implements the Gecko protocol, it will be the only other client and might get in the way of implementation work
- jack: Planning to use Gecko’s until our June release. Would like to demo debugging servo using firefox. Need console and performance, inspector doesn’t really matter but may be close to working. and page load performance. After June, could decide between the Gecko and Chrome protocols.
Valence
- Nox: Wasn’t sure if it would work for us?
- jim: Valence is not a 100% solution for full support of either protocol. But, it does allow testing pretty nicely. But, even if you go with Chrome protocol in Servo, you can still use Firefox dev tools to debug Servo.
Devtools.html
- jim: Change to non-XUL, usable frontend for Servo is possible.
- Ryan: We tried standing this up in Servo; main problem is missing platform/DOM APIs in Servo right now.
- Jack: Certainly, we could try to use the standalone devtools.html to make a standalone Servo-based application there. We could talk about that after June.
- Brian: I think we got it to mostly render during the Orlando thing.
- Jim: It seems like your browser.html support should be sufficient - non-content HTML accompanying content HTML. That’s exactly what we need for devtools.html.
- Nox: Does this still all communicate via the protocol, or priviledged APIs?
- Ryan: ALWAYS the protocol.
- James: currently not via WebSockets, but that’s all coming.
Privileged JS / Debugging
- Fitzgen: right now, debugger API is only a JS interface. We could make C bindings for the same interface, but via C. That’s easy to wrap in Rust.
- Jdm: C++ APIs are also things we can use now. Binding generation is much better now.
- Fitzgen: traits templates?
- Nox: NO
- Fitzgen: mainly the memory stuff has a lot of template magic / traits stuff, which would be harder. The debugger API has been fuzzed and used for years, so we should try to create the C bindings and not start again from scratch
- Jim: debugger is strictly intra-thread. Same stack as the debuggee. Fuzzed & optimized (only slows down asm.js - not normal JS code). Everything’s implemented in SM; doesn’t rely on XPCOM or any of the other outside stuff. If we wanted a JS server, just need access to the Debugger global. No reaching through memory / reading raw memory.
- Jdm: intra-thread… do you mean intra-runtime?
- Jim: Yes. If you want to debug worker threads, they have their own runtime and a single global that’s the content. Eddy added the support for multiple globals, which are only pseudo-privileged, in that they can’t touch the content objects directly to protect the debugger objects.
Supervisory JS
- Jim: So, Servo is avoiding this… what do you have for browser.html?
- Jdm: browser.html is treated as web content, but if dom.mozbrowser.enabled pref is true and the web content is in toplevel, it can add mozbrowser attribute to the iframe and gives access to the extra APIs on the iframe.
- Nox: Keeping in Rust instead of JS is because there’s no real benefit except where the self-hosted JS is faster. We like the Rust code because it’s clean.
- Jim: Some devtools folks also agree that we’d love to have Rust & some types.
- Tom: The big problem is that the Actors are no longer shared with Gecko then, so you have to keep the JS and Rust code up to date.
- Fitzgen: if Servo doesn’t use the Firefox protocol long-term, then it doesn’t really matter. If it does, then the work to separate out the actors from the XPCOM, it would be a ton of work anyway.
- Eddy: chromium instead has a dispatch map (in C++) to handle their privileged APIs. I suspect that any adoption of chrome’s protocol would remove actors.
Breakpoints & event queues
- Jim: When stopped at a breakpoint, the event loop is shared for the debugger AND the devtools UI. All those events end up in the same event queue that would be dispatching things in the debugee. So, when the content JS frame is on the stack, it makes a bunch of XPCOM calls to disable events to a given window & its children. Kinda works. But, sometimes there are other events that will get you - e.g., insertion of a script, which has an http event tied to it, can mean that not everything gets paused correctly. Too many entry points into content javascript. How hard is it to really pause a content page in the debugger but still have the UI live?
- Fitzgen: so, just saying a given event queue no longer has events.
- Jdm: It’s not hard at all. Already have a system for enabling/disabling subqueues of events for our given domain. IF the debugger interface is running cross-origin, they have totally independent event queues. Separate queue also just for the interfacing between the debuggee/debugger server.
- Jim: Great.
- Fitzgen: seems like if the server is written in Rust, it’s less of an issue there. Really want fatal asserts there - don’t want the debugger to lie to you.
- Jdm: google.com & google.com/somethinelse might mean we pause ALL things from the same-origin
- Jim: probably the right thing, right? If we have two separate tabs visiting the same site, can’t they share some stuff slyly?
- Jdm: I think this is BrowsingContext from the specs (or “related BrowsingContext”)
Killer features
- Jim: What are some killer features? Given our love for rr, I’m thinking all debugging is really reverse debugging. Bhackett has webrr, isolates debuggee it in its own process. Records some sources of non-determinism, and preserves some of those. Seems a bit fragile / complicated…
- Larsberg: Most of the sources of non-determinism in Servo are all isolated into threads/channels. We should be able to record/log the interactions and replay them. I’ve been talking with Brian Burg, and most of the architecture is amenable to doing things as he did in WebKit, but there are a few things (GPU-driven animations, DateTime, etc.) we need to do.
- Jim: Can we get some more notes from that? E.g., how do they handle JS state? I’ve been invited to comment on Brian Hackett’s WebRR project.
- Jim: Other nifty features?
- Jack: JIT coach?
- Jim: We’re talking about doing coaching for other things in the browser.
- Jack: Be nice to be able to show how parallel the rendering was and what the elements (e.g., floats) that got in the way of it were
- Fitzgen: Another thing is to have the infra exposed to web developers be the same that the engine developers are using. Gecko profiler addon has a split from the devtools. Nice to have performance probing/tracing in from the start. Recently found the profiler stuff, which is a great start. Nice to add dtrace-like probes to stuff random rust functions in random places to get profiles via script. Counters for how many reflows over a time, etc. Or give traces a unique ID and optional backpointer to the “why.” So that the timeline could show a correlation between the enqueued item and the work.
- Jack: for relayout, whenever it’s triggered, we have flags for whether it came from a query (and if so which one) or for redisplay. We could show that immediately.
- Fitzgen: getting the framework there and making it ubiquitous would help.
- Jdm: Linking it back to specific JS lines that triggered it would be like magic. Zero introspection into executing code right now.
- Fitzgen: There’s a method for capturing stacks now in SM that you should be able to use. Can keep them in the traces optionally.
- Tom: longstanding Gecko request. Everything on the network monitor should have a reason. What brought it in via what chain?
- Jim: stack capture is neat - shares common tails.
- Fitzgen: only walk to capture the first time, so it’s basically free in a loop.
- Joe: broader version of the layout is why did things lay out where
- Jack: not really user facing, but it shows the change in properties over each pass
- Fitzgen: specific CSS selector or rule would be great!
- Joe: would change the game for many web devs
- Jim: want the chain of causality
- Larsberg: Do we know what web devs have trouble with? Margin collapse hard to explain. Float clearing is easier.
- Jack: Maybe focus on top/left? And explain width - why is this all the way across the screen, etc.
- Jim: Explain 100%s? WHERE do they come from?
- Larsberg: Yeah, that’s easy but could be totally confusing… e.g., widths from heights :-)
Console
- Jack: Who can nox work with on Console and performance tools
- Fitzgen: Brian Grinstead and Lin Clark on the Console. Then probably me on perf tools - perhaps greg. People are kinda busy with Tofino.