Commit Graph

180 Commits (5adc92aec01357b6d235d70dea327b36c5662965)

Author SHA1 Message Date
Kapil Reddy 7641e4e1a4 Renamed pageScroll to scrollPosition 2011-07-11 12:17:40 +05:30
Kapil Reddy 983518d913 Added pageScroll property to webPage for javascript and changed renderImage code to render webpage considering scroll 2011-07-08 14:29:10 +05:30
IceArmy 0d513a4d0b Regenerate resources 2011-07-04 11:07:23 -07:00
IceArmy d1c418ba07 Allow constructs such as: page.open(url, operation) 2011-07-04 11:06:34 -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
Roejames12 75dc3705b9 Remove redundant 'install' section in setup.py 2011-07-04 00:25:35 -07:00
Roejames12 8cfdb0619a Improved README and INSTALL files 2011-07-04 00:22:25 -07:00
IceArmy 78c984d6bf Stop messing with the global namespace on clipRect and viewportSize 2011-07-03 23:16:51 -07:00
IceArmy f83d706f80 Made a custom console script for PyPi since the autogenerated one failed. 2011-07-03 01:36:48 -07:00
IceArmy 00f21213b8 Add homepage URL and license information 2011-07-03 00:07:01 -07:00
IceArmy 97966e8fe8 Remove unneeded del statement. 2011-07-02 17:33:18 -07:00
IceArmy d12202f0a6 More efficient handling of exit() deletion of pages 2011-07-02 17:26:06 -07:00
IceArmy 5218ab7e76 Delete page references on exit() 2011-07-02 17:10:28 -07:00
IceArmy 11ff154145 Regenerate resources 2011-07-02 17:10:28 -07:00
IceArmy 895923603f Fix memory issues by providing a way to truly delete WebPages. #154
Use page.destroy() to delete the page and regain the memory.
2011-07-02 17:08:06 -07:00
IceArmy edf6bc1d98 Remove unneeded is checks 2011-07-01 12:16:07 -07:00
IceArmy d829a2ddc3 Add link versions of fs API 2011-06-30 01:14:29 -07:00
IceArmy bd44efa3f3 Fix fs.changePermissions to not reset file permissions then add changed ones on
It now only changes what you specify to change, correctly.
2011-06-29 23:12:55 -07:00
IceArmy a0a79e4ddc Make fs.join() able to take unlimited paths as per spec.
This however now requires us to pass an array.
E.g. fs.join(['pathA', 'pathB', 'pathC'])
2011-06-29 21:58:18 -07:00
IceArmy 8f79f29659 Add umask, newline, changeGroup, changeOwner, changePermissions, group, owner, permissions 2011-06-29 21:58:18 -07:00
IceArmy 7f67808544 Add hook points to filesystem.py 2011-06-29 05:38:10 -07:00
IceArmy 90eb114cde Add support for TONS of methods defined in CommonJS specs 2011-06-29 05:12:22 -07:00
IceArmy fc81a1e258 Regenerate resources 2011-06-29 02:19:58 -07:00
IceArmy da987ed034 Introducing File I/O API in PyPhantomJS.
* Inspired by HammerJS (see https://github.com/senchalabs/hammerjs)
* Not yet 100% complete
* Final aim is to provide a CommonJS/Filesystem compliant API (see http://wiki.commonjs.org/wiki/Filesystem)
2011-06-29 02:19:08 -07:00
IceArmy bd775fd429 Improve error reporting for injectJsInFrame()
Also changed warnings to debugs
2011-06-29 02:14:50 -07:00
IceArmy a2aed0064c Fix crash on exit (Issues #136, #148 and #149) 2011-06-28 18:41:29 -07:00
IceArmy 67702dbc46 Bump version. 2011-06-26 18:39:03 -07:00
IceArmy 8621e9e4d5 Regenerated resources 2011-06-26 18:28:12 -07:00
IceArmy 2d6fa95171 Fixed issue with the open method that was preventing the use of POST unless a onLoadFinished handler was also passed in. 2011-06-26 18:28:00 -07:00
IceArmy ce065d9fda Improved plugin system
You can now set a priority on a function to control
when it executes for a particular action (hook).
Default priority is 10, but can be changed to anything.

For example, if you have 2 functions hooked to 'Phantom',
you can change one function to priority 12 and leave the other
at 10, so the one at 10 will execute first, no matter where
it is defined.
2011-06-26 18:13:41 -07:00
IceArmy 346f238d7f Enabled HTML5 Web App Cache. 2011-06-24 18:35:56 -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 8064c294b3 Fix loading plugins when program is frozen 2011-06-21 10:46:12 -07:00
IceArmy 75b757226f Regenerate resources 2011-06-21 00:07:16 -07:00
Ariya Hidayat 753ef864b9 Merge pull request #84 from corgibytes/fix-disconnect-this
Correctly disconnected event handler.
2011-06-20 23:59:32 -07:00
IceArmy 49b630bd65 Make sure phantom.exit() really exits. 2011-06-20 23:54:03 -07:00
M. Scott Ford 95a7650be8 Correctly disconnected event handler. 2011-06-20 18:55:05 -04:00
IceArmy 69b06da140 Revert "Exit program properly when we call phantom.exit" 2011-06-20 10:14:08 -07:00
IceArmy d29c6732b5 Pass source and lineNumber for console redirection.
onConsoleMessage callback can handle two (optional) arguments, e.g.

    page.onConsoleMessage = function (msg, lineNo, source) {
        ....
    };
2011-06-19 22:34:29 -07:00
IceArmy 1be23d0be9 Regenerate resources 2011-06-19 21:19:01 -07:00
IceArmy 3d0c56af40 Fix the last problem with setTimeout and setInterval 2011-06-19 21:18:14 -07:00
IceArmy 1fb67c49e7 Fix bug where output couldn't be piped/redirected 2011-06-19 18:40:44 -07:00
IceArmy c44838227d Fix bug where phantom.exit wouldn't exit properly 2011-06-19 17:26:39 -07:00
IceArmy 7a9e0c8599 Exit on start script error 2011-06-19 13:37:03 -07:00
IceArmy 56039cae7f Fix issue 131 - 'Properly exit page' causes changed stack trace 2011-06-19 02:49:13 -07:00
IceArmy 9a85d01687 Add newline to CSConverter.convert 2011-06-19 01:23:44 -07:00
IceArmy 11e29fe45c Regenerate resources 2011-06-19 01:23:01 -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
Ariya Hidayat 6e2b362850 Change scriptLookupDir to libraryPath. 2011-06-17 20:52:19 -07:00
IceArmy d78b481777 Regenerate resources 2011-06-17 01:04:40 -07:00