mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-20 08:51:04 +00:00
Bug 1297117 - Add documentation to stripAboutReaderUrl r=sebastian
MozReview-Commit-ID: Ibzhnk7LLmh --HG-- extra : histedit_source : f8460143a4c00238defb68774e96ac99150779aa
This commit is contained in:
parent
2f3ba414fe
commit
9e859c42fc
@ -45,6 +45,12 @@ public class ReaderModeUtils {
|
||||
return getAboutReaderForUrl(url, -1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Obtain the underlying URL from an about:reader URL.
|
||||
* This will return the input URL if either of the following is true:
|
||||
* 1. the input URL is a non about:reader URL
|
||||
* 2. the input URL is an invalid/unparseable about:reader URL
|
||||
*/
|
||||
public static String stripAboutReaderUrl(String url) {
|
||||
if (!AboutPages.isAboutReader(url)) {
|
||||
return url;
|
||||
|
Loading…
x
Reference in New Issue
Block a user