New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 708135 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner:
Closed: May 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Launch-OWP
Launch-Accessibility: NA
Launch-Exp-Leadership: ----
Launch-Leadership: ----
Launch-Legal: NA
Launch-M-Approved: ----
Launch-M-Target: ----
Launch-Privacy: NA
Launch-Security: NA
Launch-Test: ----
Launch-UI: NA
Rollout-Type: ----



Sign in to add a comment

consider throwing when trying to window.open an invalid URL

Project Member Reported by jochen@chromium.org, Apr 4 2017

Issue description

Right now we just log a console message and return null. It would be more consistent with other URL parsing APIs to throw.

https://github.com/whatwg/html/issues/2490
 
Labels: -Type-Bug Type-Launch-OWP
Labels: M-60 Launch-Accessibility-NA Launch-Legal-NA Launch-Privacy-NA Launch-Security-NA Launch-UI-NA
Project Member

Comment 4 by bugdroid1@chromium.org, May 5 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/4451675d1f2349898d0a84cd25035296db70c6ea

commit 4451675d1f2349898d0a84cd25035296db70c6ea
Author: jochen <jochen@chromium.org>
Date: Fri May 05 12:20:27 2017

Throw in window.open() when an invalid URL is being passed

Intent to ship: https://groups.google.com/a/chromium.org/forum/#!msg/blink-dev/lQ0Q2WOw8jc/NW2B83TgAgAJ

BUG= 708135 
R=foolip@chromium.org

Review-Url: https://codereview.chromium.org/2855263004
Cr-Commit-Position: refs/heads/master@{#469626}

[add] https://crrev.com/4451675d1f2349898d0a84cd25035296db70c6ea/third_party/WebKit/LayoutTests/fast/dom/Window/window-open-invalid-url.html
[modify] https://crrev.com/4451675d1f2349898d0a84cd25035296db70c6ea/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp
[modify] https://crrev.com/4451675d1f2349898d0a84cd25035296db70c6ea/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
[modify] https://crrev.com/4451675d1f2349898d0a84cd25035296db70c6ea/third_party/WebKit/Source/core/frame/LocalDOMWindow.h
[modify] https://crrev.com/4451675d1f2349898d0a84cd25035296db70c6ea/third_party/WebKit/Source/core/frame/Window.idl
[modify] https://crrev.com/4451675d1f2349898d0a84cd25035296db70c6ea/third_party/WebKit/Source/core/page/CreateWindow.cpp
[modify] https://crrev.com/4451675d1f2349898d0a84cd25035296db70c6ea/third_party/WebKit/Source/core/page/CreateWindow.h
[modify] https://crrev.com/4451675d1f2349898d0a84cd25035296db70c6ea/third_party/WebKit/Source/web/tests/WebFrameTest.cpp

Status: Fixed (was: Assigned)

Sign in to add a comment