Commit Graph

1051 Commits (d17bf8c825897258b9f707630514d47ac100140c)

Author SHA1 Message Date
Ariya Hidayat fe20c0987d Avoid deleting a QWebPage inside its own signal emission.
If Phantom.exit() is called inside the handler for loadFinished(), we
end up in a situation that QWebPage is deleting itself during a signal
emission. This used to be OK in QtWebKit 2.0 (Qt 4.7) but is not OK for
QtWebKit 2.2 (upcoming Qt 4.8).

http://code.google.com/p/phantomjs/issues/detail?id=251

Patch by Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>.
2011-10-05 17:26:46 -07:00
Ariya Hidayat 3ba6649706 Merge pull request #163 from aportale/master
Autotest for Issue 249 (text codec support in static builds)
2011-10-04 21:41:55 -07:00
Ariya Hidayat a00d453fcd Minor rewording. 2011-10-04 21:41:35 -07:00
Alessandro Portale bf9a68ed43 Autotest for Issue 249 (text codec support in static builds)
Tests Japanese (Shift_JIS, EUC-JP, ISO-2022-JP) and Chinese
(Big5, GBK). Easy to extend with more data.

It will currently fail with static builds of PhantomJS, but
pass with dynamic ones.
2011-10-05 04:34:35 +02:00
Ariya Hidayat b8e69788d1 Merge pull request #162 from Roejames12/master
Some updates..
2011-10-04 11:53:13 -07:00
IceArmy af88a37ed8 Fix bug in CookieJar where QSettings expected str, but got QByteArray instead (#10) 2011-10-04 11:16:44 -07:00
IceArmy 1505c9a486 Add an actual version in the INSTALL for python-argparse 2011-09-28 12:29:56 -07:00
IceArmy c513f6430f Allow render() to save gif files. Requires PIL. 2011-09-27 14:17:35 -07:00
IceArmy d1b6623251 Merge branch 'master' of git://github.com/ariya/phantomjs 2011-09-27 10:34:03 -07:00
IceArmy 2accc8a724 Reorder methods to be alphabetical 2011-09-24 23:11:42 -07:00
Ariya Hidayat 1b7564ec3c This is "Water Lily". 2011-09-23 22:01:12 -07:00
IceArmy 470aaf5143 Reorder signals alphabetically 2011-09-23 06:38:41 -07:00
IceArmy 698c2619a8 Remove extra spaces in license 2011-09-23 04:40:56 -07:00
Ariya Hidayat 72279ca335 Merge pull request #160 from Roejames12/master
Just a few simple updates
2011-09-22 17:06:16 -07:00
IceArmy 58ea69dd7f Simplify process where auth username and password gets set 2011-09-22 04:26:58 -07:00
IceArmy 77d213f3ec Merge branch 'master' of git://github.com/ariya/phantomjs 2011-09-21 00:13:42 -07:00
Ariya Hidayat eb255817c5 Revert support for getting body of requests or responses.
This is causing a serious regression. For details, check out the
following issues:

http://code.google.com/p/phantomjs/issues/detail?id=158
http://code.google.com/p/phantomjs/issues/detail?id=238
2011-09-20 23:05:34 -07:00
Ariya Hidayat 8b0f13309a examples/follow: Update Sencha folks. 2011-09-20 21:55:24 -07:00
Ariya Hidayat 428c386cb8 Merge pull request #159 from gr2m/patch-1
Just a simple change to not only log the failed error, but also the actua
2011-09-20 18:18:54 -07:00
Gregor Martynus cec8b5672e Just a simple change to not only log the failed error, but also the actual message 2011-09-21 02:50:21 +03:00
IceArmy 796343a8f2 Revert "Add plugin hook to __init__"
This reverts commit c039a34068.
2011-09-18 21:22:27 -07:00
IceArmy 06e8a6dd3b Improve QPyFile implementation
- Now supports Python style open mode flags
- Wrappers have been placed around methods which require/return foreign data types
2011-09-18 15:52:29 -07:00
Ariya Hidayat 7c39b715a3 Merge pull request #158 from execjosh/issue-206-webpage-constructor-tests
Issue 206 webpage constructor tests
2011-09-18 07:08:13 -07:00
execjosh caab0951bf Add unit tests for initializing WebPage via constructor 2011-09-18 22:49:58 +09:00
Ariya Hidayat 4d8be6bd5d Merge pull request #157 from Roejames12/master
Syncing
2011-09-18 06:08:41 -07:00
execjosh 2b5f24c482 Make webpage unit tests more readable 2011-09-18 20:48:55 +09:00
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 4b882c25bd Improve the API for mouse events.
It now looks like in this example:

  page.sendEvent('mousedown', 42, 217);

Other available events are 'mouseup', 'mousemove', and 'click'. They modelled
after the DOM events.

Unit tests are included.

http://code.google.com/p/phantomjs/issues/detail?id=234
2011-09-18 04:35:26 -07:00
IceArmy b1c039569c Merge branch 'master' of git://github.com/ariya/phantomjs 2011-09-18 04:05:12 -07:00
IceArmy 26bbd765d4 Make it possible for plugin directory to be changed by setting PYPHANTOMJS_PLUGIN_PATH environment variable 2011-09-18 03:00:37 -07:00
IceArmy f9a281ef2a Refactor plugin implementation
Also, LookupError gets raised on some methods if the hook doesn't exist.
Reason is, that not raising would be silently passing off a potential error.
2011-09-18 02:58:43 -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 04909e30e4 Add hooks to Config() 2011-09-17 22:43:27 -07:00
IceArmy c039a34068 Add plugin hook to __init__
This paves the way for a plugin providing a Python API
2011-09-17 22:35:19 -07:00
IceArmy 3204616b30 Fix bug where separate NetworkAccessManager's were causing program to not exit 2011-09-17 22:24:11 -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
Ariya Hidayat f75bc156ba Cosmetic update to ChangeLog. 2011-09-16 21:57:57 -07:00
Ariya Hidayat 1178637805 Remove unported examples that do not work anymore. 2011-09-16 17:49:09 -07:00
Ariya Hidayat f0aec8d3fb Update ChangeLog. 2011-09-16 17:46:05 -07:00
Ariya Hidayat 2d0e4fc57c Fix copy paste mistake for HTTP authentication.
http://code.google.com/p/phantomjs/issues/detail?id=45
2011-09-16 17:36:27 -07:00
Ariya Hidayat 76de868075 Make HTTP authentication as page settings.
http://code.google.com/p/phantomjs/issues/detail?id=45
2011-09-16 17:34:02 -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 c90407b615 Merge branch 'master' of git://github.com/ariya/phantomjs 2011-09-16 13:44:16 -07:00
Ariya Hidayat e8b5655474 HTTP authentication is not only basic. 2011-09-16 07:31:22 -07:00
Ariya Hidayat 4544b129c9 Improve the API for mouse events.
It now looks like in this example:

  page.sendEvent('mousedown', 42, 217);

Other available events are 'mouseup', 'mousemove', and 'click'. They modelled
after the DOM events.

Unit tests are included.

http://code.google.com/p/phantomjs/issues/detail?id=234
2011-09-16 07:15:21 -07:00
Ariya Hidayat df93935d52 about:blank also needs document.head.
This makes it similar to what a typical web browser does.

http://code.google.com/p/phantomjs/issues/detail?id=235
2011-09-16 07:14:38 -07:00
IceArmy bdaa4a5899 Rename plugincontroller set() to set_() to avoid clashes with built-in set() 2011-09-15 22:06:52 -07:00
IceArmy 3b2fa1f162 Fix resource building script to work in any directory
Also fixed problem where script failed on spaces in file path
2011-09-15 21:38:29 -07:00
Ariya Hidayat d3c3110e3d Merge pull request #156 from Roejames12/master
Most recent updates and changes
2011-09-15 17:54:45 -07:00
IceArmy 7156c1f4d1 Merge branch 'master' of git://github.com/ariya/phantomjs 2011-09-15 17:42:40 -07:00