Ariya Hidayat
c3c65df12d
Merge pull request #273 from ferama/master
...
fix wrong pdf margins using custom header/footer
2012-06-18 06:53:29 -07:00
Marco Ferragina
1a3be3bbce
fix wrong pdf margins using custom header/footer
...
see issue http://code.google.com/p/phantomjs/issues/detail?id=588
2012-06-18 12:25:14 +02:00
Ariya Hidayat
37cfc05a9b
Merge pull request #272 from detro/master
...
Minor adjustments before 1.6
2012-06-17 22:20:12 -07:00
Ivan De Marino
b443b7add8
Changing the "working directory" to "/test" before running tests.
...
This fixes some issues with our tests, where we were erroneously failing.
2012-06-17 19:37:24 -07:00
Ivan De Marino
bd6f1f2ffe
Adding a Q_UNUSED to removing compilation annoyance.
2012-06-17 19:21:44 -07:00
Ivan De Marino
55efadc926
After discussing with @ariya on [Issue 547]( http://code.google.com/p/phantomjs/issues/detail?id=547 ), I reduced the methods to 1: rendereBase64(format).
...
Available formats are the one supported by QImageWriter: http://qt-project.org/doc/qt-4.8/qimagewriter.html#supportedImageFormats .
Formats can be entered in lower or uppercase: it gets normalised internally.
2012-06-17 18:27:36 -07:00
Ariya Hidayat
a272d660a6
Merge pull request #271 from jonleighton/deploy
...
Provide scripts and workflow for building Linux packages for release.
2012-06-17 16:37:28 -07:00
Jon Leighton
1b621e9f50
Provide scripts and workflow for building Linux packages for release.
2012-06-17 23:40:12 +01:00
Ariya Hidayat
804a7f3df4
Fix qscriptengine.h after Qt update to 4.8.2.
...
Our copy of Qt does not build QtScript, only uses the header file for an enum.
As reported by Jon Leighton.
http://code.google.com/p/phantomjs/issues/detail?id=495
2012-06-17 14:48:39 -07:00
Ariya Hidayat
70c09ba620
WebKit: Don't treat warnings as errors.
...
This was added in Qt 4.8.2. Revert it until we solve all compiler
warnings.
http://code.google.com/p/phantomjs/issues/detail?id=495
2012-06-17 09:59:16 -07:00
Ariya Hidayat
593f4a590b
Update Qt to the latest version 4.8.2.
...
http://code.google.com/p/phantomjs/issues/detail?id=495
2012-06-17 08:27:14 -07:00
Ariya Hidayat
ead8066c57
Merge remote-tracking branch 'neraliu/cookiesapi'
...
Conflicts:
src/modules/webpage.js
src/webpage.h
2012-06-17 07:56:25 -07:00
Jon Leighton
c9cf14f221
Don't pass an error object to the onError callback.
...
On reflection, this approach seems like a bad idea and a source of bugs.
I think passing object references between pages seems inherently
problematic, and we are better off just passing data to the onError
handler. If users need the actual object reference, they are able to use
try ... catch within the page.
This change also means that we are no longer breaking backwards
compatibility with the page.onError function signature.
WebCore already has a bunch of plumbing to pass around stacks. This
exists for the inspector/console. However, we need to actually retrieve
the error stack in WebCore::reportException.
To achieve this, I am attaching a stackArray property to the error
object. This is not as clean as I'd like, but seems ok for now. (We
should not document stackArray though.)
https://code.google.com/p/phantomjs/issues/detail?id=166
2012-06-16 14:24:37 -07:00
Jon Leighton
d2290a60a9
Localize variables.
...
This is to avoid adding a onError handler to the page that exists in the
outer scope.
https://code.google.com/p/phantomjs/issues/detail?id=166
2012-06-16 14:24:37 -07:00
Ariya Hidayat
a61d5e5400
Build script: don't fail too early.
...
set -e causes the check for compile jobs environment variable to quit
the script too early. Avoid this by guarding the check properly.
http://code.google.com/p/phantomjs/issues/detail?id=226
2012-06-16 14:21:28 -07:00
Anthony O
744df38071
Fixing a compilation problem on Ubuntu 10.04 64bits
...
Return type for 'window.callPhantom', in case no handler is set, has to be 'null', not '0'
http://code.google.com/p/phantomjs/issues/detail?id=133
2012-06-16 10:55:08 -07:00
Nera Liu
94a1fbecdb
Fix an indentation problem in the file test/webpage-spec.js.
2012-06-16 08:13:05 -07:00
Nera Liu
77052e60a8
Simplify the cookies api as property setter and getter for issue 354.
...
Update the test case for the cookies api.
http://code.google.com/p/phantomjs/issues/detail?id=354
2012-06-16 07:58:11 -07:00
Ivan De Marino
1014efe26f
Adding missing completions on the "WebPage" object
...
http://code.google.com/p/phantomjs/issues/detail?id=573
http://code.google.com/p/phantomjs/issues/detail?id=547
2012-06-15 00:23:51 -07:00
Ivan De Marino
f40b7ab730
Adding property "os" to the "system" module.
...
Contains the properties:
- name
- architecture
- version
http://code.google.com/p/phantomjs/issues/detail?id=585
2012-06-15 00:12:08 -07:00
Ivan De Marino
f386f7d484
Adding the ability to switch between frames.
...
1. Passing JavaScript eval and other related actions to the CurrentFrame, not the MainFrame.
2. Added different methods to navigate between frames
3. With a call to "window.frames[0].focus()", the "currentFrame" changes: commands after that are sent to the new frame under focus.
4. The navigation between frames allows to walk over the "tree of frames" contained in the page.
This commit also adds examples (both in JS and CoffeeScript) and Unit Test.
http://code.google.com/p/phantomjs/issues/detail?id=573
2012-06-15 00:07:53 -07:00
david
40fd210c99
Add navigation event hook to PhantomJS.
...
http://code.google.com/p/phantomjs/issues/detail?id=562
2012-06-14 23:54:17 -07:00
david
c153a2816e
Fix error handler when error is null.
...
http://code.google.com/p/phantomjs/issues/detail?id=589
2012-06-14 23:41:23 -07:00
Eivind Uggedal
38c3f862b3
Do not attempt to compile PhantomJS if the Qt compile failed.
...
http://code.google.com/p/phantomjs/issues/detail?id=226
2012-06-14 23:38:51 -07:00
Jon Leighton
28d507d24f
Allow debug/warning messages to be enabled at runtime.
...
https://code.google.com/p/phantomjs/issues/detail?id=575
2012-06-14 23:34:40 -07:00
Ivan De Marino
51ab11c6d9
Render page as a base64 string.
...
Provided API for the Webpage object:
- renderBase64PNG()
- renderBase64JPG()
- renderBase64BMP()
Addresses [Issue #547 ](http://code.google.com/p/phantomjs/issues/detail?id=547 ).
2012-06-14 23:29:14 -07:00
Ivan De Marino
ebc1855483
Another tweak for "evaluateAsync".
...
Making sure all the parameters are passed on correctly.
http://code.google.com/p/phantomjs/issues/detail?id=593
2012-06-14 23:29:14 -07:00
Ivan De Marino
caf13651b7
Adding "window.phantomCallback()" within the page context.
...
The callback is harmless: if the user registers a "page.onCallback = [Function]",
that will receive any JS type passed via "phantomCallback()".
Also, if the handler for ".onCallback" returns a value, that is passed back as a
return value of "phantomCallback()".
Also, added "page.onConfirm" and "page.onPrompt".
This solves [Issue #133 ](http://code.google.com/p/phantomjs/issues/detail?id=133 ).
2012-06-14 23:29:13 -07:00
Ivan De Marino
945b845d35
Adding a new "evaluateAsync" on the "webpage" object.
...
This is useful in case:
* we don't care about the result of the evaluate
* we don't need to have the result of the evaluate on the spot
* we need the stack of execution to begin WITHIN the page
Also, linting code: everyone should use a linter when writing Javascript. Everyone.
http://code.google.com/p/phantomjs/issues/detail?id=593
2012-06-14 23:29:13 -07:00
Nera Liu
7919387c71
Add WebPage.setCookies and WebPage.cookies apis for the issue 354.
...
Add sanity check for the cookies api in test/webpage-spec.js.
http://code.google.com/p/phantomjs/issues/detail?id=354
2012-06-14 00:43:20 -07:00
Ariya Hidayat
37003332ac
Merge pull request #267 from jonleighton/breakpad
...
Add a few more missing Makefiles.
2012-06-14 00:30:12 -07:00
Jon Leighton
eedf2441b9
Add a few more missing Makefiles.
...
http://code.google.com/p/phantomjs/issues/detail?id=587
2012-06-13 23:23:52 +01:00
Marco Ferragina
834d9f5891
Fix missing Makefiles in breakpad due to global .gitignore.
...
http://code.google.com/p/phantomjs/issues/detail?id=587
2012-06-12 09:40:31 -07:00
Ariya Hidayat
cec3fdd8a0
Merge pull request #264 from jonleighton/multi_file_input
...
Handle multiple file inputs.
2012-06-12 08:42:23 -07:00
Ariya Hidayat
8d366f9328
Merge pull request #262 from jonleighton/stacktraces
...
Error.stack returns a string to match V8/Node.js
2012-06-12 08:41:48 -07:00
Ariya Hidayat
cd65c63af1
Merge pull request #263 from jonleighton/breakpad
...
Compile the breakpad client in directly.
2012-06-12 07:24:34 -07:00
Jon Leighton
bbbd6a22d7
Handle multiple file inputs.
...
https://code.google.com/p/phantomjs/issues/detail?id=256
2012-06-10 23:24:45 +01:00
Jon Leighton
e781f243dc
Compile the breakpad client in directly.
...
This removes the need to build breakpad as a separate step.
PhantomJS developers will still need to cd src/breakpad && ./configure
&& make in order to analyse crash dumps, but it is not longer necessary
in order to build PhantomJS itself.
https://code.google.com/p/phantomjs/issues/detail?id=576
2012-06-10 21:42:43 +01:00
Jon Leighton
f7ecf6ccb9
Error.stack returns a string to match V8/Node.js
...
https://code.google.com/p/phantomjs/issues/detail?id=166
2012-06-10 21:28:46 +01:00
Ariya Hidayat
fb7a5191f9
Merge pull request #261 from b-long/patch-1
...
Switched link for GhostDriver, since GitHub page appears to be missing.
2012-06-09 14:33:21 -07:00
Ariya Hidayat
293865ceeb
Merge remote-tracking branch 'jonleighton/breakpad'
2012-06-08 11:15:32 +02:00
Jon Leighton
1b53adec2b
Tweak the linux deploy script.
...
* Use exec to replace the bootstrap shell script
* Name the bootstrap shell script `phantomjs` so that invocation is no
different
http://code.google.com/p/phantomjs/issues/detail?id=413
2012-06-08 11:10:56 +02:00
Milian Wolff
5c2e330a15
Make QWebPage::zoomFactor accessible to PhantomJS scripts.
...
This adds a new WebPage::zoomFactor property, which can be used to
zoom the page, i.e.:
page.zoomFactor = 1.5; // zoom by 50% in
page.zoomFactor = 0.5; // zoom by 50% out
The rasterize.js example is adapted to take an optional fourth argument
to set the zoom factor. Furthermore, the webpage-spec is extended with
a simple test case for the new property.
ISSUE: 579 (http://code.google.com/p/phantomjs/issues/detail?id=579 )
2012-06-08 11:05:54 +02:00
b.long
ffb57958d2
Switched link for GhostDriver, since GitHub page appears to be missing.
2012-06-07 17:47:22 -03:00
Jon Leighton
8f7ee0ecd8
Integrate Google Breakpad crash reporter. Linux only for now.
2012-06-05 23:08:16 +01:00
Jon Leighton
0fa15e51c9
Import Google Breakpad
2012-06-05 23:01:07 +01:00
Ariya Hidayat
7448af2f69
Merge pull request #254 from jonleighton/static_inspector
...
Fix remote inspector + static build.
2012-06-03 06:10:13 -07:00
Jon Leighton & Tom Stuart
be4686ab04
Fix remote inspector + static build.
...
https://code.google.com/p/phantomjs/issues/detail?id=430
2012-06-03 11:17:12 +02:00
Ariya Hidayat
c8e311d79d
Fix some wrong whitespace.
...
http://code.google.com/p/phantomjs/issues/detail?id=300
2012-06-02 06:42:14 -07:00
leeight
412c3f4246
FIX build issue with glib 2.31.0+.
...
Remove the `union GMutex` declaration.
https://bugs.webkit.org/show_bug.cgi?id=72085
http://code.google.com/p/phantomjs/issues/detail?id=559
2012-06-01 22:29:24 -07:00