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

Side by Side Diff: Source/core/frame/UseCounter.cpp

Issue 1284193003: Removal of getUserMedia() on insecure origins (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google, Inc. All rights reserved. 2 * Copyright (C) 2012 Google, Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 870 matching lines...) Expand 10 before | Expand all | Expand 10 after
881 case DeviceMotionInsecureOrigin: 881 case DeviceMotionInsecureOrigin:
882 return "The devicemotion event is deprecated on insecure origins, and su pport will be removed in the future. You should consider switching your applicat ion to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more detail s."; 882 return "The devicemotion event is deprecated on insecure origins, and su pport will be removed in the future. You should consider switching your applicat ion to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more detail s.";
883 883
884 case DeviceOrientationInsecureOrigin: 884 case DeviceOrientationInsecureOrigin:
885 return "The deviceorientation event is deprecated on insecure origins, a nd support will be removed in the future. You should consider switching your app lication to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more d etails."; 885 return "The deviceorientation event is deprecated on insecure origins, a nd support will be removed in the future. You should consider switching your app lication to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more d etails.";
886 886
887 case GeolocationInsecureOrigin: 887 case GeolocationInsecureOrigin:
888 return "getCurrentPosition() and watchPosition() are deprecated on insec ure origins, and support will be removed in the future. You should consider swit ching your application to a secure origin, such as HTTPS. See https://goo.gl/rSt TGz for more details."; 888 return "getCurrentPosition() and watchPosition() are deprecated on insec ure origins, and support will be removed in the future. You should consider swit ching your application to a secure origin, such as HTTPS. See https://goo.gl/rSt TGz for more details.";
889 889
890 case GetUserMediaInsecureOrigin: 890 case GetUserMediaInsecureOrigin:
891 return "getUserMedia() is deprecated on insecure origins, and support wi ll be removed in the future. You should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details."; 891 return "getUserMedia() no longer works on insecure origins. To use this feature, you should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details.";
892 892
893 case FullscreenInsecureOrigin: 893 case FullscreenInsecureOrigin:
894 return "requestFullscreen() is deprecated on insecure origins, and suppo rt will be removed in the future. You should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details." ; 894 return "requestFullscreen() is deprecated on insecure origins, and suppo rt will be removed in the future. You should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details." ;
895 895
896 case EncryptedMediaInsecureOrigin: 896 case EncryptedMediaInsecureOrigin:
897 return "requestMediaKeySystemAccess() is deprecated on insecure origins in the specification. Support will be removed in the future. You should consider switching your application to a secure origin, such as HTTPS. See https://goo.g l/rStTGz for more details."; 897 return "requestMediaKeySystemAccess() is deprecated on insecure origins in the specification. Support will be removed in the future. You should consider switching your application to a secure origin, such as HTTPS. See https://goo.g l/rStTGz for more details.";
898 898
899 case DocumentGetCSSCanvasContext: 899 case DocumentGetCSSCanvasContext:
900 return "The -webkit-canvas CSS feature is deprecated. Please use a posit ioned <canvas> element instead."; 900 return "The -webkit-canvas CSS feature is deprecated. Please use a posit ioned <canvas> element instead.";
901 901
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
1000 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 1000 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
1001 { 1001 {
1002 // FIXME: We may want to handle stylesheets that have multiple owners 1002 // FIXME: We may want to handle stylesheets that have multiple owners
1003 // http://crbug.com/242125 1003 // http://crbug.com/242125
1004 if (sheetContents && sheetContents->hasSingleOwnerNode()) 1004 if (sheetContents && sheetContents->hasSingleOwnerNode())
1005 return getFrom(sheetContents->singleOwnerDocument()); 1005 return getFrom(sheetContents->singleOwnerDocument());
1006 return 0; 1006 return 0;
1007 } 1007 }
1008 1008
1009 } // namespace blink 1009 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698