26 Commits

Author SHA1 Message Date
IceArmy 2e44f1abd6 Make HTTP authentication as page settings.
http://code.google.com/p/phantomjs/issues/detail?id=45
2011-09-18 04:35:40 -07:00
IceArmy f39c3d4be8 Move debug setter down so it can be changed in ParseArgs hook
Reload verbose flag if ParseArgs hook changed the flag
Added args as an arg to ParseArgs hook
2011-09-17 23:14:13 -07:00
IceArmy e72274deb2 Re-order arguments into groups
Added --debug option which starts debugger automatically when an exception is encountered
2011-09-17 22:24:03 -07:00
IceArmy 6a5f3901a3 Created yes/no argument action handler to simplify conversion process
Also added type=int to max-disk-cache-size
2011-09-16 16:11:34 -07:00
IceArmy fff0b73234 Alphebetize imports 2011-09-15 17:18:08 -07:00
IceArmy 134eec2fbf Unify the name to 'cookiesFile' everywhere
http://code.google.com/p/phantomjs/issues/detail?id=91
http://code.google.com/p/phantomjs/issues/detail?id=180
2011-09-15 16:48:50 -07:00
IceArmy 5821a60db1 Rename option/config to localToRemoteUrlAccess(Enabled). 2011-09-07 20:52:22 -07:00
IceArmy 2448157c04 Config to limit the disk cache size 2011-09-06 19:32:10 -07:00
IceArmy a323161a56 Add HTTP Basic authentication support
Digest, and NTLM might also be supported, but is untested
2011-09-04 03:23:58 -07:00
IceArmy b5899f9064 Added ability to use JSON config files to set command-line arguments 2011-09-04 02:46:19 -07:00
IceArmy 1f7cb51780 Convert all Qt api's to api 2 2011-09-01 16:04:23 -07:00
IceArmy 106240aa3f Fix bug 8 where setup.py would pull in a file that needed PyQt4, even though it's not required; so it caused setup to fail for people.
Also simplified how the version system now works.
2011-09-01 13:04:28 -07:00
IceArmy 5e069ee711 Misc improvements
Changed all if not's/if's for None's to if value is None/if value is not None
Fix bug in fs where split never used os.altsep because if not always evaluated to False since there's almost always something in the list returned
Fix the fixme on fs.isAbsolute where we needed to split the Windows drive letter off
2011-08-24 14:32:29 -07:00
IceArmy 7cbd75a400 Make the parents the first argument (since we will always supply the arg, and also for cleanliness and order) 2011-08-18 14:23:58 -07:00
IceArmy 6154876a42 Replace all single quoted strings with escaped single quotes inside with a double quoted string to avoid needing to escape the single quotes 2011-08-01 19:10:04 -07:00
IceArmy 7fe267341a Pass app back to Phantom 2011-07-31 03:05:06 -07:00
IceArmy 9d66ddf5ad Simplify cookies file check 2011-07-31 03:05:06 -07:00
IceArmy 4ffd835cb3 Persistent cookie support 2011-07-29 03:55:52 -07:00
IceArmy b7fb218473 Improve plugin system
Thanks to frame hacks, we can get rid of passing/modifying locals()
- Passing bunched locals() is no longer needed on the hook points
- You can access the parent namespace with get() instead
- You can change stuff in the parent namespace with set()
2011-07-04 02:48:10 -07:00
IceArmy 64404a1902 Adding "--local-access-remote=[yes|no]".
* This will allow local content to access remote content, bypassing the same origin policy.
* It's controllable from the CLI and through the "page.settings" property
* This addresses Issue #28 but only partially: it's still not possible to make _remote content access other remote content on a different origin_.
2011-06-24 18:35:56 -07:00
IceArmy 0e765f2a95 Exit program properly when we call phantom.exit
Previously, calling phantom.exit would set the exit code and finish running the
JavaScript until it was done, then exit the program with your code. Basically
it didn't actually exit the program. It caused many code fallthrough problems,
but is now fixed. :)
2011-06-19 01:20:45 -07:00
IceArmy 6056bc0fa9 Added support for 'injectJs' and 'includeJs'
Updated bootstrap.js to latest. Also contains:
- Fix reference to handlers in onResourceReceived
- Private handlers
- Use closure to make 'handlers' really private.
- Handle onAlert event just like the other events.
- Handle 'onConsoleMessage' event just like the other events.
2011-06-12 01:23:15 -07:00
IceArmy d4548b9ad9 Transform all yes,no args into True,False in parseArgs() 2011-06-08 03:14:13 -07:00
Francisco Souza 7342d0f818 Merge branch 'master' of https://github.com/ariya/phantomjs 2011-06-06 23:25:39 -03:00
Francisco Souza c8dfe1e30a Merge branch 'master' of git://github.com/ariya/phantomjs 2011-06-05 20:00:43 -03:00