With this commit we can pass extra arguments to onResourceRequested function which runs in phantomjs scope. (doesn't support function, also no need to do that)