<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>179919</bug_id>
          
          <creation_ts>2017-11-21 06:11:07 -0800</creation_ts>
          <short_desc>ContentExtensionsBackend::actionsForResourceLoad() doesn&apos;t handle unicode urls</short_desc>
          <delta_ts>2017-11-27 12:23:47 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Page Loading</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>172337</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>172337</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Ms2ger (he/him; ⌚ UTC+1/+2)">Ms2ger</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
    
    <cc>beidson</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1373999</commentid>
    <comment_count>0</comment_count>
      <attachid>327405</attachid>
    <who name="Ms2ger (he/him; ⌚ UTC+1/+2)">Ms2ger</who>
    <bug_when>2017-11-21 06:11:07 -0800</bug_when>
    <thetext>Created attachment 327405
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&lt;Vector&lt;Action&gt;, Vector&lt;String&gt; &gt; WebCore::ContentExtensions::ContentExtensionsBackend::actionsForResourceLoad(const WebCore::ResourceLoadInfo &amp;) const
1   0x111626990 WTFCrash
2   0x11b2ff492 WebCore::ContentExtensions::ContentExtensionsBackend::actionsForResourceLoad(WebCore::ResourceLoadInfo const&amp;) const
3   0x11bfa3bff WebCore::UserContentProvider::actionsForResourceLoad(WebCore::ResourceLoadInfo const&amp;, WebCore::DocumentLoader&amp;)
4   0x11be9453a WebCore::DOMWindow::open(WebCore::DOMWindow&amp;, WebCore::DOMWindow&amp;, WTF::String const&amp;, WTF::AtomicString const&amp;, WTF::String const&amp;)
5   0x11a0dcddd WebCore::jsDOMWindowInstanceFunctionOpenBody(JSC::ExecState*, WebCore::JSDOMWindow*, JSC::ThrowScope&amp;)
6   0x11a09cd07 long long WebCore::IDLOperation&lt;WebCore::JSDOMWindow&gt;::call&lt;&amp;(WebCore::jsDOMWindowInstanceFunctionOpenBody(JSC::ExecState*, WebCore::JSDOMWindow*, JSC::ThrowScope&amp;)), (WebCore::CastedThisErrorBehavior)0&gt;(JSC::ExecState&amp;, char const*)
7   0x11a02520c WebCore::jsDOMWindowInstanceFunctionOpen(JSC::ExecState*)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1375055</commentid>
    <comment_count>1</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2017-11-27 12:23:47 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 172337 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>327405</attachid>
            <date>2017-11-21 06:11:07 -0800</date>
            <delta_ts>2017-11-21 06:11:07 -0800</delta_ts>
            <desc>Test</desc>
            <filename>failure.html</filename>
            <type>text/html</type>
            <size>58</size>
            <attacher name="Ms2ger (he/him; ⌚ UTC+1/+2)">Ms2ger</attacher>
            
              <data encoding="base64">PCFkb2N0eXBlIGh0bWw+CjxzY3JpcHQ+Cm9wZW4oImh0dHBzOi8vXHVmZmZkIikKPC9zY3JpcHQ+
Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>