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

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

Issue 1336633002: Revert "Removal of getUserMedia() on insecure origins" (Closed) Base URL: svn://svn.chromium.org/blink/branches/chromium/2490
Patch Set: Created 5 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 | 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 869 matching lines...) Expand 10 before | Expand all | Expand 10 after
880 case DeviceMotionInsecureOrigin: 880 case DeviceMotionInsecureOrigin:
881 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."; 881 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 882
883 case DeviceOrientationInsecureOrigin: 883 case DeviceOrientationInsecureOrigin:
884 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."; 884 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 885
886 case GeolocationInsecureOrigin: 886 case GeolocationInsecureOrigin:
887 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."; 887 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 888
889 case GetUserMediaInsecureOrigin: 889 case GetUserMediaInsecureOrigin:
890 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."; 890 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 891
892 case FullscreenInsecureOrigin: 892 case FullscreenInsecureOrigin:
893 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." ; 893 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 894
895 case EncryptedMediaInsecureOrigin: 895 case EncryptedMediaInsecureOrigin:
896 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."; 896 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 897
898 case DocumentGetCSSCanvasContext: 898 case DocumentGetCSSCanvasContext:
899 return "The -webkit-canvas CSS feature is deprecated. Please use a posit ioned <canvas> element instead."; 899 return "The -webkit-canvas CSS feature is deprecated. Please use a posit ioned <canvas> element instead.";
900 900
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
1011 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 1011 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
1012 { 1012 {
1013 // FIXME: We may want to handle stylesheets that have multiple owners 1013 // FIXME: We may want to handle stylesheets that have multiple owners
1014 // http://crbug.com/242125 1014 // http://crbug.com/242125
1015 if (sheetContents && sheetContents->hasSingleOwnerNode()) 1015 if (sheetContents && sheetContents->hasSingleOwnerNode())
1016 return getFrom(sheetContents->singleOwnerDocument()); 1016 return getFrom(sheetContents->singleOwnerDocument());
1017 return 0; 1017 return 0;
1018 } 1018 }
1019 1019
1020 } // namespace blink 1020 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698