Bug 128569 - Remove a couple of deprecatedCharacters() from WebKit2
Summary: Remove a couple of deprecatedCharacters() from WebKit2
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Anders Carlsson
URL:
Keywords:
Depends on: 128580 128603
Blocks:
  Show dependency treegraph
 
Reported: 2014-02-10 17:58 PST by Anders Carlsson
Modified: 2014-12-03 07:53 PST (History)
4 users (show)

See Also:


Attachments
Patch (8.31 KB, patch)
2014-02-10 17:59 PST, Anders Carlsson
kling: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Anders Carlsson 2014-02-10 17:58:35 PST
Remove a couple of deprecatedCharacters() from WebKit2
Comment 1 Anders Carlsson 2014-02-10 17:59:07 PST
Created attachment 223780 [details]
Patch
Comment 2 Anders Carlsson 2014-02-10 18:07:40 PST
Committed r163848: <http://trac.webkit.org/changeset/163848>
Comment 3 Benjamin Poulain 2014-02-10 21:00:18 PST
Looks like you broke the iOS build again :(
Comment 4 Benjamin Poulain 2014-02-10 21:05:11 PST
Fixed in http://trac.webkit.org/changeset/163856
Comment 5 WebKit Commit Bot 2014-02-10 22:09:18 PST
Re-opened since this is blocked by bug 128580
Comment 6 Alexey Proskuryakov 2014-02-10 22:09:55 PST
This change caused a lot of crashes on tests, http://build.webkit.org/results/Apple%20Mavericks%20Release%20WK2%20(Tests)/r163858%20(3106)/results.html

In debug builds, it asserts like this:

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   com.apple.JavaScriptCore      	0x0000000109d1071a WTFCrash + 42 (Assertions.cpp:333)
1   com.apple.JavaScriptCore      	0x0000000109d68ddd WTF::String::fromUTF8(unsigned char const*, unsigned long) + 61 (WTFString.cpp:835)
2   com.apple.JavaScriptCore      	0x0000000109d6911f WTF::String::fromUTF8WithLatin1Fallback(unsigned char const*, unsigned long) + 47 (WTFString.cpp:871)
3   WebKitTestRunnerInjectedBundle	0x000000011385c274 WTF::String::fromUTF8WithLatin1Fallback(char const*, unsigned long) + 36 (WTFString.h:429)
4   WebKitTestRunnerInjectedBundle	0x000000011385c088 WTR::toWTFString(OpaqueWKString const*) + 216 (StringFunctions.h:91)
5   WebKitTestRunnerInjectedBundle	0x000000011385940f WTR::toWTFString(WebKit::WKRetainPtr<OpaqueWKString const*> const&) + 47 (StringFunctions.h:96)
6   WebKitTestRunnerInjectedBundle	0x000000011387e185 WTR::dumpFrameText(OpaqueWKBundleFrame const*, WTF::StringBuilder&) + 85 (InjectedBundlePage.cpp:781)
7   WebKitTestRunnerInjectedBundle	0x000000011387e6e9 WTR::InjectedBundlePage::dump() + 713 (InjectedBundlePage.cpp:853)
8   WebKitTestRunnerInjectedBundle	0x000000011387de27 WTR::InjectedBundlePage::frameDidChangeLocation(OpaqueWKBundleFrame const*, bool) + 199 (InjectedBundlePage.cpp:1887)
9   WebKitTestRunnerInjectedBundle	0x000000011387c8a6 WTR::InjectedBundlePage::didFinishLoadForFrame(OpaqueWKBundleFrame const*) + 118 (InjectedBundlePage.cpp:894)
10  WebKitTestRunnerInjectedBundle	0x000000011387b648 WTR::InjectedBundlePage::didFinishLoadForFrame(OpaqueWKBundlePage const*, OpaqueWKBundleFrame const*, void const**, void const*) + 40 (InjectedBundlePage.cpp:550)
11  com.apple.WebKit2             	0x000000010777f7c6 WebKit::InjectedBundlePageLoaderClient::didFinishLoadForFrame(WebKit::WebPage*, WebKit::WebFrame*, WTF::RefPtr<API::Object>&) + 118 (InjectedBundlePageLoaderClient.cpp:141)
Comment 7 Benjamin Poulain 2014-02-10 23:24:37 PST
Is someone fixing? Should we revert?
The bots are stuck since everything crashes.
Comment 8 Benjamin Poulain 2014-02-10 23:26:49 PST
(In reply to comment #7)
> Is someone fixing? Should we revert?
> The bots are stuck since everything crashes.

Cool, Alexey took care of it.
Comment 9 Darin Adler 2014-02-11 08:55:35 PST
Comment on attachment 223780 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=223780&action=review

> Source/WebKit2/UIProcess/mac/TextCheckerMac.mm:301
> +    auto textString = stringView.createNSStringWithoutCopying();

Why keep the local variable? I would get rid of it.
Comment 10 Grzegorz Czajkowski 2014-02-13 00:30:03 PST
Feel free to commit EFL bits (bug 128603) after re-land.
Comment 11 Csaba Osztrogonác 2014-12-03 07:53:13 PST
There is no deprecatedCharacters in WebKit2 now, maybe bug130197
removed the last bits.