Bug 163876 - Move all classes in the HTML directory from ExceptionCode to Exception
Summary: Move all classes in the HTML directory from ExceptionCode to Exception
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Bindings (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Darin Adler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-23 14:25 PDT by Darin Adler
Modified: 2016-11-16 09:59 PST (History)
5 users (show)

See Also:


Attachments
Patch (338.76 KB, patch)
2016-10-23 15:30 PDT, Darin Adler
no flags Details | Formatted Diff | Diff
Patch (345.88 KB, patch)
2016-10-23 15:56 PDT, Darin Adler
no flags Details | Formatted Diff | Diff
Patch (350.57 KB, patch)
2016-10-24 10:32 PDT, Darin Adler
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews107 for mac-yosemite-wk2 (982.10 KB, application/zip)
2016-10-24 11:44 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews103 for mac-yosemite (1.13 MB, application/zip)
2016-10-24 11:46 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews113 for mac-yosemite (1.88 MB, application/zip)
2016-10-24 11:47 PDT, Build Bot
no flags Details
Patch (368.32 KB, patch)
2016-10-24 21:33 PDT, Darin Adler
no flags Details | Formatted Diff | Diff
Patch (385.29 KB, patch)
2016-10-24 22:06 PDT, Darin Adler
no flags Details | Formatted Diff | Diff
Patch (385.37 KB, patch)
2016-10-24 22:15 PDT, Darin Adler
no flags Details | Formatted Diff | Diff
Patch (386.54 KB, patch)
2016-10-24 22:35 PDT, Darin Adler
no flags Details | Formatted Diff | Diff
Patch (386.72 KB, patch)
2016-10-24 22:56 PDT, Darin Adler
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews103 for mac-yosemite (1.54 MB, application/zip)
2016-10-25 00:06 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews105 for mac-yosemite-wk2 (2.05 MB, application/zip)
2016-10-25 00:13 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews113 for mac-yosemite (2.40 MB, application/zip)
2016-10-25 00:28 PDT, Build Bot
no flags Details
Patch (409.91 KB, patch)
2016-10-26 21:29 PDT, Darin Adler
no flags Details | Formatted Diff | Diff
Patch (412.79 KB, patch)
2016-10-26 22:33 PDT, Darin Adler
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews107 for mac-yosemite-wk2 (1.13 MB, application/zip)
2016-10-26 23:49 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews125 for ios-simulator-wk2 (8.63 MB, application/zip)
2016-10-27 02:07 PDT, Build Bot
no flags Details
Patch (411.50 KB, patch)
2016-10-27 09:11 PDT, Darin Adler
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews105 for mac-yosemite-wk2 (1.07 MB, application/zip)
2016-10-27 10:26 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews121 for ios-simulator-wk2 (7.61 MB, application/zip)
2016-10-27 10:37 PDT, Build Bot
no flags Details
Patch (421.67 KB, patch)
2016-10-27 20:31 PDT, Darin Adler
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews104 for mac-yosemite-wk2 (1.07 MB, application/zip)
2016-10-27 21:46 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews122 for ios-simulator-wk2 (6.19 MB, application/zip)
2016-10-27 22:16 PDT, Build Bot
no flags Details
Patch (432.51 KB, patch)
2016-10-28 10:57 PDT, Darin Adler
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Darin Adler 2016-10-23 14:25:55 PDT
Move all classes in the HTML directory from ExceptionCode to Exception
Comment 1 Darin Adler 2016-10-23 15:30:05 PDT
Created attachment 292558 [details]
Patch
Comment 2 WebKit Commit Bot 2016-10-23 15:32:45 PDT
Attachment 292558 [details] did not pass style-queue:


ERROR: Source/WebCore/html/MediaController.h:127:  enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums.  [readability/enum_casing] [4]
ERROR: Source/WebCore/bindings/js/JSDOMBinding.h:309:  Code inside a namespace should not be indented.  [whitespace/indent] [4]
ERROR: Source/WebCore/html/ImageData.cpp:84:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
ERROR: Source/WebCore/html/ImageData.cpp:91:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
Total errors found: 4 in 149 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Darin Adler 2016-10-23 15:56:35 PDT
Created attachment 292560 [details]
Patch
Comment 4 WebKit Commit Bot 2016-10-23 18:19:48 PDT
Attachment 292560 [details] did not pass style-queue:


ERROR: Source/WebCore/html/MediaController.h:127:  enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums.  [readability/enum_casing] [4]
ERROR: Source/WebCore/bindings/js/JSDOMBinding.h:309:  Code inside a namespace should not be indented.  [whitespace/indent] [4]
ERROR: Source/WebCore/html/ImageData.cpp:84:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
ERROR: Source/WebCore/html/ImageData.cpp:91:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
Total errors found: 4 in 152 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 5 Darin Adler 2016-10-24 10:32:42 PDT
Created attachment 292625 [details]
Patch
Comment 6 WebKit Commit Bot 2016-10-24 10:44:40 PDT
Attachment 292625 [details] did not pass style-queue:


ERROR: Source/WebCore/html/MediaController.h:127:  enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums.  [readability/enum_casing] [4]
ERROR: Source/WebCore/bindings/js/JSDOMBinding.h:303:  Code inside a namespace should not be indented.  [whitespace/indent] [4]
ERROR: Source/WebCore/html/ImageData.cpp:84:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
ERROR: Source/WebCore/html/ImageData.cpp:91:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
Total errors found: 4 in 156 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 7 Build Bot 2016-10-24 11:44:20 PDT
Comment on attachment 292625 [details]
Patch

Attachment 292625 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/2359646

Number of test failures exceeded the failure limit.
Comment 8 Build Bot 2016-10-24 11:44:24 PDT
Created attachment 292636 [details]
Archive of layout-test-results from ews107 for mac-yosemite-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews107  Port: mac-yosemite-wk2  Platform: Mac OS X 10.10.5
Comment 9 Build Bot 2016-10-24 11:46:09 PDT
Comment on attachment 292625 [details]
Patch

Attachment 292625 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/2359663

Number of test failures exceeded the failure limit.
Comment 10 Build Bot 2016-10-24 11:46:12 PDT
Created attachment 292637 [details]
Archive of layout-test-results from ews103 for mac-yosemite

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews103  Port: mac-yosemite  Platform: Mac OS X 10.10.5
Comment 11 Build Bot 2016-10-24 11:47:44 PDT
Comment on attachment 292625 [details]
Patch

Attachment 292625 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/2359642

Number of test failures exceeded the failure limit.
Comment 12 Build Bot 2016-10-24 11:47:47 PDT
Created attachment 292638 [details]
Archive of layout-test-results from ews113 for mac-yosemite

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews113  Port: mac-yosemite  Platform: Mac OS X 10.10.5
Comment 13 Darin Adler 2016-10-24 21:33:35 PDT
Created attachment 292712 [details]
Patch
Comment 14 WebKit Commit Bot 2016-10-24 21:36:43 PDT
Attachment 292712 [details] did not pass style-queue:


ERROR: Source/WebCore/html/MediaController.h:127:  enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums.  [readability/enum_casing] [4]
ERROR: Source/WebCore/bindings/js/JSDOMBinding.h:303:  Code inside a namespace should not be indented.  [whitespace/indent] [4]
ERROR: Source/WebCore/html/ImageData.cpp:84:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
ERROR: Source/WebCore/html/ImageData.cpp:91:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
Total errors found: 4 in 168 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 15 Darin Adler 2016-10-24 22:06:19 PDT
Created attachment 292717 [details]
Patch
Comment 16 WebKit Commit Bot 2016-10-24 22:09:13 PDT
Attachment 292717 [details] did not pass style-queue:


ERROR: Source/WebCore/html/MediaController.h:127:  enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums.  [readability/enum_casing] [4]
ERROR: Source/WebCore/bindings/js/JSDOMBinding.h:303:  Code inside a namespace should not be indented.  [whitespace/indent] [4]
ERROR: Source/WebCore/html/ImageData.cpp:84:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
ERROR: Source/WebCore/html/ImageData.cpp:91:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
Total errors found: 4 in 170 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 17 Darin Adler 2016-10-24 22:15:18 PDT
Created attachment 292719 [details]
Patch
Comment 18 WebKit Commit Bot 2016-10-24 22:18:26 PDT
Attachment 292719 [details] did not pass style-queue:


ERROR: Source/WebCore/html/MediaController.h:127:  enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums.  [readability/enum_casing] [4]
ERROR: Source/WebCore/bindings/js/JSDOMBinding.h:303:  Code inside a namespace should not be indented.  [whitespace/indent] [4]
ERROR: Source/WebCore/html/ImageData.cpp:84:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
ERROR: Source/WebCore/html/ImageData.cpp:91:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
Total errors found: 4 in 170 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 19 Darin Adler 2016-10-24 22:35:20 PDT
Created attachment 292721 [details]
Patch
Comment 20 WebKit Commit Bot 2016-10-24 22:38:35 PDT
Attachment 292721 [details] did not pass style-queue:


ERROR: Source/WebCore/html/MediaController.h:127:  enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums.  [readability/enum_casing] [4]
ERROR: Source/WebCore/bindings/js/JSDOMBinding.h:303:  Code inside a namespace should not be indented.  [whitespace/indent] [4]
ERROR: Source/WebCore/html/ImageData.cpp:84:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
ERROR: Source/WebCore/html/ImageData.cpp:91:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
Total errors found: 4 in 171 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 21 Darin Adler 2016-10-24 22:56:58 PDT
Created attachment 292724 [details]
Patch
Comment 22 WebKit Commit Bot 2016-10-24 22:58:43 PDT
Attachment 292724 [details] did not pass style-queue:


ERROR: Source/WebCore/html/MediaController.h:127:  enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums.  [readability/enum_casing] [4]
ERROR: Source/WebCore/bindings/js/JSDOMBinding.h:303:  Code inside a namespace should not be indented.  [whitespace/indent] [4]
ERROR: Source/WebCore/html/ImageData.cpp:84:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
ERROR: Source/WebCore/html/ImageData.cpp:91:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
Total errors found: 4 in 171 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 23 Build Bot 2016-10-25 00:06:46 PDT
Comment on attachment 292724 [details]
Patch

Attachment 292724 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/2363369

New failing tests:
dom/html/level2/html/HTMLTableRowElement18.html
dom/html/level2/html/HTMLTableSectionElement28.html
dom/xhtml/level2/html/HTMLTableRowElement18.xhtml
media/track/add-and-remove-track.html
media/range-extract-contents-crash.html
dom/xhtml/level2/html/HTMLTableSectionElement27.xhtml
dom/xhtml/level2/html/HTMLTableSectionElement29.xhtml
dom/html/level2/html/HTMLTableRowElement19.html
imported/w3c/web-platform-tests/html/semantics/tabular-data/the-tbody-element/deleteRow.html
dom/html/level2/html/HTMLTableSectionElement29.html
dom/xhtml/level2/html/HTMLTableSectionElement28.xhtml
dom/xhtml/level2/html/HTMLTableRowElement19.xhtml
imported/w3c/web-platform-tests/html/semantics/tabular-data/the-tr-element/deleteCell.html
dom/xhtml/level2/html/HTMLTableRowElement17.xhtml
dom/html/level2/html/HTMLTableRowElement17.html
dom/html/level2/html/HTMLTableSectionElement27.html
Comment 24 Build Bot 2016-10-25 00:06:51 PDT
Created attachment 292728 [details]
Archive of layout-test-results from ews103 for mac-yosemite

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews103  Port: mac-yosemite  Platform: Mac OS X 10.10.5
Comment 25 Build Bot 2016-10-25 00:13:00 PDT
Comment on attachment 292724 [details]
Patch

Attachment 292724 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/2363372

New failing tests:
dom/html/level2/html/HTMLTableRowElement18.html
dom/xhtml/level2/html/HTMLTableSectionElement29.xhtml
dom/html/level2/html/HTMLTableSectionElement28.html
dom/xhtml/level2/html/HTMLTableRowElement18.xhtml
media/track/add-and-remove-track.html
media/range-extract-contents-crash.html
dom/xhtml/level2/html/HTMLTableSectionElement27.xhtml
imported/w3c/web-platform-tests/url/url-setters.html
dom/html/level2/html/HTMLTableRowElement19.html
imported/w3c/web-platform-tests/html/semantics/tabular-data/the-tbody-element/deleteRow.html
dom/html/level2/html/HTMLTableSectionElement29.html
dom/xhtml/level2/html/HTMLTableSectionElement28.xhtml
imported/w3c/web-platform-tests/html/semantics/tabular-data/the-tr-element/deleteCell.html
dom/xhtml/level2/html/HTMLTableRowElement19.xhtml
dom/xhtml/level2/html/HTMLTableRowElement17.xhtml
dom/html/level2/html/HTMLTableRowElement17.html
dom/html/level2/html/HTMLTableSectionElement27.html
Comment 26 Build Bot 2016-10-25 00:13:04 PDT
Created attachment 292729 [details]
Archive of layout-test-results from ews105 for mac-yosemite-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews105  Port: mac-yosemite-wk2  Platform: Mac OS X 10.10.5
Comment 27 Build Bot 2016-10-25 00:28:42 PDT
Comment on attachment 292724 [details]
Patch

Attachment 292724 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/2363413

New failing tests:
dom/html/level2/html/HTMLTableRowElement18.html
dom/xhtml/level2/html/HTMLTableRowElement17.xhtml
dom/xhtml/level2/html/HTMLTableSectionElement28.xhtml
dom/xhtml/level2/html/HTMLTableRowElement18.xhtml
media/track/add-and-remove-track.html
media/range-extract-contents-crash.html
dom/xhtml/level2/html/HTMLTableSectionElement27.xhtml
dom/xhtml/level2/html/HTMLTableSectionElement29.xhtml
imported/w3c/web-platform-tests/html/semantics/tabular-data/the-tbody-element/deleteRow.html
dom/html/level2/html/HTMLTableSectionElement29.html
dom/html/level2/html/HTMLTableSectionElement28.html
imported/w3c/web-platform-tests/html/semantics/tabular-data/the-tr-element/deleteCell.html
dom/xhtml/level2/html/HTMLTableRowElement19.xhtml
dom/html/level2/html/HTMLTableRowElement19.html
dom/html/level2/html/HTMLTableRowElement17.html
dom/html/level2/html/HTMLTableSectionElement27.html
Comment 28 Build Bot 2016-10-25 00:28:47 PDT
Created attachment 292731 [details]
Archive of layout-test-results from ews113 for mac-yosemite

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews113  Port: mac-yosemite  Platform: Mac OS X 10.10.5
Comment 29 Darin Adler 2016-10-26 21:29:39 PDT
Created attachment 292990 [details]
Patch
Comment 30 WebKit Commit Bot 2016-10-26 21:32:04 PDT
Attachment 292990 [details] did not pass style-queue:


ERROR: Source/WebCore/html/MediaController.h:127:  enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums.  [readability/enum_casing] [4]
ERROR: Source/WebCore/bindings/js/JSDOMBinding.h:287:  Code inside a namespace should not be indented.  [whitespace/indent] [4]
WARNING: File exempt from style guide. Skipping: "Source/WebKit2/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLInputElement.cpp"
WARNING: File exempt from style guide. Skipping: "Source/WebKit2/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMTokenList.cpp"
WARNING: File exempt from style guide. Skipping: "Source/WebKit2/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMElement.cpp"
WARNING: File exempt from style guide. Skipping: "Source/WebKit2/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLElement.cpp"
ERROR: Source/WebCore/html/ImageData.cpp:84:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
ERROR: Source/WebCore/html/ImageData.cpp:91:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
Total errors found: 4 in 181 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 31 Darin Adler 2016-10-26 22:33:29 PDT
Created attachment 292993 [details]
Patch
Comment 32 WebKit Commit Bot 2016-10-26 22:35:57 PDT
Attachment 292993 [details] did not pass style-queue:


ERROR: Source/WebCore/html/MediaController.h:127:  enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums.  [readability/enum_casing] [4]
ERROR: Source/WebCore/bindings/js/JSDOMBinding.h:287:  Code inside a namespace should not be indented.  [whitespace/indent] [4]
WARNING: File exempt from style guide. Skipping: "Source/WebKit2/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLInputElement.cpp"
WARNING: File exempt from style guide. Skipping: "Source/WebKit2/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMTokenList.cpp"
WARNING: File exempt from style guide. Skipping: "Source/WebKit2/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMElement.cpp"
WARNING: File exempt from style guide. Skipping: "Source/WebKit2/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLElement.cpp"
ERROR: Source/WebCore/html/ImageData.cpp:84:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
ERROR: Source/WebCore/html/ImageData.cpp:91:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
Total errors found: 4 in 183 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 33 Build Bot 2016-10-26 23:48:55 PDT
Comment on attachment 292993 [details]
Patch

Attachment 292993 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/2383485

New failing tests:
imported/w3c/web-platform-tests/url/url-setters.html
Comment 34 Build Bot 2016-10-26 23:49:00 PDT
Created attachment 292997 [details]
Archive of layout-test-results from ews107 for mac-yosemite-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews107  Port: mac-yosemite-wk2  Platform: Mac OS X 10.10.5
Comment 35 Build Bot 2016-10-27 02:07:27 PDT
Comment on attachment 292993 [details]
Patch

Attachment 292993 [details] did not pass ios-sim-ews (ios-simulator-wk2):
Output: http://webkit-queues.webkit.org/results/2384368

New failing tests:
imported/w3c/web-platform-tests/url/url-setters.html
Comment 36 Build Bot 2016-10-27 02:07:31 PDT
Created attachment 293002 [details]
Archive of layout-test-results from ews125 for ios-simulator-wk2

The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews125  Port: ios-simulator-wk2  Platform: Mac OS X 10.11.6
Comment 37 Darin Adler 2016-10-27 09:11:53 PDT
Created attachment 293026 [details]
Patch
Comment 38 WebKit Commit Bot 2016-10-27 09:15:15 PDT
Attachment 293026 [details] did not pass style-queue:


ERROR: Source/WebCore/html/MediaController.h:127:  enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums.  [readability/enum_casing] [4]
ERROR: Source/WebCore/bindings/js/JSDOMBinding.h:287:  Code inside a namespace should not be indented.  [whitespace/indent] [4]
WARNING: File exempt from style guide. Skipping: "Source/WebKit2/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLInputElement.cpp"
WARNING: File exempt from style guide. Skipping: "Source/WebKit2/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMTokenList.cpp"
WARNING: File exempt from style guide. Skipping: "Source/WebKit2/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMElement.cpp"
WARNING: File exempt from style guide. Skipping: "Source/WebKit2/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLElement.cpp"
ERROR: Source/WebCore/html/ImageData.cpp:84:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
ERROR: Source/WebCore/html/ImageData.cpp:91:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
Total errors found: 4 in 182 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 39 Build Bot 2016-10-27 10:26:18 PDT
Comment on attachment 293026 [details]
Patch

Attachment 293026 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/2387014

New failing tests:
imported/w3c/web-platform-tests/url/url-setters.html
Comment 40 Build Bot 2016-10-27 10:26:23 PDT
Created attachment 293032 [details]
Archive of layout-test-results from ews105 for mac-yosemite-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews105  Port: mac-yosemite-wk2  Platform: Mac OS X 10.10.5
Comment 41 Build Bot 2016-10-27 10:37:44 PDT
Comment on attachment 293026 [details]
Patch

Attachment 293026 [details] did not pass ios-sim-ews (ios-simulator-wk2):
Output: http://webkit-queues.webkit.org/results/2387039

New failing tests:
imported/w3c/web-platform-tests/url/url-setters.html
Comment 42 Build Bot 2016-10-27 10:37:48 PDT
Created attachment 293035 [details]
Archive of layout-test-results from ews121 for ios-simulator-wk2

The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews121  Port: ios-simulator-wk2  Platform: Mac OS X 10.11.6
Comment 43 Darin Adler 2016-10-27 20:31:29 PDT
Created attachment 293106 [details]
Patch
Comment 44 WebKit Commit Bot 2016-10-27 20:34:01 PDT
Attachment 293106 [details] did not pass style-queue:


WARNING: File exempt from style guide. Skipping: "Source/WebKit2/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableElement.cpp"
WARNING: File exempt from style guide. Skipping: "Source/WebKit2/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableSectionElement.cpp"
WARNING: File exempt from style guide. Skipping: "Source/WebKit2/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLSelectElement.cpp"
ERROR: Source/WebCore/html/MediaController.h:127:  enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums.  [readability/enum_casing] [4]
ERROR: Source/WebCore/bindings/js/JSDOMBinding.h:287:  Code inside a namespace should not be indented.  [whitespace/indent] [4]
WARNING: File exempt from style guide. Skipping: "Source/WebKit2/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLInputElement.cpp"
WARNING: File exempt from style guide. Skipping: "Source/WebKit2/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableRowElement.cpp"
WARNING: File exempt from style guide. Skipping: "Source/WebKit2/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMTokenList.cpp"
WARNING: File exempt from style guide. Skipping: "Source/WebKit2/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMElement.cpp"
WARNING: File exempt from style guide. Skipping: "Source/WebKit2/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLElement.cpp"
ERROR: Source/WebCore/html/ImageData.cpp:84:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
ERROR: Source/WebCore/html/ImageData.cpp:91:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
Total errors found: 4 in 186 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 45 Build Bot 2016-10-27 21:46:11 PDT
Comment on attachment 293106 [details]
Patch

Attachment 293106 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/2390195

New failing tests:
imported/w3c/web-platform-tests/url/url-setters.html
Comment 46 Build Bot 2016-10-27 21:46:15 PDT
Created attachment 293115 [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
Comment 47 Build Bot 2016-10-27 22:16:07 PDT
Comment on attachment 293106 [details]
Patch

Attachment 293106 [details] did not pass ios-sim-ews (ios-simulator-wk2):
Output: http://webkit-queues.webkit.org/results/2390238

New failing tests:
imported/w3c/web-platform-tests/url/url-setters.html
Comment 48 Build Bot 2016-10-27 22:16:12 PDT
Created attachment 293116 [details]
Archive of layout-test-results from ews122 for ios-simulator-wk2

The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews122  Port: ios-simulator-wk2  Platform: Mac OS X 10.11.6
Comment 49 Darin Adler 2016-10-28 09:05:05 PDT
Patch is ready to go now, ready for review. The only failures we are seeing on the EWS servers now are the strange URL setters test failure. I will look into that later this morning.
Comment 50 Darin Adler 2016-10-28 10:12:10 PDT
I see what’s going on now. I "accidentally" fixed some problems with our implementation of the DOM URL object, and the changes in those test results reflect the progressions. I will included updated expected results in a revised patch.
Comment 51 Darin Adler 2016-10-28 10:57:55 PDT
Created attachment 293178 [details]
Patch
Comment 52 WebKit Commit Bot 2016-10-28 11:00:27 PDT
Attachment 293178 [details] did not pass style-queue:


WARNING: File exempt from style guide. Skipping: "Source/WebKit2/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableElement.cpp"
WARNING: File exempt from style guide. Skipping: "Source/WebKit2/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableSectionElement.cpp"
WARNING: File exempt from style guide. Skipping: "Source/WebKit2/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLSelectElement.cpp"
ERROR: Source/WebCore/html/MediaController.h:127:  enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums.  [readability/enum_casing] [4]
ERROR: Source/WebCore/bindings/js/JSDOMBinding.h:287:  Code inside a namespace should not be indented.  [whitespace/indent] [4]
WARNING: File exempt from style guide. Skipping: "Source/WebKit2/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLInputElement.cpp"
WARNING: File exempt from style guide. Skipping: "Source/WebKit2/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableRowElement.cpp"
WARNING: File exempt from style guide. Skipping: "Source/WebKit2/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMTokenList.cpp"
WARNING: File exempt from style guide. Skipping: "Source/WebKit2/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMElement.cpp"
WARNING: File exempt from style guide. Skipping: "Source/WebKit2/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLElement.cpp"
ERROR: Source/WebCore/html/ImageData.cpp:84:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
ERROR: Source/WebCore/html/ImageData.cpp:91:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
Total errors found: 4 in 188 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 53 Darin Adler 2016-10-28 11:29:02 PDT
OK, ready for review now.
Comment 54 Sam Weinig 2016-10-28 13:37:39 PDT
Comment on attachment 293178 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=293178&action=review

> Source/WebCore/ChangeLog:5797
> +        * platform/graphics/win/ImageBufferDirect2D.cpp:
> +        (WebCore::ImageBuffer::toDataURL):
> +        * platform/image-encoders/JPEGImageEncoder.cpp:
> +        (WebCore::compressRGBABigEndianToJPEG):
> +        * platform/image-encoders/JPEGImageEncoder.h:
> +        * platform/mac/WebVideoFullscreenHUDWindowController.mm:
> +        (-[WebVideoFullscreenHUDWindowController setVolume:]):
> +        * xml/parser/XMLDocumentParserLibxml2.cpp:
> +        (WebCore::XMLDocumentParser::endElementNs):
> +
> +        * rendering/RenderThemeGtk.cpp:
> +        (WebCore::RenderThemeGtk::paintMediaSliderTrack): Updated for changes to
> +        the TimeRanges class.

I don't think this is in the right place.

> Source/WebCore/bindings/js/JSHTMLCanvasElementCustom.cpp:107
>      auto type = convert<IDLNullable<IDLDOMString>>(state, state.argument(0));

I think you need a RETURN_IF_EXCEPTION here.

> Source/WebCore/bindings/js/JSHTMLCanvasElementCustom.cpp:112
> +        quality = qualityValue.toNumber(&state);

Same here.

> Source/WebCore/bindings/js/JSHTMLCanvasElementCustom.cpp:120
> +    // We don't use the cached version of jsString here, because these are likely to be differing long strings.
> +    return jsString(&state, result.releaseReturnValue());

I guess we need some flags to pass the toJS<> guys as well.

> Source/WebCore/html/HTMLEmbedElement.idl:33
> +    [CheckSecurityForNode, MayThrowException] SVGDocument getSVGDocument();

There is no such type as a SVGDocument as far as the bindings are concerned. This should just be Document.

> Source/WebCore/html/HTMLFrameElement.idl:37
> +    [CheckSecurityForNode, MayThrowException] SVGDocument getSVGDocument();

There is no such type as a SVGDocument as far as the bindings are concerned. This should just be Document.
Comment 55 Chris Dumez 2016-10-28 14:02:07 PDT
Comment on attachment 293178 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=293178&action=review

> Source/WebCore/html/HTMLTextAreaElement.cpp:208
> +    internalSetMaxLength(parseHTMLNonNegativeInteger(newValue).valueOr(-1));

How does this work? parseHTMLNonNegativeInteger() returns an Optional<unsigned> so I would think Optional<unsigned>::valueOr() would return an unsigned. However, you're giving -1. Doesn't this cast -1 to unsigned?
Comment 56 Chris Dumez 2016-10-28 14:02:49 PDT
Sorry, did not mean to revert Sam's r+, just got a conflict upon submitting.
Comment 57 Darin Adler 2016-10-28 18:25:21 PDT
Comment on attachment 293178 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=293178&action=review

>> Source/WebCore/html/HTMLEmbedElement.idl:33
>> +    [CheckSecurityForNode, MayThrowException] SVGDocument getSVGDocument();
> 
> There is no such type as a SVGDocument as far as the bindings are concerned. This should just be Document.

Hoops that's just a merging mistake. I originally did this change before the SVG document change.

>> Source/WebCore/html/HTMLFrameElement.idl:37
>> +    [CheckSecurityForNode, MayThrowException] SVGDocument getSVGDocument();
> 
> There is no such type as a SVGDocument as far as the bindings are concerned. This should just be Document.

Will fix this one too.

>> Source/WebCore/html/HTMLTextAreaElement.cpp:208
>> +    internalSetMaxLength(parseHTMLNonNegativeInteger(newValue).valueOr(-1));
> 
> How does this work? parseHTMLNonNegativeInteger() returns an Optional<unsigned> so I would think Optional<unsigned>::valueOr() would return an unsigned. However, you're giving -1. Doesn't this cast -1 to unsigned?

Here's how it works: passing -1 to the valueOr function causes it to be converted to unsigned. Then returning the result of the function converts it back from unsigned two int. The -1 value survives both conversions. If you think that's too ugly I can try to come up with a different way to do this. It's particularly awkward that the function to parse has to return either unsigned or int when we know it returns a value that will fit in either!
Comment 58 Darin Adler 2016-10-28 18:57:39 PDT
Comment on attachment 293178 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=293178&action=review

>> Source/WebCore/bindings/js/JSHTMLCanvasElementCustom.cpp:107
>>      auto type = convert<IDLNullable<IDLDOMString>>(state, state.argument(0));
> 
> I think you need a RETURN_IF_EXCEPTION here.

OK, added. The old code didn’t have it, but hey, I am happy to fix that.

>> Source/WebCore/bindings/js/JSHTMLCanvasElementCustom.cpp:112
>> +        quality = qualityValue.toNumber(&state);
> 
> Same here.

No, don’t need it here. We are calling toNumber only if isNumber is true, so no chance of an exception.

>> Source/WebCore/bindings/js/JSHTMLCanvasElementCustom.cpp:120
>> +    return jsString(&state, result.releaseReturnValue());
> 
> I guess we need some flags to pass the toJS<> guys as well.

Good point.

I added that comment because the old code was calling JSC::jsString and at first I could not figure out why.

I wonder what it would take to make this entire function be autogenerated.
Comment 59 Darin Adler 2016-10-28 19:35:54 PDT
https://trac.webkit.org/changeset/208096
Comment 60 Simon Fraser (smfr) 2016-10-28 21:58:20 PDT
This seems to have broken fast/custom-elements/reactions/HTMLOptionsCollection.html https://build.webkit.org/results/Apple%20Sierra%20Release%20WK1%20(Tests)/r208096%20(1128)/results.html
Comment 61 Darin Adler 2016-10-28 22:02:31 PDT
OK, I’ll take a look. For some reason it did not break that when running tests on EWS earlier.
Comment 62 Darin Adler 2016-10-28 22:05:26 PDT
Should be fixed by https://trac.webkit.org/changeset/208098

Not sure why that other test failed, though.
Comment 63 Chris Dumez 2016-10-28 22:05:49 PDT
(In reply to comment #61)
> OK, I’ll take a look. For some reason it did not break that when running
> tests on EWS earlier.

I believe Ryosuke landed a new CEReactions patch today. Could be a conflict between the 2 patches.
Comment 64 Darin Adler 2016-10-28 22:09:06 PDT
(In reply to comment #63)
> (In reply to comment #61)
> > OK, I’ll take a look. For some reason it did not break that when running
> > tests on EWS earlier.
> 
> I believe Ryosuke landed a new CEReactions patch today. Could be a conflict
> between the 2 patches.

Yes, I figured out that one and I believe I fixed it already.

But it also seems that, in that run Simon linked to, media/modern-media-controls/volume-support/volume-support-drag.html is failing and I don’t know why. I am rebuilding so I can see if I can reproduce that locally.
Comment 65 Darin Adler 2016-10-28 22:09:55 PDT
Or maybe that one is just flaky.
Comment 66 Chris Dumez 2016-10-28 22:17:46 PDT
(In reply to comment #65)
> Or maybe that one is just flaky.

It is not failing in the following build :
https://build.webkit.org/results/Apple%20Sierra%20Release%20WK1%20(Tests)/r208097%20(1129)/results.html

So likely a flake indeed.
Comment 67 Chris Dumez 2016-11-16 09:55:49 PST
FYI, this patch was apparently a 0.75% speedometer regression on iOS.
Comment 68 Chris Dumez 2016-11-16 09:59:28 PST
(In reply to comment #67)
> FYI, this patch was apparently a 0.75% speedometer regression on iOS.

Filed <rdar://problem/29290316>.