mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-13 11:38:16 +00:00
Bug 1927220 - Remove broken check for insert location in _initStripOnShare in UrlbarInput. r=urlbar-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D227480
This commit is contained in:
parent
2fc044c8db
commit
9ecaa63c12
@ -3551,11 +3551,6 @@ export class UrlbarInput {
|
||||
_initStripOnShare() {
|
||||
let contextMenu = this.querySelector("moz-input-box").menupopup;
|
||||
let insertLocation = this.#findMenuItemLocation("cmd_copy");
|
||||
// FIXME(bug 1927220): This check is wrong, !getAttribute() is a
|
||||
// boolean.
|
||||
if (!insertLocation.getAttribute("cmd") == "cmd_copy") {
|
||||
return;
|
||||
}
|
||||
// set up the menu item
|
||||
let stripOnShare = this.document.createXULElement("menuitem");
|
||||
this.document.l10n.setAttributes(
|
||||
|
Loading…
x
Reference in New Issue
Block a user