Commit Graph

1516 Commits (34c5e418f13d318168ddb2dc442a0687939d8c4f)

Author SHA1 Message Date
Ariya Hidayat 34c5e418f1 Get ready for 1.9.1. 2013-06-03 23:11:50 -07:00
Ariya Hidayat de6e1928a4 ChangeLog: Include the proxy fix. 2013-06-02 19:02:09 -07:00
Ariya Hidayat d181c00378 Unit tests: reduce the flakiness of loading progress tests.
For whatever reason, swapping the order with the render() tests solve the
intermittent random failures. Also, split the tests between loading
start and finish checks (to better recognize which one is failing, if
there is a failure), also make the tests more asynchoronous.

https://github.com/ariya/phantomjs/issues/11091
2013-06-02 13:33:52 -07:00
Ariya Hidayat 192a1e15f9 Unit test: secure connection check becomes async.
Issue #10882: https://github.com/ariya/phantomjs/issues/10882
2013-06-02 12:22:17 -07:00
Ariya Hidayat f01ab4ec5a Unit tests: robustify the tests of PDF, GIF, PNG, JPEG rendering.
Issue #10973 https://github.com/ariya/phantomjs/issues/10973
2013-06-01 23:49:45 -07:00
Ariya Hidayat 218baaa1d1 Unit tests: terminate any web servers after finishing the tests.
Issue #11163: https://github.com/ariya/phantomjs/issues/11163
Issue #11243: https://github.com/ariya/phantomjs/issues/11243
2013-06-01 22:27:12 -07:00
Ariya Hidayat 678f751275 Unit test: tweak secure connection check.
The main wikipedia page can be slow to load and thus triggers the timeout.
Let's use the fast Google site so that we don't get flaky outcome.

Issue #10882: https://github.com/ariya/phantomjs/issues/10882
2013-06-01 19:52:38 -07:00
Vitaliy Slobodin 0cdd1ecc7a Fix including http:// in the proxy URL:
The proxy host parsed incorrectly, when it was typed with a scheme (http or https).
Now proxy can be specified with the scheme.

Fix invalid type conversion:
m_proxyPort converts to its ASCII representation.
Use `QString::number` to include a proxy port properly.

Issues:
https://github.com/ariya/phantomjs/issues/11117
https://github.com/ariya/phantomjs/issues/10811
2013-06-01 09:21:38 -07:00
Ariya Hidayat f63815d4bc Issue #10939: Mark for the upcoming version 1.9.1.
https://github.com/ariya/phantomjs/issues/10939
2013-05-20 19:50:30 -07:00
Ariya Hidayat 82dcf089e6 Update ChangeLog with the important (backported) network crash fix. 2013-05-20 19:50:29 -07:00
Vitaliy Slobodin bfc41e6632 Make QNetworkReplyHandler deliver content asynchronously
when its load type is set to SynchronousLoad.

Issue #11338: https://github.com/ariya/phantomjs/issues/11338
Upstream bug: https://bugs.webkit.org/show_bug.cgi?id=62808
2013-05-20 19:49:47 -07:00
Ariya Hidayat b1430051c8 third-party.txt: Include OpenSSL.
Issue #11269 https://github.com/ariya/phantomjs/issues/11269
2013-05-20 00:38:32 -07:00
Alex Alvarez 2c2d020891 Netsniff.js example should exit with an error when fails to load the adress
Issue #11333 https://github.com/ariya/phantomjs/issues/11333
2013-05-20 00:30:07 -07:00
Alex Alvarez 08cf5bb4e2 Netsniff.coffee example should exit with an error when fails to load the adress
Issue #11333 https://github.com/ariya/phantomjs/issues/11333
2013-05-20 00:30:07 -07:00
Vitaliy Slobodin 77bb8d496a Fix crash when calling QObject::disconnect for QNetworkReplyWrapper
Fix it by watching the QNetworkReply's destroyed() signal and avoid the dangling pointer
instead. The QNetworkReply doesn't need to be aborted in this case anyway.

Issue #11252: https://github.com/ariya/phantomjs/issues/11252
Upstream bug: https://bugs.webkit.org/show_bug.cgi?id=116035
2013-05-20 00:30:06 -07:00
execjosh be24776878 Link with text codec plugins on mac and linux
Fixes [#10249](https://github.com/ariya/phantomjs/issues/10249)
2013-04-29 07:13:34 -07:00
execjosh 5936872c51 Improve WebPage CJK support tests.
This is for issue #10249: https://github.com/ariya/phantomjs/issues/10249.
2013-04-29 07:13:27 -07:00
Andrew Galloni 3f2336e71a ChangeUrl to accept an encoded string
Issue #11243: https://github.com/ariya/phantomjs/issues/11243.
2013-04-29 07:11:30 -07:00
Robin Helgelin 9b4a3db92b Updated rpm spec file to work with 1.9.
Issue #10939: https://github.com/ariya/phantomjs/issues/10939
2013-04-29 07:11:24 -07:00
Ariya Hidayat ba1ff4cae6 ChangeLog: Update with backported fixes. 2013-04-14 07:24:47 -07:00
Vitaliy Slobodin 302b6bacb5 Fix command line option typo
Issue #11219: https://github.com/ariya/phantomjs/issues/11219
2013-04-14 06:57:13 -07:00
execjosh d90870aa26 Use UTF-8 encoding for std{in,out,err}
This fixes issue #11162.

`File` constructor takes a `QTextCodec *`, codec; but, if codec is
`NULL`, then it assumes "binary" mode, which causes non-ASCII
characters to be converted to NUL (`\0`) in `File::write`.

This change passes the codec for UTF-8 to the `File` constructor for
the `std{in,out,err}` instances, thus opening them in *text mode*.
2013-04-14 06:57:06 -07:00
execjosh 9a7fd20697 Flush in `File::write` when in unbuffered "text" mode
If the wrapped `QFile` was opened with `QIODevice::Unbuffered`, any
writes should be unbuffered.  However, as currently implemented,
using `QTextStream` when the `File` is in "text" mode causes all
reads/writes to be buffered.

This modification forces a flush in `File::write` if the wrapped
`QFile` was opened with `QIODevice::Unbuffered`.

Necessary to fix issue #11162 https://github.com/ariya/phantomjs/issues/11162.
2013-04-14 06:56:52 -07:00
Vitaliy Slobodin 1e6b9dfb6a Fire `onResourceReceived` callback when the resource error occured.
Issue #11163: https://github.com/ariya/phantomjs/issues/11163
2013-04-14 06:56:41 -07:00
Vitaliy Slobodin e5c456bb07 Fix loading modules from an absolute path on Windows.
Don't check the module path using Linux-style path checking.

Issue #11165: https://github.com/ariya/phantomjs/issues/11165
2013-04-14 06:56:25 -07:00
Ariya Hidayat da71c5fbdd Issue #10939: Mention 1.9 as the new stable.
https://github.com/ariya/phantomjs/issues/10939
2013-03-20 22:38:03 -07:00
Ariya Hidayat bb1a407e8d ChangeLog: Always mention the code names. 2013-03-20 22:38:03 -07:00
Ariya Hidayat bda3355060 Issue #10939: Get ready for version 1.9.0.
https://github.com/ariya/phantomjs/issues/10939
2013-03-20 22:23:51 -07:00
Ariya Hidayat 08bbd324d1 Update ChangeLog.
https://github.com/ariya/phantomjs/issues/10939
2013-03-20 22:22:59 -07:00
Ariya Hidayat 9ef69005d4 ChangeLog: Modify the issue numbers to match the new issue tracker.
https://github.com/ariya/phantomjs/issues/10939
2013-03-20 20:32:24 -07:00
DjinnS b5345bc133 netsniff example: Exclude Data URI from HAR.
Fixes issue #10740.

https://github.com/ariya/phantomjs/issues/10740
2013-03-20 20:24:59 -07:00
Jonathan Wilkins 9f9053ec44 Add support for specifying non-default CA certificate bundles.
This is done via SSL_CERT_DIR and --ssl-certstore.

Fixes issue #10916.

https://github.com/ariya/phantomjs/issues/10916
2013-03-20 08:27:54 -07:00
Tom Aizenberg 52883ced68 WebPage: network timeout setting.
Fixes issue #11129.

https://github.com/ariya/phantomjs/issues/11129
2013-03-19 22:57:26 -07:00
Laurent Jouanneau b16a5348a9 WebPage: new constants for modifiers keys
Declares in event.modifiers all constants needed for the fifth
parameter of sendEvent.

http://code.google.com/p/phantomjs/issues/detail?id=1056
https://github.com/ariya/phantomjs/issues/11056
2013-03-18 22:24:02 -07:00
Ariya Hidayat 63dc1e2c8f Add a patch to disable touch event support.
This is from https://github.com/ariya/phantomjs/pull/408.
See also issue #10375 for some related discussion.

https://github.com/ariya/phantomjs/issues/10375
2013-03-18 22:00:16 -07:00
Max Desyatov 0147fcbc07 Support for specifying request body encoding for WebPage::openUrl
Added a simple test in test/webpage-spec.js

Test data from http://code.google.com/p/phantomjs/issues/detail?id=1043
2013-03-18 21:43:22 -07:00
Max Desyatov 357dbf46d2 Support for specifying request body encoding for WebPage::openUrl
doesn't break existing functionality and currently supports only
"utf-8" and "utf8" encodings

Fixes http://code.google.com/p/phantomjs/issues/detail?id=1043
2013-03-18 21:43:00 -07:00
Ivan De Marino 6989188fa0 Merge pull request #11146 from detro/ghostdriver-dev
Importing GhostDriver v1.0.3
2013-03-18 02:22:46 -07:00
Ivan De Marino 78d90641df Importing new GhostDriver 1.0.3.
See the https://github.com/detro/ghostdriver/ project for details.
2013-03-18 09:20:50 +00:00
Ivan De Marino 005db037cf Tests for the new "page.loading" property.
This commit provides the unit tests for the new property, as asked by
Ariya in #11091.
2013-03-18 09:19:41 +00:00
Ivan De Marino 9740990990 New "page.loading" and "page.loadingProgress".
Now you can know about the Page Loading Progress
using 2 property:
- [bool] page.loading
- [int: 0-100] page.loadingProgress

Implements #1091: http://code.google.com/p/phantomjs/issues/detail?id=1091
2013-03-17 16:24:47 +00:00
Ariya Hidayat 9af1f09f58 Change issue tracker link to point to the new one.
From now on, it's https://github.com/ariya/phantomjs/issues.

For the details, check this mailing-list discussion:
https://groups.google.com/d/msg/phantomjs/It04OsP7csU/Vw2cmJkAILUJ
2013-03-16 09:19:25 -07:00
Ariya Hidayat 9df52bb752 Update ChangeLog.
Also, includes changes from 1.8.x.

http://code.google.com/p/phantomjs/issues/detail?id=863
https://code.google.com/p/phantomjs/issues/detail?id=939
2013-03-02 21:52:45 -08:00
Ariya Hidayat d42c4002c4 examples/follow: Update Twitter handles.
https://code.google.com/p/phantomjs/issues/detail?id=1082
2013-03-02 21:33:36 -08:00
Ariya Hidayat 1c80f7306e Update ChangeLog.
http://code.google.com/p/phantomjs/issues/detail?id=939
2013-02-24 19:51:26 -08:00
Alexander James Phillips 5d6b8240f7 page_events example should show requests and navigate to step2url
http://code.google.com/p/phantomjs/issues/detail?id=1028
2013-02-24 16:18:05 -08:00
Dody Suria Wijaya 58566bbe76 Fix concurrent issue on render_multi_url example
webkit (thus phantomjs) load() does not call loadFinished at the expected timing when running concurrently. The example is changed to run non-concurrently as a work around.

Issue: http://code.google.com/p/phantomjs/issues/detail?id=1021
2013-02-24 10:26:42 -08:00
Vitaliy Slobodin fed209c546 Allocate JsNetworkRequest on the stack to avoid leaking it.
https://code.google.com/p/phantomjs/issues/detail?id=539
2013-02-24 09:00:49 -08:00
Vitaliy Slobodin 212e4b7cd9 Reworked api for canceling network requests. Added experimental API for changing the url of the network request.
Issue:
http://code.google.com/p/phantomjs/issues/detail?id=539

Stub
2013-02-24 09:00:07 -08:00
Capi Etheriel ca27a8eab1 Use fs.write in the example for clarity.
https://code.google.com/p/phantomjs/issues/detail?id=1082
2013-02-24 08:56:38 -08:00