58 Commits

Author SHA1 Message Date
IceArmy 3581fae3c0 Revert most of commit c8f45c2d 2011-12-15 17:04:23 -08:00
IceArmy c8f45c2d15 Replace more unused variables with _ 2011-12-13 13:09:34 -08:00
IceArmy 8ade9f43a4 Fixed some small obscure bugs, clean up the code, and renamed unused variables to _ 2011-12-11 21:37:33 -08:00
IceArmy f94b87551d Probably best to take the base of the UnicodeError exceptions... 2011-11-30 11:35:44 -08:00
IceArmy 424214361a Further refactoring
Modified utils a bit to remove the problem of future circular imports
Cleaned up main pyphantomjs file
Cleaned up a little of the code
2011-11-27 10:56:12 -08:00
Ariya Hidayat f18fd5372f Fix regression of onInitialized.
As suggested by Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>,
there is no need to use queued connection for initialized() slot.

http://code.google.com/p/phantomjs/issues/detail?id=264
2011-10-25 09:48:27 -05:00
IceArmy 13118b35bf 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-06 08:28:23 -07:00
IceArmy c513f6430f Allow render() to save gif files. Requires PIL. 2011-09-27 14:17:35 -07:00
IceArmy 2accc8a724 Reorder methods to be alphabetical 2011-09-24 23:11:42 -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
IceArmy 58ea69dd7f Simplify process where auth username and password gets set 2011-09-22 04:26:58 -07: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 3204616b30 Fix bug where separate NetworkAccessManager's were causing program to not exit 2011-09-17 22:24:11 -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 fff0b73234 Alphebetize imports 2011-09-15 17:18:08 -07:00
IceArmy 04f5165714 Special handling for about:blank
http://code.google.com/p/phantomjs/issues/detail?id=235
2011-09-15 16:19:35 -07:00
IceArmy 0f6c59cc6e Every web page gets its own network access manager.
Network-related activites should not be shared between web page
instances. Otherwise, it is extremely confusing when there are two (or
more) web pages are active at the same time.

http://code.google.com/p/phantomjs/issues/detail?id=190
2011-09-15 16:13:57 -07:00
IceArmy 826ab347e4 Refactoring on the module implementation.
Also implemented a new QPyFile class which is a wrapper
over QFile, supporting context managers. It greatly
improves code readability and reusability.

http://code.google.com/p/phantomjs/issues/detail?id=47
2011-09-13 14:45:28 -07:00
IceArmy febf9a14f6 Use super() for all class initializers instead 2011-09-12 22:27:04 -07:00
IceArmy c7dafc8dcb Fix wrong viewport size due to commits 983518d9 and 7641e4e1.
http://code.google.com/p/phantomjs/issues/detail?id=217
2011-09-10 18:24:54 -07:00
IceArmy 5821a60db1 Rename option/config to localToRemoteUrlAccess(Enabled). 2011-09-07 20:52:22 -07:00
IceArmy d4fe103a66 Whoops! self.parent != self.m_parent 2011-09-04 00:04:12 -07:00
IceArmy 87a580f36a Add output-encoding and script-encoding options 2011-08-31 15:43:29 -07:00