[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [Git][tpo/applications/tor-browser][base-browser-102.8.0esr-12.5-1] 2 commits: squash! Bug 31575: Disable Firefox Home (Activity Stream)



Title: GitLab

Richard Pospesel pushed to branch base-browser-102.8.0esr-12.5-1 at The Tor Project / Applications / Tor Browser

Commits:

  • 5f04090e
    by Pier Angelo Vendrame at 2023-02-15T14:46:07+00:00
    squash! Bug 31575: Disable Firefox Home (Activity Stream)
    
    Bug 41624: Disable about:pocket-* pages and about:firefoxview.
    
  • 783bcb8c
    by Pier Angelo Vendrame at 2023-02-15T14:46:28+00:00
    fixup! Bug 31740: Remove some unnecessary RemoteSettings instances
    
    Bug 41624: Disable the about:url-classifier page
    

6 changed files:

Changes:

  • browser/components/BrowserGlue.jsm
    ... ... @@ -237,26 +237,6 @@ let JSWINDOWACTORS = {
    237 237
         matches: ["about:plugins"],
    
    238 238
       },
    
    239 239
     
    
    240
    -  AboutPocket: {
    
    241
    -    parent: {
    
    242
    -      moduleURI: "resource:///actors/AboutPocketParent.jsm",
    
    243
    -    },
    
    244
    -    child: {
    
    245
    -      moduleURI: "resource:///actors/AboutPocketChild.jsm",
    
    246
    -
    
    247
    -      events: {
    
    248
    -        DOMDocElementInserted: { capture: true },
    
    249
    -      },
    
    250
    -    },
    
    251
    -
    
    252
    -    matches: [
    
    253
    -      "about:pocket-saved*",
    
    254
    -      "about:pocket-signup*",
    
    255
    -      "about:pocket-home*",
    
    256
    -      "about:pocket-style-guide*",
    
    257
    -    ],
    
    258
    -  },
    
    259
    -
    
    260 240
       AboutPrivateBrowsing: {
    
    261 241
         parent: {
    
    262 242
           moduleURI: "resource:///actors/AboutPrivateBrowsingParent.jsm",
    

  • browser/components/about/AboutRedirector.cpp
    ... ... @@ -70,9 +70,11 @@ static const RedirEntry kRedirMap[] = {
    70 70
              nsIAboutModule::URI_CAN_LOAD_IN_PRIVILEGEDABOUT_PROCESS |
    
    71 71
              nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT |
    
    72 72
              nsIAboutModule::IS_SECURE_CHROME_UI},
    
    73
    +#ifndef BASE_BROWSER
    
    73 74
         {"firefoxview", "chrome://browser/content/firefoxview.html",
    
    74 75
          nsIAboutModule::ALLOW_SCRIPT | nsIAboutModule::IS_SECURE_CHROME_UI |
    
    75 76
              nsIAboutModule::HIDE_FROM_ABOUTABOUT},
    
    77
    +#endif
    
    76 78
         {"policies", "chrome://browser/content/policies/aboutPolicies.html",
    
    77 79
          nsIAboutModule::ALLOW_SCRIPT | nsIAboutModule::IS_SECURE_CHROME_UI},
    
    78 80
         {"privatebrowsing", "chrome://browser/content/aboutPrivateBrowsing.html",
    
    ... ... @@ -106,6 +108,7 @@ static const RedirEntry kRedirMap[] = {
    106 108
              nsIAboutModule::URI_CAN_LOAD_IN_PRIVILEGEDABOUT_PROCESS |
    
    107 109
              nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT |
    
    108 110
              nsIAboutModule::ALLOW_SCRIPT},
    
    111
    +#ifndef BASE_BROWSER
    
    109 112
         {"pocket-saved", "chrome://pocket/content/panels/saved.html",
    
    110 113
          nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT |
    
    111 114
              nsIAboutModule::URI_CAN_LOAD_IN_CHILD | nsIAboutModule::ALLOW_SCRIPT |
    
    ... ... @@ -122,6 +125,7 @@ static const RedirEntry kRedirMap[] = {
    122 125
          nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT |
    
    123 126
              nsIAboutModule::URI_CAN_LOAD_IN_CHILD | nsIAboutModule::ALLOW_SCRIPT |
    
    124 127
              nsIAboutModule::HIDE_FROM_ABOUTABOUT},
    
    128
    +#endif
    
    125 129
         {"preferences", "chrome://browser/content/preferences/preferences.xhtml",
    
    126 130
          nsIAboutModule::ALLOW_SCRIPT | nsIAboutModule::IS_SECURE_CHROME_UI},
    
    127 131
         {"downloads",
    

  • browser/components/about/components.conf
    ... ... @@ -12,12 +12,7 @@ pages = [
    12 12
         'home',
    
    13 13
         'logins',
    
    14 14
         'loginsimportreport',
    
    15
    -    'firefoxview',
    
    16 15
         'newtab',
    
    17
    -    'pocket-home',
    
    18
    -    'pocket-saved',
    
    19
    -    'pocket-signup',
    
    20
    -    'pocket-style-guide',
    
    21 16
         'policies',
    
    22 17
         'preferences',
    
    23 18
         'privatebrowsing',
    

  • browser/components/moz.build
    ... ... @@ -42,7 +42,6 @@ DIRS += [
    42 42
         "newtab",
    
    43 43
         "originattributes",
    
    44 44
         "places",
    
    45
    -    "pocket",
    
    46 45
         "preferences",
    
    47 46
         "privatebrowsing",
    
    48 47
         "prompts",
    
    ... ... @@ -65,7 +64,6 @@ DIRS += ["build"]
    65 64
     if CONFIG["NIGHTLY_BUILD"]:
    
    66 65
         DIRS += [
    
    67 66
             "colorways",
    
    68
    -        "firefoxview",
    
    69 67
         ]
    
    70 68
     
    
    71 69
     
    

  • docshell/base/nsAboutRedirector.cpp
    ... ... @@ -165,8 +165,10 @@ static const RedirEntry kRedirMap[] = {
    165 165
     #endif
    
    166 166
         {"telemetry", "chrome://global/content/aboutTelemetry.xhtml",
    
    167 167
          nsIAboutModule::ALLOW_SCRIPT | nsIAboutModule::IS_SECURE_CHROME_UI},
    
    168
    +#ifndef BASE_BROWSER
    
    168 169
         {"url-classifier", "chrome://global/content/aboutUrlClassifier.xhtml",
    
    169 170
          nsIAboutModule::ALLOW_SCRIPT},
    
    171
    +#endif
    
    170 172
         {"webrtc", "chrome://global/content/aboutwebrtc/aboutWebrtc.html",
    
    171 173
          nsIAboutModule::ALLOW_SCRIPT},
    
    172 174
         {"crashparent", "about:blank", nsIAboutModule::HIDE_FROM_ABOUTABOUT},
    

  • toolkit/modules/RemotePageAccessManager.jsm
    ... ... @@ -98,29 +98,6 @@ let RemotePageAccessManager = {
    98 98
         "about:plugins": {
    
    99 99
           RPMSendQuery: ["RequestPlugins"],
    
    100 100
         },
    
    101
    -    "about:pocket-saved": {
    
    102
    -      RPMSendAsyncMessage: ["*"],
    
    103
    -      RPMAddMessageListener: ["*"],
    
    104
    -      RPMRemoveMessageListener: ["*"],
    
    105
    -      RPMGetStringPref: ["extensions.pocket.site"],
    
    106
    -    },
    
    107
    -    "about:pocket-signup": {
    
    108
    -      RPMSendAsyncMessage: ["*"],
    
    109
    -      RPMAddMessageListener: ["*"],
    
    110
    -      RPMRemoveMessageListener: ["*"],
    
    111
    -      RPMGetStringPref: ["extensions.pocket.site"],
    
    112
    -    },
    
    113
    -    "about:pocket-home": {
    
    114
    -      RPMSendAsyncMessage: ["*"],
    
    115
    -      RPMAddMessageListener: ["*"],
    
    116
    -      RPMRemoveMessageListener: ["*"],
    
    117
    -      RPMGetStringPref: ["extensions.pocket.site"],
    
    118
    -    },
    
    119
    -    "about:pocket-style-guide": {
    
    120
    -      RPMSendAsyncMessage: ["*"],
    
    121
    -      RPMAddMessageListener: ["*"],
    
    122
    -      RPMRemoveMessageListener: ["*"],
    
    123
    -    },
    
    124 101
         "about:privatebrowsing": {
    
    125 102
           RPMSendAsyncMessage: [
    
    126 103
             "OpenPrivateWindow",
    

  • _______________________________________________
    tor-commits mailing list
    tor-commits@xxxxxxxxxxxxxxxxxxxx
    https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits