Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 870 case DeviceMotionInsecureOrigin: | 870 case DeviceMotionInsecureOrigin: |
| 871 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."; | 871 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."; |
| 872 | 872 |
| 873 case DeviceOrientationInsecureOrigin: | 873 case DeviceOrientationInsecureOrigin: |
| 874 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."; | 874 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."; |
| 875 | 875 |
| 876 case DeviceOrientationAbsoluteInsecureOrigin: | 876 case DeviceOrientationAbsoluteInsecureOrigin: |
| 877 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."; | 877 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."; |
| 878 | 878 |
| 879 case GeolocationInsecureOrigin: | 879 case GeolocationInsecureOrigin: |
| 880 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."; | 880 return "getCurrentPosition() and watchPosition() no longer work 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." ; |
|
Torne
2016/01/05 11:21:23
I'm not clear on how the warnings work here, so on
jww
2016/01/06 02:40:59
Indeed, you are correct. How about I change the wo
| |
| 881 | 881 |
| 882 case GetUserMediaInsecureOrigin: | 882 case GetUserMediaInsecureOrigin: |
| 883 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."; | 883 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."; |
| 884 | 884 |
| 885 case EncryptedMediaInsecureOrigin: | 885 case EncryptedMediaInsecureOrigin: |
| 886 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."; | 886 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."; |
| 887 | 887 |
| 888 case ElementCreateShadowRootMultiple: | 888 case ElementCreateShadowRootMultiple: |
| 889 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."; | 889 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."; |
| 890 | 890 |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 980 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 980 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
| 981 { | 981 { |
| 982 // FIXME: We may want to handle stylesheets that have multiple owners | 982 // FIXME: We may want to handle stylesheets that have multiple owners |
| 983 // https://crbug.com/242125 | 983 // https://crbug.com/242125 |
| 984 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 984 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
| 985 return getFrom(sheetContents->singleOwnerDocument()); | 985 return getFrom(sheetContents->singleOwnerDocument()); |
| 986 return 0; | 986 return 0; |
| 987 } | 987 } |
| 988 | 988 |
| 989 } // namespace blink | 989 } // namespace blink |
| OLD | NEW |