Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: mobile/android/chrome/content/browser.js

Issue 29606596: Issue 6032 - Page not added to the Reading List (Closed)
Patch Set: Created Nov. 13, 2017, 10:23 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mobile/android/chrome/content/browser.js
===================================================================
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -4345,19 +4345,16 @@ Tab.prototype = {
}
}
// Update the page actions URI for helper apps.
if (BrowserApp.selectedTab == this) {
ExternalApps.updatePageActionUri(fixedURI);
}
- // Strip reader mode URI and also make it exposable if needed
- fixedURI = this._stripAboutReaderURL(fixedURI);
-
let webNav = contentWin.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIWebNavigation);
let message = {
type: "Content:LocationChange",
tabID: this.id,
uri: truncate(fixedURI.spec, MAX_URI_LENGTH),
userRequested: this.userRequested || "",
baseDomain: baseDomain,
@@ -4378,27 +4375,16 @@ Tab.prototype = {
// XXX This code assumes that this is the earliest hook we have at which
// browser.contentDocument is changed to the new document we're loading
this.contentDocumentIsDisplayed = false;
this.hasTouchListener = false;
Services.obs.notifyObservers(this.browser, "Session:NotifyLocationChange", null);
}
},
- _stripAboutReaderURL: function (originalURI) {
- try {
- let strippedURL = ReaderMode.getOriginalUrl(originalURI.spec);
- if(strippedURL){
- // Continue to create exposable uri if original uri is stripped.
- originalURI = URIFixup.createExposableURI(Services.io.newURI(strippedURL));
- }
- } catch (ex) { }
- return originalURI;
- },
-
// Properties used to cache security state used to update the UI
_state: null,
_hostChanged: false, // onLocationChange will flip this bit
onSecurityChange: function(aWebProgress, aRequest, aState) {
// Don't need to do anything if the data we use to update the UI hasn't changed
if (this._state == aState && !this._hostChanged)
return;

Powered by Google App Engine
This is Rietveld