Seems unlikely that there are any cryptographic consequences here, but for consistency with other operations, HMAC should fail if key and operation algorithms don't match precisely.
Created attachment 218227 [details] proposed fix
Committed <http://trac.webkit.org/r159975>.
Corrected test result in <http://trac.webkit.org/r160027>.