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

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

Issue 1530403002: Removal of geolocation APIs on insecure origins (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Rebase on ToT Created 4 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
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 881 matching lines...) Expand 10 before | Expand all | Expand 10 after
892 case DeviceMotionInsecureOrigin: 892 case DeviceMotionInsecureOrigin:
893 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."; 893 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.";
894 894
895 case DeviceOrientationInsecureOrigin: 895 case DeviceOrientationInsecureOrigin:
896 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."; 896 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.";
897 897
898 case DeviceOrientationAbsoluteInsecureOrigin: 898 case DeviceOrientationAbsoluteInsecureOrigin:
899 return "The deviceorientationabsolute event is deprecated on insecure or igins, and support will be removed in the future. You should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz fo r more details."; 899 return "The deviceorientationabsolute event is deprecated on insecure or igins, and support will be removed in the future. You should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz fo r more details.";
900 900
901 case GeolocationInsecureOrigin: 901 case GeolocationInsecureOrigin:
902 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."; 902 // TODO(jww): This message should be made less ambigous after WebView
903 // is fixed so geolocation can be removed there. After that, this
904 // should be updated to read similarly to GetUserMediaInsecureOrigin's
905 // message.
906 return "getCurrentPosition() and watchPosition() are deprecated on insec ure 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." ;
903 907
904 case GetUserMediaInsecureOrigin: 908 case GetUserMediaInsecureOrigin:
905 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."; 909 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.";
906 910
907 case EncryptedMediaInsecureOrigin: 911 case EncryptedMediaInsecureOrigin:
908 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."; 912 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.";
909 913
910 case ElementCreateShadowRootMultiple: 914 case ElementCreateShadowRootMultiple:
911 return "Calling Element.createShadowRoot() for an element which already hosts a shadow root is deprecated. See https://www.chromestatus.com/features/466 8884095336448 for more details."; 915 return "Calling Element.createShadowRoot() for an element which already hosts a shadow root is deprecated. See https://www.chromestatus.com/features/466 8884095336448 for more details.";
912 916
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
1011 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 1015 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
1012 { 1016 {
1013 // FIXME: We may want to handle stylesheets that have multiple owners 1017 // FIXME: We may want to handle stylesheets that have multiple owners
1014 // https://crbug.com/242125 1018 // https://crbug.com/242125
1015 if (sheetContents && sheetContents->hasSingleOwnerNode()) 1019 if (sheetContents && sheetContents->hasSingleOwnerNode())
1016 return getFrom(sheetContents->singleOwnerDocument()); 1020 return getFrom(sheetContents->singleOwnerDocument());
1017 return 0; 1021 return 0;
1018 } 1022 }
1019 1023
1020 } // namespace blink 1024 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/Settings.in ('k') | third_party/WebKit/Source/modules/geolocation/Geolocation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698