RESOLVED FIXED 166284
Remove initEvent quirk
https://bugs.webkit.org/show_bug.cgi?id=166284
Summary Remove initEvent quirk
Alex Christensen
Reported 2016-12-20 15:04:18 PST
Remove initEvent quirk
Attachments
Patch (5.52 KB, patch)
2016-12-20 15:12 PST, Alex Christensen
no flags
Patch (9.28 KB, patch)
2016-12-20 15:39 PST, Alex Christensen
mitz: review+
Alex Christensen
Comment 1 2016-12-20 15:12:47 PST
Alex Christensen
Comment 2 2016-12-20 15:39:53 PST
Alex Christensen
Comment 3 2016-12-20 15:54:40 PST
Alexey Proskuryakov
Comment 4 2016-12-20 19:41:43 PST
Is there a radar tracking this?
Alex Christensen
Comment 5 2016-12-20 22:42:11 PST
Chris Dumez
Comment 6 2017-01-03 09:09:25 PST
Comment on attachment 297563 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=297563&action=review > Source/WebCore/ChangeLog:9 > + Many web compatibility issues have been found, which leads us to believe that many more exist. I disagree with this comment, there were no Web compatibility issues found. It merely broke several iOS apps that are WebKit-specific and relied on our bug. Because of this, I believe it is going to be difficult the get the specification changed. It is also going to be difficult to get the specification changed because every other browser out there matches the specification. I don't mind trying to get the spec changed but until it does, I believe the way forward for us is to use the quirk for iOS apps, not *regress* our standards compliance and interoperability with other browsers.
Chris Dumez
Comment 7 2017-01-03 09:12:13 PST
Comment on attachment 297563 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=297563&action=review > Source/WebCore/dom/Event.idl:69 > + void initEvent(optional DOMString type = "undefined", optional boolean bubbles = false, optional boolean cancelable = false); Also I doubt there is any app calling initEvent without the first parameter.
Darin Adler
Comment 8 2017-01-03 10:22:09 PST
I agree with Chris’s comments.
Chris Dumez
Comment 9 2017-01-03 10:42:49 PST
(In reply to comment #8) > I agree with Chris’s comments. Alex pointed out that Chrome does not match the spec either so we are discussing this upstream at https://github.com/whatwg/dom/issues/387. I will follow up once we reach agreement at spec-level.
Alex Christensen
Comment 10 2017-01-03 12:58:08 PST
I didn't find any content calling initEvent without the first parameter, they were just missing the second and third. This just reverted completely to our old behavior. I think we should definitely become spec compliant, but this doesn't seem to cause interoperability issues; I haven't seen any content that relies on a JavaScript exception when there are fewer than three parameters.
Darin Adler
Comment 11 2017-01-03 23:55:24 PST
Sounds like a good approach.
Note You need to log in before you can comment on or make changes to this bug.