thoughtbot / capybara-webkit

A Capybara driver for headless WebKit to test JavaScript web apps
https://thoughtbot.com/open-source
MIT License
1.97k stars 428 forks source link

Qt 4 does not support ECMA5-compatible Function.prototype.apply #1009

Closed markwpiper closed 7 years ago

markwpiper commented 7 years ago

When using Javascript against Qt 4.x Function.prototype.apply does not work correctly with array-like arguments (tested with Qt: 4.8.7 / WebKit: 534.34 / QtWebKit: 2.2.4)

This can result in seeing the JS error message: "TypeError: '[object Object]' is not a valid argument for 'Function.prototype.apply'"

This is fixed in Qt 5.x.

While this is not a capybara-webkit bug, I wanted to document the issue here in case other people see the same issue against Qt 4.x since 4.x is currently still the default Qt installation on Mac homebrew.

This is the same issue described in https://bugs.webkit.org/show_bug.cgi?id=109307

markwpiper commented 7 years ago

Closing since this is fixed in Qt 5.x