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

Prevent loading brave scheme url from javascript #1262

Merged
merged 1 commit into from
Jan 8, 2019

Conversation

bbondy
Copy link
Member

@bbondy bbondy commented Jan 8, 2019

Uplift request for: #1196
Fix brave/brave-browser#2861
Fix brave/brave-browser#2849
Disclaimer: This is not my PR, I'm uplifting on behalf of @simonhong

Prevent loading brave scheme url from javascript
@bbondy bbondy added the 0.60.x label Jan 8, 2019
@bbondy bbondy self-assigned this Jan 8, 2019
@bbondy bbondy requested a review from emerick January 8, 2019 21:29
Copy link
Contributor

@emerick emerick left a comment

Choose a reason for hiding this comment

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

LGTM

// Web UI bindings need the ability to request chrome: URLs.
state->second->GrantRequestScheme(kChromeUIScheme);
+#if defined(BRAVE_CHROMIUM_BUILD)
+ state->second->GrantRequestScheme(kBraveUIScheme);
Copy link
Collaborator

Choose a reason for hiding this comment

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

how does this work? content doesn't know anything about kBraveUIScheme

Copy link
Collaborator

Choose a reason for hiding this comment

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

missed the url_constants.cc chromium_src

Copy link
Member Author

Choose a reason for hiding this comment

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

because of chromium_src/content/public/common/url_constants.cc 👍

@bbondy bbondy merged commit 45fc9dd into 0.60.x Jan 8, 2019
@bbondy bbondy added this to the 0.60.x - Dev milestone Jan 14, 2019
@bsclifton bsclifton deleted the prevent_brave_scheme_loading_from_js-0.60.x branch January 24, 2019 21:25
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.

3 participants