Mike McQuaid
fe6a967bad
Fix Clang compilation
...
Already merged in Qt: b82b8bfa81
Issue #11611 https://github.com/ariya/phantomjs/pull/11611
2013-10-01 07:38:40 -07:00
hexid
b1e181176e
Add require.paths support
...
Issues: https://github.com/n1k0/casperjs/issues/462 https://github.com/ariya/phantomjs/issues/11339
2013-09-01 07:53:08 -07:00
Ivan De Marino
73bb560840
Import GhostDriver v1.0.4
...
Issues in this release: https://github.com/detro/ghostdriver/issues?labels=1.0.4&state=closed
See GhostDriver Changelog for more details.
2013-07-25 23:24:53 +01:00
Dmitry Parshin
8114d44a28
fixed compile errors for no-JIT configuration
...
Issue #11475 https://github.com/ariya/phantomjs/issues/11475
2013-07-24 23:38:44 -07:00
Richard Harris
4989445e71
Fix harfbuzz assertions using patch from Chromium.
...
Exotic text (e.g. attempting to render a binary file such as .zip
or .exe as a webpage) can trigger an assertion failure in the
Harfbuzz code. Chromium developers also noticed this issue and
committed a patch to fix it:
http://lists.freedesktop.org/archives/harfbuzz/2009-August/000354.html
This patch has not been accepted by upstream, but this (old) version
of Harfbuzz has been abandoned and superceded by Harfbuzz-NG.
Issue #11264
2013-07-24 23:34:45 -07:00
Vitaliy Slobodin
1a25383307
Use Qt::transparent to resolve graphical artifacts with images with transparent background.
...
We need to use QImage::Format_ARGB32_Premultiplied on Windows to preserve a text hinting and antialiasing. Using the function `qRgba()` leads to wrong pixel values on a target image. Since, `QImage::fill(uint pixel)` doesn't handle the QImage::Format_ARGB32_Premultiplied format, so we need to use the another overload `QImage::fill(const QColor &color)`
Issues:
https://github.com/ariya/phantomjs/issues/11276
https://github.com/ariya/phantomjs/issues/11007
https://github.com/ariya/phantomjs/issues/11366
2013-06-24 01:07:24 +04:00
Ivan De Marino
c466d8aeef
WebServer Headers for Request are treated case-insensitive
...
To achieve this, Request Headers are stored in both "original" and "lowercase".
In this way we don't mangle with the request object we have received, while
still be able to handle headers when NOT in the classic "Camel-Case" format.
Fixes #11421 .
2013-06-21 23:51:05 +01:00
Vitaliy Slobodin
4d916971b3
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-05-29 00:38:15 +04:00
Vitaliy Slobodin
639e8c85b2
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:23 -07:00
Vitaliy Slobodin
0726a8e2bb
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-19 12:01:33 -07:00
Vitaliy Slobodin
5528d75c9d
Network request header manipulation
...
Issue: https://github.com/ariya/phantomjs/issues/11299 (#11299 )
User should be able to manipulate HTTP headers per each network request, not only using global setting page.customHeaders.
2013-05-13 22:48:58 -07:00
Vitaliy Slobodin
f8e79fb8c6
Limit the maximum request post size to 10 MB (megabytes).
...
std::numeric_limits<qint64>::max is too big for QByteArray (throws Out of Memory exception).
Set up the limit like it was done in Google Chrome
Ref: https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit/Source/core/inspector/NetworkResourcesData.cpp
Related to issue #10158 https://github.com/ariya/phantomjs/issues/10158
2013-05-13 22:41:15 -07:00
Ivan De Marino
23515550d5
MINOR: Reorder initialisation order in NAM constr.
...
`m_resourceTimeout` is declared before of other
private variables, and the compiler was complaining
the initialisation order could not be respected.
This caused annoying (but innocuous) warnings at compile time.
2013-04-30 22:57:58 +01:00
Andrew Galloni
3ae632e704
ChangeUrl to accept an encoded string
...
Issue #11243 : https://github.com/ariya/phantomjs/issues/11243 .
2013-04-29 07:07:53 -07:00
execjosh
39bec1ce17
Synchronize std{in,out,err} encoding with `Terminal`
...
See #11234 https://github.com/ariya/phantomjs/pull/11234
Spin off from #11168 https://github.com/ariya/phantomjs/pull/11168
2013-04-29 07:00:47 -07:00
execjosh
b159144a48
Teach `File` how to change its encoding
...
If a `File` is in "text" mode, then it has an encoding. This
encoding defaults to UTF-8; however, it can be set only at time of
construction (by using `fs.open`).
This modification allows the user to change the encoding on-the-fly
for "text" mode `File` instances.
See #11234 https://github.com/ariya/phantomjs/pull/11234
Spin off from #11168 https://github.com/ariya/phantomjs/pull/11168
2013-04-29 07:00:19 -07:00
execjosh
3d874d9e0d
Make `Terminal` emit a signal upon encoding change
...
See #11234 https://github.com/ariya/phantomjs/pull/11234
Spin off from #11168 https://github.com/ariya/phantomjs/pull/11168
2013-04-29 06:58:44 -07:00
execjosh
f8a905c8b0
Link with text codec plugins on mac and linux
...
Fixes [#10249 ](https://github.com/ariya/phantomjs/issues/10249 )
2013-04-22 22:35:56 -07:00
Vitaliy Slobodin
3edcabef9f
Fix compilation with MSVC 2010
...
Issue #10158 : https://github.com/ariya/phantomjs/issues/10158
This bug introduced by the marco max( ) defined in <windef.h>.
It replaces max( ) with another statement but still preceeded by numberic_limits<Type>::
The workaround is to use the parenthesis
2013-04-13 20:17:12 -07:00
Vitaliy Slobodin
78242e5d6c
Fix command line option typo
...
Issue #11219 : https://github.com/ariya/phantomjs/issues/11219
2013-04-12 23:12:20 -07:00
execjosh
36ab7194e4
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-12 23:10:25 -07:00
execjosh
8042f3b92c
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-12 23:10:08 -07:00
Ariya Hidayat
0bc2eb418e
Temporarily call this branch as version 1.10.
...
Issue #10448 https://github.com/ariya/phantomjs/issues/10448#issuecomment-15689386
2013-03-31 03:06:50 -07:00
Pavel
fcdd274f2e
Show postData in onResourceRequested callback.
...
Issue #10158 https://github.com/ariya/phantomjs/issues/10158
2013-03-31 02:54:37 -07:00
Vitaliy Slobodin
47dc82681d
Fire `onResourceReceived` callback when the resource error occured.
...
Issue #11163 : https://github.com/ariya/phantomjs/issues/11163
2013-03-31 02:39:53 -07:00
Vitaliy Slobodin
9ca45ed62e
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-03-25 19:01:32 -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
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
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
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
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
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
Ivan De Marino
04368c6af8
HOTFIX: @Vitalliumm discovered a typo in CookieJar
...
Original message: https://twitter.com/vitalliumm/status/301220038323613697
This was affecting date comparison/espiration in the
CookieJar.
Typical case of "I have no idea how it did work so far".
http://code.google.com/p/phantomjs/issues/detail?id=1068
2013-02-12 07:34:57 -08:00
Juliusz Gonera
2d42b52c67
Make require.stub() optionally accept a factory function
...
require.stub() can now accept a factory function instead of an object
so that stubbed modules are initialized lazily:
require.stub('zlib', function() {
// initialized once, when zlib first required
return {
createGzip: function() { ... }
};
});
http://code.google.com/p/phantomjs/issues/detail?id=1044
2013-02-05 00:04:17 -08:00
Julian Szulc
1e5638678d
Fix ignoring ssl errors on synchronous xhrs
...
disabling peer verify in ssl configuration when ignore-ssl-errors is set
issue http://code.google.com/p/phantomjs/issues/detail?id=985
2013-02-05 00:01:50 -08:00
James M. Greene
1604b4d6c1
Updated help output to prefer true/false to yes/no
...
Similarly, I updated the API Reference too:
7cddd19676
This arguably makes more sense to PhantomJS's typical audience of web developers.
2013-02-04 23:58:10 -08:00
Ariya Hidayat
43ab20d4ae
Prevent possible crash on pages with iframes.
...
In some cases, setupFrame() has not been invoked (due to the queued
signal-slot connection) after the frame is destroyed and thus leads
to the crash. We prevent this from happening by making sure it is a
direct connection instead and therefore setupFrame() will be executed
as soon as possible.
Investigation + patch by Vitaliy Slobodin <vitaliy.slobodin@gmail.com>.
http://code.google.com/p/phantomjs/issues/detail?id=947
2013-01-28 21:13:47 -08:00
Jeff Boulter
ec6b242a9f
Fixed the CreationDate value format when creating PDFs.
...
This was confusing Adobe Reader and not allowing it to save PDFs.
This bug appears to have been introduced in commit 08fc50d149
which was applying the patch from http://qt.gitorious.org/qt/qt/merge_requests/706 but missed two lines.
This should fix issue http://code.google.com/p/phantomjs/issues/detail?id=663 .
2013-01-25 00:12:06 -08:00
bongole
0734811514
Add rendering to stdout and stderr.
...
This feature renders PDF, GIF and other format supported by Qt to
stdout or stderr.
*NOTE*
"/dev/stdout" and "/dev/stderr" are converted to System::stdout and
System::stderr on Windows.
Issue: https://code.google.com/p/phantomjs/issues/detail?id=973
2013-01-21 21:44:18 -08:00
Vitaliy Slobodin
6d81933941
Pass the resource URL to the resourceError handler.
...
http://code.google.com/p/phantomjs/issues/detail?id=997
2013-01-21 21:42:10 -08:00
Ivan De Marino
4dec091ac2
FIX: Check file exist when attempting upload.
...
Both "page.uploadFile()" and "onFilePicker = function() {}" check file exists before accepting them.
If file don't exists, they are "ignored".
Fixes issue #941 : https://code.google.com/p/phantomjs/issues/detail?id=941
2013-01-17 23:45:34 +00:00
Vitaliy Slobodin
a7a3928af9
Fix compilation on Windows.
...
We need to include QtCore/qt_windows.h on Windows since Q_PID mapped to
_PROCESS_INFORMATION, but _PROCESS_INFORMATION not defined.
Issue:
http://code.google.com/p/phantomjs/issues/detail?id=219
2013-01-16 08:00:52 -08:00
James M. Greene
1a487d2bbf
Added myself to the copyright list
2013-01-16 08:00:51 -08:00
James M. Greene
360dc3a30c
Corrected default value for disk-cache help
...
Fixes http://code.google.com/p/phantomjs/issues/detail?id=908
2013-01-16 08:00:51 -08:00
Ariya Hidayat
d58eae54d7
Ensure we describe onNavigationRequested behavior properly.
...
http://code.google.com/p/phantomjs/issues/detail?id=562
2013-01-09 20:26:55 -08:00
Oleg Pudeyev
26e51f4b8a
-ldl is needed only on Linux, not on all Unices.
...
In particular on FreeBSD there is no -ldl as the respective
functionality is in -lc.
http://code.google.com/p/phantomjs/issues/detail?id=597
2013-01-09 00:07:36 -08:00