Changeset 255590 in webkit


Ignore:
Timestamp:
Feb 3, 2020 1:54:54 PM (4 years ago)
Author:
Lauro Moura
Message:

[WebKitTestRunner] setOpenPanelFiles support in non-local tests
https://bugs.webkit.org/show_bug.cgi?id=206517

Reviewed by Carlos Alberto Lopez Perez.

Tools:

  • WebKitTestRunner/InjectedBundle/TestRunner.cpp:

(WTR::TestRunner::setOpenPanelFiles): Use file:// if the passed path
starts with a leading slash instead of using the test URL, which could
cause input forms with invalid file data.

LayoutTests:

  • platform/gtk/TestExpectations: Update expectations after fix.
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r255589 r255590  
     12020-02-03  Lauro Moura  <lmoura@igalia.com>
     2
     3        [WebKitTestRunner] setOpenPanelFiles support in non-local tests
     4        https://bugs.webkit.org/show_bug.cgi?id=206517
     5
     6        Reviewed by Carlos Alberto Lopez Perez.
     7
     8        * platform/gtk/TestExpectations: Update expectations after fix.
     9
    1102020-02-03  Jacob Uphoff  <jacob_uphoff@apple.com>
    211
  • trunk/LayoutTests/platform/gtk/TestExpectations

    r255421 r255590  
    38333833webkit.org/b/193511 http/tests/images/mp4-partial-load.html [ Failure ]
    38343834
    3835 webkit.org/b/193516 http/tests/misc/form-submit-file-cross-site.html [ Failure ]
    3836 
    38373835webkit.org/b/193627 editing/spelling/spelling-dots-position.html [ ImageOnlyFailure ]
    38383836
     
    40994097webkit.org/b/204675 imported/w3c/web-platform-tests/offscreen-canvas/the-offscreen-canvas/initial.reset.pattern.worker.html [ Failure ]
    41004098
    4101 webkit.org/b/206517 http/tests/misc/form-submit-file-cross-site-redirect.html [ Failure ]
    4102 webkit.org/b/206517 http/wpt/service-workers/file-upload.html [ Failure ]
     4099webkit.org/b/207016 http/tests/misc/form-submit-file-cross-site-redirect.html [ Failure ]
    41034100
    41044101webkit.org/b/206692 fast/canvas/canvas-fillPath-shadow.html [ Failure ]
  • trunk/Tools/ChangeLog

    r255580 r255590  
     12020-02-03  Lauro Moura  <lmoura@igalia.com>
     2
     3        [WebKitTestRunner] setOpenPanelFiles support in non-local tests
     4        https://bugs.webkit.org/show_bug.cgi?id=206517
     5
     6        Reviewed by Carlos Alberto Lopez Perez.
     7
     8        * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
     9        (WTR::TestRunner::setOpenPanelFiles): Use file:// if the passed path
     10        starts with a leading slash instead of using the test URL, which could
     11        cause input forms with invalid file data.
     12
    1132020-02-03  Aakash Jain  <aakash_jain@apple.com>
    214
  • trunk/Tools/WebKitTestRunner/InjectedBundle/TestRunner.cpp

    r254556 r255590  
    25912591        JSStringGetUTF8CString(file.get(), fileBuffer.get(), fileBufferSize);
    25922592
    2593         WKArrayAppendItem(fileURLs.get(), adoptWK(WKURLCreateWithBaseURL(m_testURL.get(), fileBuffer.get())).get());
     2593        auto baseURL = m_testURL.get();
     2594
     2595        if (fileBuffer[0] == '/')
     2596            baseURL = WKURLCreateWithUTF8CString("file://");
     2597
     2598        WKArrayAppendItem(fileURLs.get(), adoptWK(WKURLCreateWithBaseURL(baseURL, fileBuffer.get())).get());
     2599
    25942600    }
    25952601
Note: See TracChangeset for help on using the changeset viewer.