Skip to content

Commit 42acdc9

Browse files
committed
Backed out 3 changesets (bug 1852340) for causing failures due to reportBrokenSite.ftl. CLOSED TREE
Backed out changeset 86f9e01f70d6 (bug 1852340) Backed out changeset 0049d0494b17 (bug 1852340) Backed out changeset 7851355d5c95 (bug 1852340)
1 parent a8663ee commit 42acdc9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+905
-3910
lines changed

browser/app/profile/firefox.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2900,21 +2900,6 @@ pref("cookiebanners.ui.desktop.cfrVariant", 0);
29002900
pref("dom.security.credentialmanagement.identity.enabled", true);
29012901
#endif
29022902

2903-
#if defined(NIGHTLY_BUILD)
2904-
pref("ui.new-webcompat-reporter.enabled", true);
2905-
#else
2906-
pref("ui.new-webcompat-reporter.enabled", false);
2907-
#endif
2908-
2909-
#if defined(EARLY_BETA_OR_EARLIER)
2910-
pref("ui.new-webcompat-reporter.send-more-info-link", true);
2911-
#else
2912-
pref("ui.new-webcompat-reporter.send-more-info-link", false);
2913-
#endif
2914-
2915-
# 0 = disabled, 1 = reason optional, 2 = reason required.
2916-
pref("ui.new-webcompat-reporter.reason-dropdown", 0);
2917-
29182903
// Reset Private Browsing Session feature
29192904
#if defined(NIGHTLY_BUILD)
29202905
pref("browser.privatebrowsing.resetPBM.enabled", true);

browser/base/content/appmenu-viewcache.inc.xhtml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,6 @@
146146
data-l10n-id="appmenuitem-more-tools"
147147
closemenu="none"
148148
oncommand="PanelUI.showMoreToolsPanel(this);"/>
149-
<toolbarbutton id="appMenu-report-broken-site-button"
150-
class="subviewbutton subviewbutton-nav"
151-
data-l10n-id="appmenuitem-report-broken-site"
152-
closemenu="none"
153-
command="cmd_reportBrokenSite"/>
154149
<toolbarbutton id="appMenu-help-button2"
155150
class="subviewbutton subviewbutton-nav"
156151
data-l10n-id="appmenuitem-help"

browser/base/content/browser-menubar.inc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -472,10 +472,6 @@
472472
#else
473473
/>
474474
#endif
475-
<menuitem id="help_reportBrokenSite"
476-
command="cmd_reportBrokenSite"
477-
data-l10n-id="menu-report-broken-site"
478-
appmenu-data-l10n-id="menu-report-broken-site"/>
479475
<menuitem id="feedbackPage"
480476
oncommand="openFeedbackPage()"
481477
data-l10n-id="menu-help-share-ideas"

browser/base/content/browser-sets.inc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
#ifdef XP_MACOSX
5252
<command id="cmd_findSelection" oncommand="gLazyFindCommand('onFindSelectionCommand')"/>
5353
#endif
54-
<command id="cmd_reportBrokenSite" oncommand="ReportBrokenSite.open(event);"/>
5554
<command id="cmd_translate" oncommand="TranslationsPanel.open(event);"/>
5655
<!-- work-around bug 392512 -->
5756
<command id="Browser:AddBookmarkAs"

browser/base/content/browser.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ ChromeUtils.defineESModuleGetters(this, {
6565
PromptUtils: "resource://gre/modules/PromptUtils.sys.mjs",
6666
ReaderMode: "resource://gre/modules/ReaderMode.sys.mjs",
6767
ResetPBMPanel: "resource:///modules/ResetPBMPanel.sys.mjs",
68-
ReportBrokenSite: "resource:///modules/ReportBrokenSite.sys.mjs",
6968
SafeBrowsing: "resource://gre/modules/SafeBrowsing.sys.mjs",
7069
Sanitizer: "resource:///modules/Sanitizer.sys.mjs",
7170
SaveToPocket: "chrome://pocket/content/SaveToPocket.sys.mjs",
@@ -1880,7 +1879,6 @@ var gBrowserInit = {
18801879
// apply full zoom settings to tabs restored by the session restore service.
18811880
FullZoom.init();
18821881
PanelUI.init(shouldSuppressPopupNotifications);
1883-
ReportBrokenSite.init(gBrowser);
18841882

18851883
UpdateUrlbarSearchSplitterState();
18861884

browser/base/content/browser.xhtml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@
7878
<link rel="localization" href="browser/panelUI.ftl"/>
7979
<link rel="localization" href="browser/places.ftl"/>
8080
<link rel="localization" href="browser/protectionsPanel.ftl"/>
81-
<link rel="localization" href="browser/reportBrokenSite.ftl"/>
8281
<link rel="localization" href="browser/screenshots.ftl"/>
8382
<link rel="localization" href="browser/search.ftl"/>
8483
<link rel="localization" href="browser/sidebarMenu.ftl"/>

browser/base/content/macWindow.inc.xhtml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
<html:link rel="localization" href="browser/browserSets.ftl"/>
1515
<html:link rel="localization" href="browser/firefoxView.ftl"/>
1616
<html:link rel="localization" href="browser/menubar.ftl"/>
17-
<html:link rel="localization" href="browser/reportBrokenSite.ftl"/>
1817
<html:link rel="localization" href="browser/screenshots.ftl"/>
1918
<html:link rel="localization" href="toolkit/branding/accounts.ftl"/>
2019
<html:link rel="localization" href="toolkit/branding/brandings.ftl"/>

browser/base/content/main-popupset.inc.xhtml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,6 @@
500500
#include ../../components/controlcenter/content/protectionsPanel.inc.xhtml
501501
#include ../../components/downloads/content/downloadsPanel.inc.xhtml
502502
#include ../../components/translations/content/translationsPanel.inc.xhtml
503-
#include ../../components/reportbrokensite/content/reportBrokenSitePanel.inc.xhtml
504503
#include browser-allTabsMenu.inc.xhtml
505504

506505
<tooltip id="dynamic-shortcut-tooltip"

browser/base/content/utilityOverlay.js

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ ChromeUtils.defineESModuleGetters(this, {
2020
ExtensionSettingsStore:
2121
"resource://gre/modules/ExtensionSettingsStore.sys.mjs",
2222
PrivateBrowsingUtils: "resource://gre/modules/PrivateBrowsingUtils.sys.mjs",
23-
ReportBrokenSite: "resource:///modules/ReportBrokenSite.sys.mjs",
2423
ShellService: "resource:///modules/ShellService.sys.mjs",
2524
URILoadingHelper: "resource:///modules/URILoadingHelper.sys.mjs",
2625
});
@@ -541,6 +540,30 @@ function buildHelpMenu() {
541540
gSafeBrowsing.setReportPhishingMenu();
542541
}
543542

543+
// We're testing to see if the WebCompat team's "Report Site Issue"
544+
// access point makes sense in the Help menu. Normally checking this
545+
// pref wouldn't be enough, since there's also the case that the
546+
// add-on has somehow been disabled by the user or third-party software
547+
// without flipping the pref. Since this add-on is only used on pre-release
548+
// channels, and since the jury is still out on whether or not the Help menu
549+
// is the right place for this item, we're going to do a least-effort
550+
// approach here and assume that the pref is enough to determine whether the
551+
// menuitem should appear.
552+
//
553+
// See bug 1690573 for further details.
554+
let reportSiteIssueEnabled = Services.prefs.getBoolPref(
555+
"extensions.webcompat-reporter.enabled",
556+
false
557+
);
558+
let reportSiteIssue = document.getElementById("help_reportSiteIssue");
559+
reportSiteIssue.hidden = !reportSiteIssueEnabled;
560+
if (reportSiteIssueEnabled) {
561+
let uri = gBrowser.currentURI;
562+
let isReportablePage =
563+
uri && (uri.schemeIs("http") || uri.schemeIs("https"));
564+
reportSiteIssue.disabled = !isReportablePage;
565+
}
566+
544567
if (NimbusFeatures.deviceMigration.getVariable("helpMenuHidden")) {
545568
let helpMenuItem = document.getElementById("helpSwitchDevice");
546569
helpMenuItem.hidden = true;

browser/components/controlcenter/content/protectionsPanel.inc.xhtml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
role="alertdialog"
1010
noautofocus="true"
1111
aria-labelledby="protections-popup-main-header-label"
12-
onpopupshown="gProtectionsHandler.onPopupShown(event);ReportBrokenSite.updateParentMenu(event)"
12+
onpopupshown="gProtectionsHandler.onPopupShown(event);"
1313
onpopuphidden="gProtectionsHandler.onPopupHidden(event);"
1414
orient="vertical">
1515

@@ -63,13 +63,6 @@
6363
</hbox>
6464
</vbox>
6565

66-
<toolbarseparator observes="cmd_reportBrokenSite"></toolbarseparator>
67-
<toolbarbutton id="protections-popup-report-broken-site-button"
68-
command="cmd_reportBrokenSite"
69-
class="subviewbutton subviewbutton-nav"
70-
data-l10n-id="protections-panel-report-broken-site"
71-
closemenu="none"/>
72-
7366
<!-- Tracking Protection Section -->
7467
<toolbarseparator></toolbarseparator>
7568
<vbox id="tracking-protection-container" class="protections-popup-section">

browser/components/moz.build

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ DIRS += [
5151
"prompts",
5252
"protections",
5353
"protocolhandler",
54-
"reportbrokensite",
5554
"resistfingerprinting",
5655
"screenshots",
5756
"search",

0 commit comments

Comments
 (0)