RESOLVED FIXED 162982
ENABLE_LEGACY_ENCRYPTED_MEDIA interfaces should have a hard-coded WebKit prefix
https://bugs.webkit.org/show_bug.cgi?id=162982
Summary ENABLE_LEGACY_ENCRYPTED_MEDIA interfaces should have a hard-coded WebKit prefix
Zan Dobersek
Reported 2016-10-05 13:03:11 PDT
ENABLE_LEGACY_ENCRYPTED_MEDIA interfaces should have a hard-coded WebKit prefix
Attachments
Patch (120.13 KB, patch)
2016-10-05 13:18 PDT, Zan Dobersek
no flags
Patch (150.42 KB, patch)
2016-10-06 03:11 PDT, Zan Dobersek
no flags
Archive of layout-test-results from ews104 for mac-yosemite-wk2 (1.33 MB, application/zip)
2016-10-06 04:16 PDT, Build Bot
no flags
Patch (163.84 KB, patch)
2016-10-06 04:49 PDT, Zan Dobersek
no flags
Patch (97.65 KB, patch)
2016-10-07 01:08 PDT, Zan Dobersek
no flags
Zan Dobersek
Comment 1 2016-10-05 13:16:53 PDT
To avoid conflicting interfaces between LEGACY_ENCRYPTED_MEDIA and future ENCRYPTED_MEDIA implementations, we agreed to prefix the LEGACY_ENCRYPTED_MEDIA implementations. The patch would also move these interfaces under Modules/encryptedmedia/legacy/. Remaining items needed for a reviewable patch: - is it fine to prefix the Web-exposed MediaKeyNeededEvent interface, which is currently not prefixed? - Xcode build system updates.
Zan Dobersek
Comment 2 2016-10-05 13:18:48 PDT
WebKit Commit Bot
Comment 3 2016-10-05 13:27:27 PDT
Attachment 290744 [details] did not pass style-queue: ERROR: Source/WebCore/html/WebKitMediaKeyError.h:39: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: Source/WebCore/html/WebKitMediaKeyError.h:40: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: Source/WebCore/html/WebKitMediaKeyError.h:41: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: Source/WebCore/html/WebKitMediaKeyError.h:42: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: Source/WebCore/html/WebKitMediaKeyError.h:43: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: Source/WebCore/html/WebKitMediaKeyError.h:44: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: Source/WebCore/html/WebKitMediaKeyError.h:54: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4] ERROR: Source/WebCore/ChangeLog:8: You should remove the 'No new tests' and either add and list tests, or explain why no new tests were possible. [changelog/nonewtests] [5] ERROR: Source/WebCore/CMakeLists.txt:142: There should be exactly one empty line instead of 0 between "Modules/battery" and "Modules/encryptedmedia/legacy". [list/emptyline] [5] Total errors found: 9 in 28 files If any of these errors are false positives, please file a bug against check-webkit-style.
Zan Dobersek
Comment 4 2016-10-06 03:11:02 PDT
WebKit Commit Bot
Comment 5 2016-10-06 03:15:56 PDT
Attachment 290805 [details] did not pass style-queue: ERROR: Source/WebCore/html/WebKitMediaKeyError.h:39: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: Source/WebCore/html/WebKitMediaKeyError.h:40: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: Source/WebCore/html/WebKitMediaKeyError.h:41: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: Source/WebCore/html/WebKitMediaKeyError.h:42: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: Source/WebCore/html/WebKitMediaKeyError.h:43: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: Source/WebCore/html/WebKitMediaKeyError.h:44: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: Source/WebCore/html/WebKitMediaKeyError.h:54: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4] ERROR: Source/WebCore/ChangeLog:8: You should remove the 'No new tests' and either add and list tests, or explain why no new tests were possible. [changelog/nonewtests] [5] ERROR: Source/WebCore/CMakeLists.txt:142: There should be exactly one empty line instead of 0 between "Modules/battery" and "Modules/encryptedmedia/legacy". [list/emptyline] [5] Total errors found: 9 in 29 files If any of these errors are false positives, please file a bug against check-webkit-style.
Build Bot
Comment 6 2016-10-06 04:16:30 PDT
Comment on attachment 290805 [details] Patch Attachment 290805 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/2230642 New failing tests: js/dom/global-constructors-attributes.html
Build Bot
Comment 7 2016-10-06 04:16:34 PDT
Created attachment 290809 [details] Archive of layout-test-results from ews104 for mac-yosemite-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews104 Port: mac-yosemite-wk2 Platform: Mac OS X 10.10.5
Zan Dobersek
Comment 8 2016-10-06 04:49:40 PDT
WebKit Commit Bot
Comment 9 2016-10-06 05:16:26 PDT
Attachment 290811 [details] did not pass style-queue: ERROR: Source/WebCore/html/WebKitMediaKeyError.h:39: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: Source/WebCore/html/WebKitMediaKeyError.h:40: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: Source/WebCore/html/WebKitMediaKeyError.h:41: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: Source/WebCore/html/WebKitMediaKeyError.h:42: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: Source/WebCore/html/WebKitMediaKeyError.h:43: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: Source/WebCore/html/WebKitMediaKeyError.h:44: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: Source/WebCore/html/WebKitMediaKeyError.h:54: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4] ERROR: Source/WebCore/ChangeLog:8: You should remove the 'No new tests' and either add and list tests, or explain why no new tests were possible. [changelog/nonewtests] [5] ERROR: Source/WebCore/CMakeLists.txt:142: There should be exactly one empty line instead of 0 between "Modules/battery" and "Modules/encryptedmedia/legacy". [list/emptyline] [5] Total errors found: 9 in 34 files If any of these errors are false positives, please file a bug against check-webkit-style.
Jer Noble
Comment 10 2016-10-06 09:01:09 PDT
Zan, this patch will be much easier to review if you generate the patch by hand with rename detection turned on. (i.e., `git format-patch -M -1`).
Zan Dobersek
Comment 11 2016-10-06 12:25:43 PDT
(In reply to comment #10) > Zan, this patch will be much easier to review if you generate the patch by > hand with rename detection turned on. (i.e., `git format-patch -M -1`). Thanks for the tip, will use it.
Zan Dobersek
Comment 12 2016-10-07 01:08:59 PDT
WebKit Commit Bot
Comment 13 2016-10-07 01:11:24 PDT
Attachment 290910 [details] did not pass style-queue: ERROR: Source/WebCore/Modules/encryptedmedia/legacy/WebKitMediaKeySession.h:26: Use #pragma once instead of #ifndef for header guard. [build/header_guard] [5] ERROR: Source/WebCore/Modules/encryptedmedia/legacy/WebKitMediaKeyNeededEvent.h:26: Use #pragma once instead of #ifndef for header guard. [build/header_guard] [5] ERROR: Source/WebCore/Modules/encryptedmedia/legacy/WebKitMediaKeys.h:26: Use #pragma once instead of #ifndef for header guard. [build/header_guard] [5] ERROR: Source/WebCore/Modules/encryptedmedia/legacy/WebKitMediaKeyMessageEvent.h:27: Use #pragma once instead of #ifndef for header guard. [build/header_guard] [5] ERROR: Source/WebCore/html/WebKitMediaKeyError.h:26: Use #pragma once instead of #ifndef for header guard. [build/header_guard] [5] ERROR: Source/WebCore/html/WebKitMediaKeyError.h:39: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: Source/WebCore/html/WebKitMediaKeyError.h:40: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: Source/WebCore/html/WebKitMediaKeyError.h:41: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: Source/WebCore/html/WebKitMediaKeyError.h:42: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: Source/WebCore/html/WebKitMediaKeyError.h:43: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: Source/WebCore/html/WebKitMediaKeyError.h:44: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: Source/WebCore/html/WebKitMediaKeyError.h:54: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4] ERROR: Source/WebCore/CMakeLists.txt:142: There should be exactly one empty line instead of 0 between "Modules/battery" and "Modules/encryptedmedia/legacy". [list/emptyline] [5] Total errors found: 13 in 34 files If any of these errors are false positives, please file a bug against check-webkit-style.
Zan Dobersek
Comment 14 2016-10-09 23:24:27 PDT
Comment on attachment 290910 [details] Patch Clearing flags on attachment: 290910 Committed r206983: <http://trac.webkit.org/changeset/206983>
Zan Dobersek
Comment 15 2016-10-09 23:24:37 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.