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
3eb16093c0
We shall just pass the args instance, that's cleaner and less messy.
...
This is a preparation step for
http://code.google.com/p/phantomjs/issues/detail?id=190
2011-09-15 15:18:35 -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
7bb97fb0da
Create FileSystem instance only when needed.
...
Also made FileSystem a singleton.
2011-09-09 01:05:33 -07:00
IceArmy
0a25130e57
Implement require('webpage').
...
window.WebPage still works, it is not recommended and will be deprecated.
http://code.google.com/p/phantomjs/issues/detail?id=47
2011-09-09 01:05:23 -07:00
IceArmy
ad390acd96
Implement require('fs')
...
http://code.google.com/p/phantomjs/issues/detail?id=47
2011-09-08 15:24:50 -07:00
IceArmy
5821a60db1
Rename option/config to localToRemoteUrlAccess(Enabled).
2011-09-07 20:52:22 -07:00
IceArmy
de2dc7b861
Stop unsafe QByteArray conversions using str()
2011-09-07 05:00:26 -07:00
IceArmy
2448157c04
Config to limit the disk cache size
2011-09-06 19:32:10 -07:00
IceArmy
bb1a6fa838
Implement copyTree in filesystem-shim
2011-09-04 22:07:17 -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
cb216ccc6f
Update FS API
...
Put shims into separate js files
All tests now pass again as well
2011-09-03 22:57:01 -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
87a580f36a
Add output-encoding and script-encoding options
2011-08-31 15:43:29 -07:00
IceArmy
1b73d5c310
Add phantom.outputEncoding
2011-08-24 16:39:58 -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
fa285e0aca
page.release() now works without JS shim.
2011-08-23 12:18:25 -07:00
IceArmy
fb93d49a7f
Rename page.destroy() to page.release()
2011-08-21 14:12:15 -07:00
IceArmy
3caac5a5a3
Rename "XSSAuditing" to "XSSAuditingEnabled"
2011-08-21 14:08:14 -07:00
IceArmy
8880edcf78
Remove settings: jsOpenWindows, jsAccessClipboard, siteSpecificQuirksMode
...
Renamed jsEnabled to javascriptEnabled
2011-08-20 16:49:36 -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
4ffd835cb3
Persistent cookie support
2011-07-29 03:55:52 -07:00