From cfd3bffd001d00f6818a38a3e5130bce4a1707ed Mon Sep 17 00:00:00 2001 From: Brian Clifton Date: Tue, 11 Sep 2018 11:29:35 -0700 Subject: [PATCH] First steps towards solving https://github.com/brave/brave-browser/issues/958 Stashing so I can check out another issue --- ...ettings-settings_ui-settings_ui.html.patch | 42 ++++++++++++++++ ...-settings-settings_ui-settings_ui.js.patch | 48 +++++++++++++++++++ 2 files changed, 90 insertions(+) create mode 100644 patches/chrome-browser-resources-settings-settings_ui-settings_ui.html.patch create mode 100644 patches/chrome-browser-resources-settings-settings_ui-settings_ui.js.patch diff --git a/patches/chrome-browser-resources-settings-settings_ui-settings_ui.html.patch b/patches/chrome-browser-resources-settings-settings_ui-settings_ui.html.patch new file mode 100644 index 000000000000..fbb3ab44deb9 --- /dev/null +++ b/patches/chrome-browser-resources-settings-settings_ui-settings_ui.html.patch @@ -0,0 +1,42 @@ +diff --git a/chrome/browser/resources/settings/settings_ui/settings_ui.html b/chrome/browser/resources/settings/settings_ui/settings_ui.html +index 88d91ba73e146bdefdb2c51b84f49ea4be934aad..f491000d6d9c72101b65e5e02a80a28fa2cfec0f 100644 +--- a/chrome/browser/resources/settings/settings_ui/settings_ui.html ++++ b/chrome/browser/resources/settings/settings_ui/settings_ui.html +@@ -61,24 +61,20 @@ + role="banner" + show-menu> + +- +-
+- +-
+-
+-
++
++ ++ + { +- this.$.drawerTemplate.if = true; +- }); ++ // listenOnce(this.$.drawer, 'open-changed', () => { ++ // this.$.drawerTemplate.if = true; ++ // }); + +- window.addEventListener('popstate', e => { +- this.$.drawer.closeDrawer(); +- }); ++ // window.addEventListener('popstate', e => { ++ // this.$.drawer.closeDrawer(); ++ // }); + + CrPolicyStrings = { + controlledSettingExtension: +@@ -273,16 +273,17 @@ Polymer({ + * @private + */ + onIronActivate_: function(event) { +- if (event.detail.item.id != 'advancedSubmenu') +- this.$.drawer.closeDrawer(); ++ // if (event.detail.item.id != 'advancedSubmenu') ++ // this.$.drawer.closeDrawer(); + }, + + /** @private */ +- onMenuButtonTap_: function() { +- this.$.drawer.toggle(); +- }, ++ // onMenuButtonTap_: function() { ++ // console.log('BSC]] LOL TOGGLING') ++ // this.$.drawer.toggle(); ++ // }, + +- /** @private */ ++ // /** @private */ + onMenuClosed_: function() { + // Add tab index so that the container can be focused. + this.$.container.setAttribute('tabindex', '-1');