[Webkit-unassigned] [Bug 179919] New: ContentExtensionsBackend::actionsForResourceLoad() doesn't handle unicode urls

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Nov 21 06:11:07 PST 2017


https://bugs.webkit.org/show_bug.cgi?id=179919

            Bug ID: 179919
           Summary: ContentExtensionsBackend::actionsForResourceLoad()
                    doesn't handle unicode urls
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Page Loading
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: Ms2ger at igalia.com
                CC: beidson at apple.com
            Blocks: 172337

Created attachment 327405

  --> https://bugs.webkit.org/attachment.cgi?id=327405&action=review

Test

The attached test case triggers an assertion if ENABLE(CONTENT_EXTENSIONS) is true.

ASSERTION FAILED: A decoded URL should only contain ASCII characters. The matching algorithm assumes the input is ASCII.
urlString.containsOnlyASCII()
/Volumes/Data/EWS/WebKit/Source/WebCore/contentextensions/ContentExtensionsBackend.cpp(83) : std::pair<Vector<Action>, Vector<String> > WebCore::ContentExtensions::ContentExtensionsBackend::actionsForResourceLoad(const WebCore::ResourceLoadInfo &) const
1   0x111626990 WTFCrash
2   0x11b2ff492 WebCore::ContentExtensions::ContentExtensionsBackend::actionsForResourceLoad(WebCore::ResourceLoadInfo const&) const
3   0x11bfa3bff WebCore::UserContentProvider::actionsForResourceLoad(WebCore::ResourceLoadInfo const&, WebCore::DocumentLoader&)
4   0x11be9453a WebCore::DOMWindow::open(WebCore::DOMWindow&, WebCore::DOMWindow&, WTF::String const&, WTF::AtomicString const&, WTF::String const&)
5   0x11a0dcddd WebCore::jsDOMWindowInstanceFunctionOpenBody(JSC::ExecState*, WebCore::JSDOMWindow*, JSC::ThrowScope&)
6   0x11a09cd07 long long WebCore::IDLOperation<WebCore::JSDOMWindow>::call<&(WebCore::jsDOMWindowInstanceFunctionOpenBody(JSC::ExecState*, WebCore::JSDOMWindow*, JSC::ThrowScope&)), (WebCore::CastedThisErrorBehavior)0>(JSC::ExecState&, char const*)
7   0x11a02520c WebCore::jsDOMWindowInstanceFunctionOpen(JSC::ExecState*)


Referenced Bugs:

https://bugs.webkit.org/show_bug.cgi?id=172337
[Bug 172337] imported/w3c/web-platform-tests/url/failure.html crashes on debug builds
-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20171121/ffbe540b/attachment.html>


More information about the webkit-unassigned mailing list