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
3d8d7342ab
Rename self.parent to self.m_parent
2011-08-23 12:18:41 -07:00
IceArmy
fa285e0aca
page.release() now works without JS shim.
2011-08-23 12:18:25 -07:00
IceArmy
3caac5a5a3
Rename "XSSAuditing" to "XSSAuditingEnabled"
2011-08-21 14:08:14 -07:00
IceArmy
9057287171
Add callback for page initialization. #143
2011-08-20 18:50:56 -07:00
Ariya Hidayat
e79a51bdd8
Merge pull request #129 from Roejames12/QWebSettings
...
New page settings
2011-08-20 17:17:36 -07:00
IceArmy
8880edcf78
Remove settings: jsOpenWindows, jsAccessClipboard, siteSpecificQuirksMode
...
Renamed jsEnabled to javascriptEnabled
2011-08-20 16:49:36 -07:00
IceArmy
7418a84e60
Added functions to WebPage class to simulate mouse move, mouse up, and mouse down. Also added click() convenience function, which combines a move, mousedown, and mouseup.
2011-08-19 16:32:14 -07:00
IceArmy
9e4830d44c
Move pdf_dpi to better location
2011-08-19 16:32:14 -07:00
IceArmy
33005c3957
Add a few new QWebSettings for page settings.
...
Among the most useful, is the jsEnabled setting, which allows you to disable JavaScript.
2011-08-19 15:47:34 -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
12d36a195a
Don't require \ at the end of multiline imports
2011-08-01 19:13:19 -07:00
IceArmy
c9ad2c35a7
Correctly handle KeyError/ValueError exceptions on scrollPosition setter
2011-07-29 02:12:12 -07:00
IceArmy
56939bc153
Simplify clipRect code
2011-07-29 02:11:55 -07:00
IceArmy
4440397ef4
Remove useless .keys() method call in for loops
2011-07-29 01:59:50 -07:00
IceArmy
df5ac1d9c3
Rename m_webPage.scrollPosition to m_webPage.m_scrollPosition
...
Fix bug where m_scrollPosition is undefined if you read scrollPosition from JS without first setting it
2011-07-29 01:56:37 -07:00
IceArmy
403572b633
Stop using globals() on scrollPosition()
2011-07-29 01:52:53 -07:00
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
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
78c984d6bf
Stop messing with the global namespace on clipRect and viewportSize
2011-07-03 23:16:51 -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
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
Ariya Hidayat
6e2b362850
Change scriptLookupDir to libraryPath.
2011-06-17 20:52:19 -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
0e3b765cc4
Add 'onResourceReceived' event, fired when resource is being received.
2011-06-08 03:13:18 -07:00
Ariya Hidayat
ea62c17b91
Fix typo, it's C5E and not CSE.
2011-06-07 11:27:10 -07:00
IceArmy
81627896c2
Support every possible PDF format
2011-06-07 10:57:08 -07:00
IceArmy
8314ad3197
Add "onResourceRequested" event, fired when request is started.
...
To see how this is being used, see the new examples/netsniff.js.
http://code.google.com/p/phantomjs/issues/detail?id=2
2011-06-07 02:31:33 -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
Francisco Souza
9b12ce3f89
Changed the name of package from phantom to pyphantomjs
2011-06-05 19:55:07 -03:00