WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
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
Details
Formatted Diff
Diff
Patch
(10.68 KB, patch)
2011-08-25 13:23 PDT
,
Anders Carlsson
aroben
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Anders Carlsson
Comment 1
2011-08-25 11:36:12 PDT
Created
attachment 105226
[details]
Patch
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
Created
attachment 105236
[details]
Patch
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
Committed
r93814
: <
http://trac.webkit.org/changeset/93814
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug