Bug for onRequest parameter, and dispatch 'request' event

Change-Id: Iba59b11bf35900d52cd83b681d6384f58e7223e7