Re https://crbug.com/1255713 (security bug).One of the problems in this bug comes from a line:url::Origin::Create(web_contents->GetLastCommittedURL())In general, that's an antipattern, but what's happening specifically here is that GetLastCommittedURL() is returning "about:blank#blocked", which Origin is turning into a default-constructed Origin.(Specifically, "about:blank#blocked" is passed to the SchemeHostPort constructor, which calls IsValidInput(), which returns false as "about" isn't allowed.)This allows laundering of origins for anyone using that antipattern.
I'm not sure what to ask here. Can we make the url::Origin::Create call smarter? Can we do something on the "about:blank#blocked" side? Can we just remove url::Origin::Create?
--
You received this message because you are subscribed to the Google Groups "navigation-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to navigation-de...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/navigation-dev/CACWgwAa2G7nRnGgShNH6MpmD5%3DuhTC4Xe%2ByxT2HCTFssWEzmdQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/navigation-dev/CAF3XrKr2Pf-3qRbgPdTUvfYwqK9ZCCkOwovLaEWV6vGo-jGwGQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/navigation-dev/CACWgwAa%2BQjDbGn8mW6a_xDJQaO51giaBVgWWJsuYwxu8NiHzFA%40mail.gmail.com.