Bug 1177360 - Disable reader mode button for amazon.com, r=Gijs
authorEvan Tseng <evan@tseng.io>
Wed, 01 Mar 2017 18:22:45 +0800
changeset 374597 af332c1ddc74f42115a56f59af6a83e26aad5d37
parent 374596 2c581e1a3c44aedf543315dcf6df2ba350fbc996
child 374598 53796fc215f8d21a016d425d6390795fd316a1c0
push id10863
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 23:02:23 +0000
treeherdermozilla-aurora@0931190cd725 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs
bugs1177360
milestone54.0a1
Bug 1177360 - Disable reader mode button for amazon.com, r=Gijs MozReview-Commit-ID: Cg9Gm4HCHbA
toolkit/components/reader/ReaderMode.jsm
--- a/toolkit/components/reader/ReaderMode.jsm
+++ b/toolkit/components/reader/ReaderMode.jsm
@@ -372,18 +372,19 @@ this.ReaderMode = {
   }),
 
   log(msg) {
     if (this.DEBUG)
       dump("Reader: " + msg);
   },
 
   _blockedHosts: [
+    "amazon.com",
+    "github.com",
     "mail.google.com",
-    "github.com",
     "pinterest.com",
     "reddit.com",
     "twitter.com",
     "youtube.com",
   ],
 
   _shouldCheckUri(uri, isBaseUri = false) {
     if (!(uri.schemeIs("http") || uri.schemeIs("https"))) {