On Sat, Jun 16, 2012 at 2:51 PM, Nikita Vasilyev <
m...@elv1s.ru> wrote:
>
https://developers.google.com/chrome-developer-tools/docs/contributing does
> not describe how to make a patch out of changes and where to submit it.
>
> How do you develop DevTools? What’s your workflow?
>
> This is what I do:
> 1) Check out chromium
> (
http://dev.chromium.org/developers/how-tos/get-the-code)
> 2) Download devtools_frontend.zip and `cp -r` its content to
> 'third_party/WebKit/Source/WebCore/inspector/front-end'
I gather that this step over-writes the current "trunk" source with
the content of a zip file. Where do you get that zip file and why to
you overwrite the source rather than opening the file on a temp
directory?
> 3) Download latest Chromium from
>
http://commondatastorage.googleapis.com/chromium-browser-continuous/index.html
> 4) Run Chromium.app/Contents/MacOS/Chromium
> --debug-devtools-frontend=/Users/nv/Code/chromium/src/third_party/WebKit/Source/WebCore/inspector/front-end/
>
> Then I edit JS and CSS files in
> /Users/nv/Code/chromium/src/third_party/WebKit/Source/WebCore/inspector/front-end/,
> reload DevTools, edit, reload DevTools…
>
> Since third_party/WebKit/Source/WebCore/inspector/front-end/ is just a
> WebKit git repo, I can make a patch out of it by following
>
http://trac.webkit.org/wiki/HackingWebInspector
>
> How do you do it?
I have a copy of the inspector/front-end files in a Chrome extension
called "sirius", under extension/atopwi/inspector/front-end:
https://github.com/johnjbarton/sirius
I launch the devtools front-end from the extension using a context
menu entry. This opens a new window running the prototype code; I open
normal devtools on that window.
I edit the files within devtools, and save back to the extension
source using Andrey K.'s devtools-save extension. Then I use shell
scripts to copy the files back to the chromium source tree to create
patches.
Sirius also copies other directories from WebKit:
LayoutTests/http/tests/inspector/
Source/WebCore/inspector/front-end/
LayoutTests/inspector/
Source/WebKit/chromium/src/js/
Eventually I hope to able to run the tests within Sirius.
My motivation for this unusual approach is to dogfood Sirius. Sirius
uses chrome.debugger to send debug commands to the back end and can be
used by eg Web IDEs to connect to the backend without command line
flags on the browser. I also hope to make the testing system more
usable and re-usable over time.
jjb