RESOLVED FIXED 66964
Return the correct value for NPNVsupportsCarbonBool
https://bugs.webkit.org/show_bug.cgi?id=66964
Summary Return the correct value for NPNVsupportsCarbonBool
Anders Carlsson
Reported 2011-08-25 11:35:18 PDT
Return the correct value for NPNVsupportsCarbonBool
Attachments
Patch (1.34 KB, patch)
2011-08-25 11:36 PDT, Anders Carlsson
no flags
Patch (10.68 KB, patch)
2011-08-25 13:23 PDT, Anders Carlsson
aroben: review+
Anders Carlsson
Comment 1 2011-08-25 11:36:12 PDT
Darin Adler
Comment 2 2011-08-25 11:43:14 PDT
Can we make a regression test for this? What’s the real world impact?
Anders Carlsson
Comment 3 2011-08-25 11:47:08 PDT
(In reply to comment #2) > Can we make a regression test for this? We could, but it would involve making run-webkit-tests aware of whether Carbon plug-ins are available and look for different results depending on that. I don't think it's worth it. > > What’s the real world impact? Probably none - Carbon plug-ins just assume that the Carbon event model is supported. I just saw that it was wrong and it bothered me.
Adam Roben (:aroben)
Comment 4 2011-08-25 11:50:28 PDT
Comment on attachment 105226 [details] Patch This really should have a test associated with it.
Anders Carlsson
Comment 5 2011-08-25 13:23:07 PDT
Adam Roben (:aroben)
Comment 6 2011-08-25 13:24:42 PDT
Comment on attachment 105236 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=105236&action=review > Tools/DumpRenderTree/TestNetscapePlugIn/Tests/mac/SupportsCarbonEventModel.cpp:56 > + bool testConvert(double x, double y, NPCoordinateSpace sourceSpace, NPCoordinateSpace destSpace) > + { > + // First convert from src to dest. > + double destX, destY; > + if (!NPN_ConvertPoint(x, y, sourceSpace, &destX, &destY, destSpace)) > + return false; > + > + // Then convert back to src > + double srcX, srcY; > + if (!NPN_ConvertPoint(destX, destY, destSpace, &srcX, &srcY, sourceSpace)) > + return false; > + > + > + // Then compare. > + if (srcX != x || srcY != y) > + return false; > + > + return true; > + } This function never seems to be called. > Tools/DumpRenderTree/TestNetscapePlugIn/Tests/mac/SupportsCarbonEventModel.cpp:58 > + bool runTest() This can be private.
Anders Carlsson
Comment 7 2011-08-25 13:26:46 PDT
Note You need to log in before you can comment on or make changes to this bug.