Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More infos on did-get-redirect-request event #2829

Merged
merged 1 commit into from
Sep 21, 2015

Conversation

nekuz0r
Copy link
Contributor

@nekuz0r nekuz0r commented Sep 18, 2015

Add http_response_code, method, referrer, response_headers to did-get-redirect-request event.

@nekuz0r nekuz0r force-pushed the enhanced-redirect-event branch from 67a8980 to d82f886 Compare September 18, 2015 11:30
v8::Locker locker(isolate());
v8::HandleScope handle_scope(isolate());

v8::Local<v8::Value> response_headers = mate::ConvertToV8(isolate(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't have to do the conversion manually, you can just call Emit(..., details.headers.get()) for automatic conversion, and the Locker and HandleScope calls can also be removed since Emit has taken care of it.

The DidGetResourceResponseStart needs to do the same change too.

@nekuz0r nekuz0r force-pushed the enhanced-redirect-event branch from d82f886 to 2b74326 Compare September 21, 2015 07:51
@nekuz0r nekuz0r force-pushed the enhanced-redirect-event branch from 2b74326 to 4771031 Compare September 21, 2015 07:52
@nekuz0r
Copy link
Contributor Author

nekuz0r commented Sep 21, 2015

@zcbenz Updated

@zcbenz
Copy link
Contributor

zcbenz commented Sep 21, 2015

👍

zcbenz added a commit that referenced this pull request Sep 21, 2015
More infos on did-get-redirect-request event
@zcbenz zcbenz merged commit 62d64e7 into electron:master Sep 21, 2015
@nekuz0r nekuz0r deleted the enhanced-redirect-event branch September 25, 2015 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants