Bug 37533 - [Chromium] UniscribeHelper::draw() should not ASSERT that ScriptTextOut always succeeds
Summary: [Chromium] UniscribeHelper::draw() should not ASSERT that ScriptTextOut alway...
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Dumitru Daniliuc
Depends on:
Reported: 2010-04-13 17:10 PDT by Dumitru Daniliuc
Modified: 2010-04-14 14:52 PDT (History)
2 users (show)

See Also:

patch (1.26 KB, patch)
2010-04-13 17:12 PDT, Dumitru Daniliuc
jianli: review+
dumi: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dumitru Daniliuc 2010-04-13 17:10:44 PDT
UniscribeHelper::draw() should not ASSERT that ScriptTextOut() always succeed. It even has logic to deal with this kind of failures.
Comment 1 Dumitru Daniliuc 2010-04-13 17:12:45 PDT
Created attachment 53302 [details]
Comment 2 Brett Wilson (Google) 2010-04-13 17:55:10 PDT
For background, we probably used to have a DCHECK here with is a debug-only assert to help catch errors. However, there are legitimate reasons this function may fail, especially in the Chrome sandbox, which is what the existing recovery code is supposed to do.
Comment 3 Jian Li 2010-04-13 23:49:14 PDT
Comment on attachment 53302 [details]

Comment 4 Dumitru Daniliuc 2010-04-14 12:44:49 PDT
Landed as r57595.
Comment 5 Eric Seidel (no email) 2010-04-14 14:50:02 PDT
has been failing consistently on SnowLeopard since this checkin:
ASSERTION FAILED: m_wrapper || !m_jsFunction
(/Volumes/Data/WebKit-BuildSlave/snowleopard-intel-leaks/build/WebCore/bindings/js/JSEventListener.h:83 JSC::JSObject* WebCore::JSEventListener::jsFunction(WebCore::ScriptExecutionContext*) const)

That's the same ASSERT as bug 36779, except now its failing every time.
Comment 6 Eric Seidel (no email) 2010-04-14 14:52:11 PDT
Nevermind, this test is flakey and has been failing for much longer.