⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 249130 in webkit


Ignore:
Timestamp:
Aug 26, 2019, 8:19:06 PM (7 years ago)
Author:
Chris Dumez
Message:

Change default value of window.open()'s url argument
https://bugs.webkit.org/show_bug.cgi?id=200882

Reviewed by Ryosuke Niwa.

LayoutTests/imported/w3c:

Rebaseline WPT test now that it is passing.

  • web-platform-tests/html/browsers/the-window-object/window-open-defaults.window-expected.txt:

Source/WebCore:

Update default URL parameter value for window.open() to be "" instead of "about:blank", as per:

This aligns our behavior with other Web browser engines.

No new tests, rebaselined existing test.

  • page/DOMWindow.idl:
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/imported/w3c/ChangeLog

    r249123 r249130  
     12019-08-26  Chris Dumez  <cdumez@apple.com>
     2
     3        Change default value of window.open()'s url argument
     4        https://bugs.webkit.org/show_bug.cgi?id=200882
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        Rebaseline WPT test now that it is passing.
     9
     10        * web-platform-tests/html/browsers/the-window-object/window-open-defaults.window-expected.txt:
     11
    1122019-08-26  Chris Dumez  <cdumez@apple.com>
    213
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/window-open-defaults.window-expected.txt

    r249123 r249130  
    11
    2 FAIL window.open()'s url parameter default assert_unreached: Reached unreachable code
     2PASS window.open()'s url parameter default
    33
  • trunk/Source/WebCore/ChangeLog

    r249128 r249130  
     12019-08-26  Chris Dumez  <cdumez@apple.com>
     2
     3        Change default value of window.open()'s url argument
     4        https://bugs.webkit.org/show_bug.cgi?id=200882
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        Update default URL parameter value for window.open() to be "" instead of "about:blank", as per:
     9        - https://github.com/whatwg/html/issues/4762
     10
     11        This aligns our behavior with other Web browser engines.
     12
     13        No new tests, rebaselined existing test.
     14
     15        * page/DOMWindow.idl:
     16
    1172019-08-26  Devin Rousso  <drousso@apple.com>
    218
  • trunk/Source/WebCore/page/DOMWindow.idl

    r243669 r249130  
    7878    [Replaceable, DoNotCheckSecurityOnGetter] readonly attribute WindowProxy? parent;
    7979    [CheckSecurityForNode] readonly attribute Element? frameElement;
    80     [CallWith=ActiveWindow&FirstWindow, MayThrowException] WindowProxy? open(optional USVString url = "about:blank", optional DOMString target = "_blank", optional [TreatNullAs=EmptyString] DOMString features = "");
     80    [CallWith=ActiveWindow&FirstWindow, MayThrowException] WindowProxy? open(optional USVString url = "", optional DOMString target = "_blank", optional [TreatNullAs=EmptyString] DOMString features = "");
    8181
    8282    // The user agent.
Note: See TracChangeset for help on using the changeset viewer.