news.volyx.in

Fixing a bug in Google Chrome as a first-time contributor (cprimozic.net)

645 points by Ameo · 713 days ago · 165 comments on HN

Article summary

The author fixed a bug in Google Chrome's Devtools, which involved network requests made by worklets not showing up in the network tab and the 'Disable Cache' option being ignored. The bug was caused by a missing InspectorNetworkAgent for worklets. The author describes their experience of building Chromium from scratch, finding and fixing the bug, and submitting the changes for review. The process involved creating a minimal repro, debugging, and writing tests.

Main themes

  • Chromium development
  • Debugging complex codebases
  • Contributing to open-source projects
  • Naming conventions
  • Browser development
  • Forking Chromium

What commenters say

  • The naming convention of WorkerGlobalScope and WorkletGlobalScope can be confusing, and it would be better to have the changing bit at the beginning or end of the name.
  • The use of 'Worker' and 'Worklet' as prefixes is established in the domain and should be maintained for consistency.
  • The difficulty in displaying and comparing IDs, such as GUIDs or UUIDs, can lead to issues in communication and debugging.
  • Maintaining a Chromium fork can be expensive and require significant engineering resources, but it can also be manageable for motivated individuals or small startups.
  • Some commenters believe that Google may not be actively supporting forks of Chromium, while others argue that this is not necessarily the case.
  • The process of contributing to Chromium can be daunting, but with the right resources and guidance, it can be a valuable learning experience.
  • The decision to maintain a fork of Chromium depends on various factors, including the number of customizations and the need for security fixes.
  • Some individuals maintain their own forks of Chromium for personal reasons, such as controlling the browser or adding anti-fingerprinting features.