[Webkit-unassigned] [Bug 209900] New: [WPE][GTK] Public API should not allow trying to register a special URI scheme

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 2 02:42:06 PDT 2020


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

            Bug ID: 209900
           Summary: [WPE][GTK] Public API should not allow trying to
                    register a special URI scheme
           Product: WebKit
           Version: WebKit Local Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit API
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: aperez at igalia.com

Calling webkit_web_context_register_uri_scheme() with a “special”
URI scheme name (like “file” or “http”) which is not supposed to
be overriden should do a check at the API entry, instead of trying
to pass that down to WebKit unchecked and cause a failed assertion:

ASSERTION FAILED: !WTF::URLParser::isSpecialScheme(canonicalizedScheme.value())

Backtrace:

#0  __GI_raise (sig=sig at entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x0000007fafb8fb54 in __GI_abort () at abort.c:79
#2  0x0000007fb0d4a4c0 in CRASH_WITH_INFO(...) () at /home/buildroot/buildroot/rpi3/output/build/wpewebkit-2.28.0/DerivedSources/ForwardingHeaders/wtf/Assertions.h:660
#3  WebKit::WebPageProxy::setURLSchemeHandlerForScheme (this=this at entry=0x7fa37f6000, handler=..., scheme=...)
    at /home/buildroot/buildroot/rpi3/output/build/wpewebkit-2.28.0/Source/WebKit/UIProcess/WebPageProxy.cpp:9114
#4  0x0000007fb0e5f7dc in webkitWebContextCreatePageForWebView (context=0x287691e0, webView=<optimized out>, webView at entry=0x287ac100, userContentManager=<optimized out>, relatedView=<optimized out>)
    at /home/buildroot/buildroot/rpi3/output/build/wpewebkit-2.28.0/Source/WebKit/UIProcess/API/glib/WebKitWebContext.cpp:1828
#5 ...

-- 
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/20200402/03a88939/attachment.htm>


More information about the webkit-unassigned mailing list