Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(244)

Side by Side Diff: third_party/WebKit/Source/core/frame/LocalDOMWindow.h

Issue 2855263004: Throw in window.open() when an invalid URL is being passed (Closed)
Patch Set: updates Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2009, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 class CSSRuleList; 47 class CSSRuleList;
48 class CSSStyleDeclaration; 48 class CSSStyleDeclaration;
49 class CustomElementRegistry; 49 class CustomElementRegistry;
50 class Document; 50 class Document;
51 class DocumentInit; 51 class DocumentInit;
52 class DOMSelection; 52 class DOMSelection;
53 class DOMVisualViewport; 53 class DOMVisualViewport;
54 class DOMWindowEventQueue; 54 class DOMWindowEventQueue;
55 class Element; 55 class Element;
56 class EventQueue; 56 class EventQueue;
57 class ExceptionState;
57 class External; 58 class External;
58 class FrameConsole; 59 class FrameConsole;
59 class FrameRequestCallback; 60 class FrameRequestCallback;
60 class History; 61 class History;
61 class IdleRequestCallback; 62 class IdleRequestCallback;
62 class IdleRequestOptions; 63 class IdleRequestOptions;
63 class MediaQueryList; 64 class MediaQueryList;
64 class MessageEvent; 65 class MessageEvent;
65 class Navigator; 66 class Navigator;
66 class PostMessageTimer; 67 class PostMessageTimer;
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 266
266 bool AllowPopUp(); // Call on first window, not target window. 267 bool AllowPopUp(); // Call on first window, not target window.
267 static bool AllowPopUp(LocalFrame& first_frame); 268 static bool AllowPopUp(LocalFrame& first_frame);
268 269
269 Element* frameElement() const; 270 Element* frameElement() const;
270 271
271 DOMWindow* open(const String& url_string, 272 DOMWindow* open(const String& url_string,
272 const AtomicString& frame_name, 273 const AtomicString& frame_name,
273 const String& window_features_string, 274 const String& window_features_string,
274 LocalDOMWindow* calling_window, 275 LocalDOMWindow* calling_window,
275 LocalDOMWindow* entered_window); 276 LocalDOMWindow* entered_window,
277 ExceptionState&);
276 278
277 FrameConsole* GetFrameConsole() const; 279 FrameConsole* GetFrameConsole() const;
278 280
279 void PrintErrorMessage(const String&) const; 281 void PrintErrorMessage(const String&) const;
280 282
281 void PostMessageTimerFired(PostMessageTimer*); 283 void PostMessageTimerFired(PostMessageTimer*);
282 void RemovePostMessageTimer(PostMessageTimer*); 284 void RemovePostMessageTimer(PostMessageTimer*);
283 void DispatchMessageEventWithOriginCheck( 285 void DispatchMessageEventWithOriginCheck(
284 SecurityOrigin* intended_target_origin, 286 SecurityOrigin* intended_target_origin,
285 Event*, 287 Event*,
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 return status_; 384 return status_;
383 } 385 }
384 386
385 inline String LocalDOMWindow::defaultStatus() const { 387 inline String LocalDOMWindow::defaultStatus() const {
386 return default_status_; 388 return default_status_;
387 } 389 }
388 390
389 } // namespace blink 391 } // namespace blink
390 392
391 #endif // LocalDOMWindow_h 393 #endif // LocalDOMWindow_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698