RESOLVED FIXED 211885
Use enum serialization instead of casting to/from uint32_t
https://bugs.webkit.org/show_bug.cgi?id=211885
Summary Use enum serialization instead of casting to/from uint32_t
Alex Christensen
Reported 2020-05-14 02:22:38 PDT
Use enum serialization instead of casting to/from uint32_t
Attachments
Patch (227.74 KB, patch)
2020-05-14 02:27 PDT, Alex Christensen
no flags
Patch (228.27 KB, patch)
2020-05-14 02:30 PDT, Alex Christensen
no flags
Patch (228.62 KB, patch)
2020-05-14 09:30 PDT, Alex Christensen
no flags
Patch (231.41 KB, patch)
2020-05-14 10:27 PDT, Alex Christensen
no flags
Patch (230.74 KB, patch)
2020-05-14 11:23 PDT, Alex Christensen
no flags
Patch (233.68 KB, patch)
2020-05-14 13:55 PDT, Alex Christensen
no flags
Patch (224.81 KB, patch)
2020-05-15 20:09 PDT, Alex Christensen
no flags
Alex Christensen
Comment 1 2020-05-14 02:27:20 PDT
Alex Christensen
Comment 2 2020-05-14 02:30:55 PDT
Alex Christensen
Comment 3 2020-05-14 09:30:59 PDT
Alex Christensen
Comment 4 2020-05-14 10:27:22 PDT
Alex Christensen
Comment 5 2020-05-14 11:23:05 PDT
Alex Christensen
Comment 6 2020-05-14 13:55:17 PDT
Geoffrey Garen
Comment 7 2020-05-14 14:55:05 PDT
Comment on attachment 399405 [details] Patch r=me
Alex Christensen
Comment 8 2020-05-14 15:57:47 PDT
That test failure looks suspicious. Will fix before landing.
Alex Christensen
Comment 9 2020-05-15 20:02:41 PDT
Comment on attachment 399405 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=399405&action=review > Source/WebCore/page/DOMSelection.cpp:-272 > - else if (equalLettersIgnoringASCIICase(granularityString, "sentenceboundary")) This was changed by find/replace by mistake. > Source/WebKit/WebProcess/WebPage/mac/WebPageMac.mm:781 > + return WebGLLoadPolicy::WebGLAllowCreation; This should be policyResult
Alex Christensen
Comment 10 2020-05-15 20:09:59 PDT
EWS
Comment 11 2020-05-15 20:46:03 PDT
Committed r261776: <https://trac.webkit.org/changeset/261776> All reviewed patches have been landed. Closing bug and clearing flags on attachment 399540 [details].
Radar WebKit Bug Importer
Comment 12 2020-05-15 20:47:16 PDT
Philippe Normand
Comment 13 2020-05-17 10:35:17 PDT
This broke test-webkitpy on most (if not all) platforms: https://build.webkit.org/builders/Apple%20Mojave%20Release%20WK2%20%28Tests%29/builds/13074/steps/webkitpy-test/logs/stdio Traceback (most recent call last): File "/Volumes/Data/slave/mojave-release-tests-wk2/build/Source/WebKit/Scripts/webkit/messages_unittest.py", line 335, in test_receiver self.check_message(message, _expected_results['messages'][index]) File "/Volumes/Data/slave/mojave-release-tests-wk2/build/Source/WebKit/Scripts/webkit/messages_unittest.py", line 310, in check_message self.assertEquals(len(message.parameters), len(expected_message['parameters'])) AssertionError: 2 != 1
Philippe Normand
Comment 14 2020-05-17 10:49:39 PDT
message.parameters: [<webkit.model.Parameter object at 0x7f1c2472c550>, <webkit.model.Parameter object at 0x7f1c2472c590>] expected_message['parameters']: (('IPC::MachPort', 'connectionIdentifier'),)
Truitt Savell
Comment 15 2020-05-18 07:48:17 PDT
(In reply to Philippe Normand from comment #13) > This broke test-webkitpy on most (if not all) platforms: > https://build.webkit.org/builders/ > Apple%20Mojave%20Release%20WK2%20%28Tests%29/builds/13074/steps/webkitpy- > test/logs/stdio > > Traceback (most recent call last): > File > "/Volumes/Data/slave/mojave-release-tests-wk2/build/Source/WebKit/Scripts/ > webkit/messages_unittest.py", line 335, in test_receiver > self.check_message(message, _expected_results['messages'][index]) > File > "/Volumes/Data/slave/mojave-release-tests-wk2/build/Source/WebKit/Scripts/ > webkit/messages_unittest.py", line 310, in check_message > self.assertEquals(len(message.parameters), > len(expected_message['parameters'])) > AssertionError: 2 != 1 Filed https://bugs.webkit.org/show_bug.cgi?id=212025 for this
Lauro Moura
Comment 16 2020-05-18 07:55:05 PDT
(In reply to Truitt Savell from comment #15) > (In reply to Philippe Normand from comment #13) > > This broke test-webkitpy on most (if not all) platforms: > > https://build.webkit.org/builders/ > > Apple%20Mojave%20Release%20WK2%20%28Tests%29/builds/13074/steps/webkitpy- > > test/logs/stdio > > > > Traceback (most recent call last): > > File > > "/Volumes/Data/slave/mojave-release-tests-wk2/build/Source/WebKit/Scripts/ > > webkit/messages_unittest.py", line 335, in test_receiver > > self.check_message(message, _expected_results['messages'][index]) > > File > > "/Volumes/Data/slave/mojave-release-tests-wk2/build/Source/WebKit/Scripts/ > > webkit/messages_unittest.py", line 310, in check_message > > self.assertEquals(len(message.parameters), > > len(expected_message['parameters'])) > > AssertionError: 2 != 1 > > Filed https://bugs.webkit.org/show_bug.cgi?id=212025 for this I submitted a fix in bug212008. (Also added it to see-also here but did not comment, sorry).
Note You need to log in before you can comment on or make changes to this bug.