Since Android has such pathetic documentation, I'm looking for the source code for the browser so I can see what objects it provides to JavaScript. Where should I look? Is there an online source code browser?
How do I view source HTML in the Android browser? Viewing HTML source code in any Android Browser such as Chrome is very easy. Just add command “view-source:” without the quotes in front of the URL. For e.g. if you want to view source of http://www.google.co.in, just append view-source: before the actual URL.
If it doesn't pop up on its own, tap and hold the highlighted area so it appears, and then select Copy. Once the source code is copied to the clipboard, you can paste it into any app you want, such as the Notes app or an email message. To paste, tap and hold a typing area and select Paste.
It's in the Git repository:
https://android.googlesource.com/platform/packages/apps/Browser
https://android.googlesource.com/platform/external/webkit/+/android-3.2.4_r1/WebCore/xml/XMLHttpRequest.h
Edit:
The applications are now mirrored on github. You can find the browser here: https://github.com/android/platform_packages_apps_browser.git
Or try GrepCode: You can even throw a stack trace at it and it shows all relevant java files in all platform versions.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With