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

Side by Side Diff: Source/core/frame/Window.idl

Issue 142263002: Make Window.alert/confirm/prompt default values the empty string (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: sync test expectation Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « LayoutTests/fast/dom/Window/alert-undefined-expected.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2011 Google Inc. All rights reserved. 3 * Copyright (C) 2011 Google Inc. All rights reserved.
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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 void stop(); 58 void stop();
59 59
60 [Custom] Window open(DOMString url, 60 [Custom] Window open(DOMString url,
61 DOMString name, 61 DOMString name,
62 optional DOMString options); 62 optional DOMString options);
63 63
64 [Custom] any showModalDialog(DOMString url, 64 [Custom] any showModalDialog(DOMString url,
65 optional any dialogArgs, 65 optional any dialogArgs,
66 optional DOMString featureArgs); 66 optional DOMString featureArgs);
67 67
68 void alert([Default=Undefined] optional DOMString message); 68 void alert([Default=NullString] optional DOMString message);
69 boolean confirm([Default=Undefined] optional DOMString message); 69 boolean confirm([Default=NullString] optional DOMString message);
70 [TreatReturnedNullStringAs=Null] DOMString prompt([Default=Undefined] option al DOMString message, 70 [TreatReturnedNullStringAs=Null] DOMString prompt([Default=NullString] optio nal DOMString message,
71 [TreatNullAs=NullString, TreatUn definedAs=NullString,Default=Undefined] optional DOMString defaultValue); 71 [Default=NullString] optio nal DOMString defaultValue);
72 72
73 boolean find([Default=Undefined] optional DOMString string, 73 boolean find([Default=Undefined] optional DOMString string,
74 [Default=Undefined] optional boolean caseSensitive, 74 [Default=Undefined] optional boolean caseSensitive,
75 [Default=Undefined] optional boolean backwards, 75 [Default=Undefined] optional boolean backwards,
76 [Default=Undefined] optional boolean wrap, 76 [Default=Undefined] optional boolean wrap,
77 [Default=Undefined] optional boolean wholeWord, 77 [Default=Undefined] optional boolean wholeWord,
78 [Default=Undefined] optional boolean searchInFrames, 78 [Default=Undefined] optional boolean searchInFrames,
79 [Default=Undefined] optional boolean showDialog); 79 [Default=Undefined] optional boolean showDialog);
80 80
81 [Replaceable] readonly attribute boolean offscreenBuffering; 81 [Replaceable] readonly attribute boolean offscreenBuffering;
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 [ImplementedAs=anonymousIndexedGetter, NotEnumerable] getter Window(unsigned long index); 235 [ImplementedAs=anonymousIndexedGetter, NotEnumerable] getter Window(unsigned long index);
236 [Custom, NotEnumerable] getter Window (DOMString name); 236 [Custom, NotEnumerable] getter Window (DOMString name);
237 }; 237 };
238 238
239 Window implements GlobalEventHandlers; 239 Window implements GlobalEventHandlers;
240 Window implements ImageBitmapFactories; 240 Window implements ImageBitmapFactories;
241 Window implements WindowBase64; 241 Window implements WindowBase64;
242 Window implements WindowEventHandlers; 242 Window implements WindowEventHandlers;
243 Window implements WindowTimers; 243 Window implements WindowTimers;
244 244
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/Window/alert-undefined-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698