[BlackBerry] crash in CookieDatabaseBackingStore.
https://bugs.webkit.org/show_bug.cgi?id=90270

Reviewed by George Staikos.

There is one case for this crash.
1. A browser crashes and locks cookies' database for a while.
2. Open a new browser when the old one doesn't finish crashing.
3. The new one writes the cookies' database and receives a SQLITE_BUSY error
   in CookieDatabaseBackingStore's invokeOpen. So this database isn't opened.
4. invokeGetCookiesWithLimit returns 0.
5. Crash happens when using a null pointer.

Add function setBusyTimeout(1000) and a guard for cookies' pointer.
setBusyTimeout will call sqlite3_busy_timeout.

When the SQLite database is accessed for reading it is locked for writing
until the reading access is finished. Another process cannot access the database
while it is locked. The timeout time sets a limit while this process tries to access
the locked database. If the database is unlocked within the timeout time it can be
accessed, otherwise an access fails.

No new tests. This crash is hard to reproduce, and it happens only on our platform.

* platform/blackberry/CookieDatabaseBackingStore/CookieDatabaseBackingStore.cpp:
(WebCore::CookieDatabaseBackingStore::getCookiesFromDatabase):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122328 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed gardening. Mark inspector/extensions/extensions-events.html as TIMEOUT on non-debug builds.
https://bugs.webkit.org/show_bug.cgi?id=86439

This test has started timing out on non-debug builds as well, adding comment to existing bug.

* platform/chromium/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122329 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Unreviewed gardening. Skip a failing test after r122327.
https://bugs.webkit.org/show_bug.cgi?id=90979.

Patch by Ádám Kallai <kadam@inf.u-szeged.hu> on 2012-07-11

* platform/qt/Skipped:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122330 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Unreviewed gardening. fast/forms/textarea/textarea-state-restore.html is flaky (timeouts frquently).
https://bugs.webkit.org/show_bug.cgi?id=90980

Marking this test as possible TIMOUT in test expectations.

* platform/chromium/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122331 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: migrate from background images to CSS for statusbar rendering.
https://bugs.webkit.org/show_bug.cgi?id=90902

Reviewed by Vsevolod Vlasov.

Source/WebCore:

This change removes statusbar* images and uses gradients and borders to re-create original inspector look.

* WebCore.gypi:
* inspector/front-end/Images/statusbarBackground.png: Removed.
* inspector/front-end/Images/statusbarBottomBackground.png: Removed.
* inspector/front-end/Images/statusbarButtons.png: Removed.
* inspector/front-end/Images/statusbarMenuButton.png: Removed.
* inspector/front-end/Images/statusbarMenuButtonSelected.png: Removed.
* inspector/front-end/StatusBarButton.js:
* inspector/front-end/WebKit.qrc:
* inspector/front-end/inspector.css:
(body.drawer-visible #main-status-bar):
(body.drawer-visible #main-status-bar::after):
(.status-bar-background):
(.status-bar > div):
(.glyph):
(button.status-bar-item):
(.status-bar button.status-bar-item:active):
(select.status-bar-item):
(select.status-bar-item, select.status-bar-item:hover):
(body.detached .alternate-status-bar-buttons-bar):
(.alternate-status-bar-buttons-bar):
(.alternate-status-bar-buttons-bar .status-bar-item):
(.alternate-status-bar-buttons-bar .status-bar-item.emulate-active):
(#drawer):
(body.drawer-visible #drawer-contents):
(#drawer-status-bar):
* inspector/front-end/inspector.html:
* inspector/front-end/scriptsPanel.css:
(button.status-bar-item.scripts-navigator-show-hide-button):
(button.status-bar-item.scripts-navigator-show-hide-button:active):
(button.status-bar-item.scripts-debugger-show-hide-button):
(button.status-bar-item.scripts-debugger-show-hide-button:active):

Source/WebKit/chromium:

* WebKit.gypi:
* src/js/Images/statusbarBackgroundChromium.png: Removed.
* src/js/Images/statusbarBottomBackgroundChromium.png: Removed.
* src/js/Images/statusbarButtonsChromium.png: Removed.
* src/js/Images/statusbarMenuButtonChromium.png: Removed.
* src/js/Images/statusbarMenuButtonSelectedChromium.png: Removed.
* src/js/devTools.css:
(.status-bar-background):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122332 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Middle clicking a scrollbar causes text to be pasted.
https://bugs.webkit.org/show_bug.cgi?id=78444

Source/WebKit/qt:

Check if the event was already accepted before handling the clipboard.

Patch by Steffen Imhof <steffen.imhof@basyskom.com> on 2012-07-11
Reviewed by Simon Hausmann.

* Api/qwebpage.cpp:
(QWebPagePrivate::mouseReleaseEvent):

LayoutTests:

Updated the scrollbars/scrollbar-middleclick-nopaste.html test to use an
<input> field as target for onpaste events. Using <body> did not work
(at least for Qt), because the onpaste events are not fired, even if
manually middle-clicking into the body. My guess would be that they are
not sent, because the body is non-editable. The changed test should
reflect the common use-case triggering the problem better.

Patch by Steffen Imhof <steffen.imhof@basyskom.com> on 2012-07-11
Reviewed by Simon Hausmann.

* scrollbars/scrollbar-middleclick-nopaste.html:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122333 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] REGRESSION(r122250): It broke USE(3D_GRAPHICS)=1 and ENABLE(WEBGL)=0 builds
https://bugs.webkit.org/show_bug.cgi?id=90943

Patch by Joshua Netterfield <jnetterfield@rim.com> on 2012-07-11
Reviewed by Csaba Osztrogonác.

Uses proper guarding in Extensions3DOpenGLCommon and Extensions3DOpenGLES as per https://bugs.webkit.org/show_bug.cgi?id=90506.

No new tests, becasue there is no new functionality.

* platform/graphics/opengl/Extensions3DOpenGLCommon.cpp: Use proper guarding.
* platform/graphics/opengl/Extensions3DOpenGLES.cpp: Use proper guarding.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122334 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] REGRESSION(r107171): Fix --timeout option of Qt's DRT
https://bugs.webkit.org/show_bug.cgi?id=90966

Reviewed by Ryosuke Niwa.

* DumpRenderTree/qt/main.cpp:
(main): Don't remove the argument, because takeOptionValue() did it before.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122335 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Unreviewed gardening.

* platform/qt-5.0-wk2/Skipped: Skip a new crashing test.
* platform/qt/Skipped: Typo fix.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122336 268f45cc-cd09-0410-ab3c-d52691b4dbfc