зеркало из https://github.com/mozilla/gecko-dev.git
7d213246fb
Normally, this method will return the entire in string if it has a scheme. However, mParser->ParseURL may fail, leading to the scheme to be cleared, and the result will be the same HTTP URL with the input appended to the path. This triggers the assertion in NS_NewURI that the scheme should not change. As a fix, we bail out of nsStandardURL::Resolve() if the parsed scheme of the input is different than the base URIs current scheme. This condition is necessary, because we still need to support a deprecated form of relative URLs like http:file or http:/path/file Differential Revision: https://phabricator.services.mozilla.com/D33003 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
tests | ||
URL.cpp | ||
URL.h | ||
URLMainThread.cpp | ||
URLMainThread.h | ||
URLSearchParams.cpp | ||
URLSearchParams.h | ||
URLWorker.cpp | ||
URLWorker.h | ||
moz.build |