Changeset 210070 in webkit


Ignore:
Timestamp:
Dec 21, 2016, 11:35:52 AM (9 years ago)
Author:
dbates@webkit.org
Message:

WebKitTestRunner: Add comment to TestRunner::setCanOpenWindows()
https://bugs.webkit.org/show_bug.cgi?id=166356

Tools:

Add comment in TestRunner::setCanOpenWindows() to elaborate further on its purpose
as a means to allow a test to explicit allow an embedding client to open a new windows
such that the default behavior is for the embedding client to forbid such an action.
The test plugins/get-url-with-blank-target.html assumes this default behavior though
it is currently skipped on WebKit2 because questions were raised in the patch for
<https://bugs.webkit.org/show_bug.cgi?id=43389> about its correctness and usefulness.
We will need to implement TestRunner::setCanOpenWindows() should we decide to unskip
this test.

  • WebKitTestRunner/InjectedBundle/TestRunner.cpp:

(WTR::TestRunner::setCanOpenWindows):

LayoutTests:

Add a remark that the test plugins/get-url-with-blank-target.html depends on
the assumption that WebKitTestRunner forbids opening windows by default.

  • platform/wk2/TestExpectations:
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r210062 r210070  
     12016-12-21  Daniel Bates  <dabates@apple.com>
     2
     3        WebKitTestRunner: Add comment to TestRunner::setCanOpenWindows()
     4        https://bugs.webkit.org/show_bug.cgi?id=166356
     5
     6        Add a remark that the test plugins/get-url-with-blank-target.html depends on
     7        the assumption that WebKitTestRunner forbids opening windows by default.
     8
     9        * platform/wk2/TestExpectations:
     10
    1112016-12-21  Joseph Pecoraro  <pecoraro@apple.com>
    212
  • trunk/LayoutTests/platform/wk2/TestExpectations

    r209821 r210070  
    316316
    317317# This test checks that NPN_GetURL with a blank target will return an error if the window isn't opened. This behavior doesn't
    318 # match Firefox or Chrome. We should either fix the test, or get rid of it.
     318# match Firefox or Chrome. We should either fix the test, or get rid of it. This test also depends on implementing
     319# testRunner::setCanOpenWindows() such that opening windows are forbidden by default.
    319320plugins/get-url-with-blank-target.html
    320321
  • trunk/Tools/ChangeLog

    r210050 r210070  
     12016-12-21  Daniel Bates  <dabates@apple.com>
     2
     3        WebKitTestRunner: Add comment to TestRunner::setCanOpenWindows()
     4        https://bugs.webkit.org/show_bug.cgi?id=166356
     5
     6        Add comment in TestRunner::setCanOpenWindows() to elaborate further on its purpose
     7        as a means to allow a test to explicit allow an embedding client to open a new windows
     8        such that the default behavior is for the embedding client to forbid such an action.
     9        The test plugins/get-url-with-blank-target.html assumes this default behavior though
     10        it is currently skipped on WebKit2 because questions were raised in the patch for
     11        <https://bugs.webkit.org/show_bug.cgi?id=43389> about its correctness and usefulness.
     12        We will need to implement TestRunner::setCanOpenWindows() should we decide to unskip
     13        this test.
     14
     15        * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
     16        (WTR::TestRunner::setCanOpenWindows):
     17
    1182016-12-20  Simon Fraser  <simon.fraser@apple.com>
    219
  • trunk/Tools/WebKitTestRunner/InjectedBundle/TestRunner.cpp

    r210016 r210070  
    330330void TestRunner::setCanOpenWindows(bool)
    331331{
    332     // It's not clear if or why any tests require opening windows be forbidden.
    333     // For now, just ignore this setting, and if we find later it's needed we can add it.
     332    // The test plugins/get-url-with-blank-target.html requires that the embedding client forbid
     333    // opening windows (by omitting a call to this function) so as to test that NPN_GetURL()
     334    // with a blank target will return an error.
     335    //
     336    // It is not clear if we should implement this functionality or remove it and plugins/get-url-with-blank-target.html
     337    // per the remark in <https://trac.webkit.org/changeset/64504/trunk/LayoutTests/platform/mac-wk2/Skipped>.
     338    // For now, just ignore this setting.
    334339}
    335340
Note: See TracChangeset for help on using the changeset viewer.