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

Side by Side Diff: third_party/WebKit/Source/core/frame/Deprecation.cpp

Issue 2301323003: Add deprecation warning for script fetches with invalid types (Closed)
Patch Set: Created 4 years, 3 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/frame/Deprecation.h" 5 #include "core/frame/Deprecation.h"
6 6
7 #include "core/dom/Document.h" 7 #include "core/dom/Document.h"
8 #include "core/dom/ExecutionContext.h" 8 #include "core/dom/ExecutionContext.h"
9 #include "core/frame/FrameConsole.h" 9 #include "core/frame/FrameConsole.h"
10 #include "core/frame/FrameHost.h" 10 #include "core/frame/FrameHost.h"
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 374
375 case UseCounter::V8SVGSVGElement_CurrentView_AttributeGetter: 375 case UseCounter::V8SVGSVGElement_CurrentView_AttributeGetter:
376 return willBeRemoved("SVGSVGElement.currentView", 56, "4511711998509056" ); 376 return willBeRemoved("SVGSVGElement.currentView", 56, "4511711998509056" );
377 377
378 case UseCounter::V8SVGSVGElement_Viewport_AttributeGetter: 378 case UseCounter::V8SVGSVGElement_Viewport_AttributeGetter:
379 return willBeRemoved("SVGSVGElement.viewport", 55, "5686865248124928"); 379 return willBeRemoved("SVGSVGElement.viewport", 55, "5686865248124928");
380 380
381 case UseCounter::NavigatorPointerEnabled: 381 case UseCounter::NavigatorPointerEnabled:
382 return "Navigator.pointerEnabled is a non-standard API added for experim ents only. It will be removed in near future."; 382 return "Navigator.pointerEnabled is a non-standard API added for experim ents only. It will be removed in near future.";
383 383
384 case UseCounter::ScriptInvalidTypeOrLanguage:
385 return String::format("Fetching scripts with an invalid type attribute i s deprecated and will be removed in %s. See https://html.spec.whatwg.org/#javasc ript-mime-type for a list of valid types.", milestoneString(56));
386
384 // Features that aren't deprecated don't have a deprecation message. 387 // Features that aren't deprecated don't have a deprecation message.
385 default: 388 default:
386 return String(); 389 return String();
387 } 390 }
388 } 391 }
389 392
390 } // namespace blink 393 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698