Closed Bug 1796972 Opened 2 years ago Closed 2 years ago

confirm stopped working in addons

Categories

(WebExtensions :: General, defect)

Firefox 107
defect

Tracking

(firefox-esr102 unaffected, firefox106 unaffected, firefox107+ verified, firefox108 verified)

VERIFIED FIXED
108 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox106 --- unaffected
firefox107 + verified
firefox108 --- verified

People

(Reporter: mprops, Assigned: emilio)

References

(Regression)

Details

(Keywords: regression)

Attachments

(4 files)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:107.0) Gecko/20100101 Firefox/107.0

Steps to reproduce:

confirm("Are you sure?") stopped working in both addons I tested.

Actual results:

It freezes as if the confirm is shown but nothing is shown.

Expected results:

The dialog should have appeared.

The Bugbug bot thinks this bug should belong to the 'Toolkit::Add-ons Manager' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Add-ons Manager
Product: Firefox → Toolkit

Can you provide an example extensions and exact steps to reproduce?

Flags: needinfo?(mprops)
Component: Add-ons Manager → General
Product: Toolkit → WebExtensions

It happens on this one for example: https://addons.mozilla.org/en-US/firefox/addon/grasshopper-urls/

The Clean button closes all non-pinned tabs. But clicking on it just freezes the UI.

It should show a confirm.

(It only shows the confirm when there are non-pinned tabs to close).

// Confirm tab close
App.confirm_tabs_close = function (tabs) {
  if (tabs.length === 0) {
    return
  }

  let num_tabs = 0

  for (let tab of tabs) {
    if (tab.url !== "about:newtab") {
      num_tabs += 1
    }
  }

  if (num_tabs > 0) {
    let s = App.plural(num_tabs, "tab", "tabs")

    if (confirm(`Close ${s}?`)) {
      for (let tab of tabs) {
        App.close_tab(tab)
      }
    }
  } else {
    for (let tab of tabs) {
      App.close_tab(tab)
    }
  }
}
Flags: needinfo?(mprops)

(It only shows the confirm when there are non-pinned tabs to close).

I mean it's supposed to show it. But it doesn't.

Hello,

I reproduced the issue on the latest Nightly (108.0a1/20221024212806) and Beta (107.0b4/20221023190001) under Windows 10 x64 and Ubuntu 16.04 LTS. The issue does not occur on the latest Release (106.0.1/20221019185550)

As described, when clicking the “Clean” button in the extension pop-up, the extension UI freezes and the confirmation prompt is not displayed.

Mozregression identified the regressor as https://bugzilla.mozilla.org/show_bug.cgi?id=1791972

2022-10-25T09:39:50.616000: DEBUG : Found commit message:
Bug 1791972 - Simplify dialog stack and rdm styles. r=Gijs,devtools-reviewers,jdescottes

Differential Revision: https://phabricator.services.mozilla.com/D157912

Pushlog: https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=407bcfc6b8e579e13b969fe742bd913b5e2657f6&tochange=fcfa744811794944c06c9e3890a4e17edf9d04bb

Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression
Regressed by: 1791972

Set release status flags based on info from the regressing bug 1791972

:emilio, since you are the author of the regressor, bug 1791972, could you take a look? Also, could you set the severity field?

For more information, please visit auto_nag documentation.

Flags: needinfo?(emilio)

The bug is marked as tracked for firefox107 (beta). However, the bug still isn't assigned.

:mixedpuppy, could you please find an assignee for this tracked bug? Given that it is a regression and we know the cause, we could also simply backout the regressor. If you disagree with the tracking decision, please talk with the release managers.

For more information, please visit auto_nag documentation.

Flags: needinfo?(mixedpuppy)
Flags: needinfo?(mixedpuppy)
Assignee: nobody → emilio
Flags: needinfo?(emilio)

This doesn't change behavior.

See Also: → 1797313
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7b4f5050dfff
Unify some extensions css. r=Gijs
https://hg.mozilla.org/integration/autoland/rev/822c98962397
Fix popup container for webextension popups. r=Gijs
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 108 Branch
Duplicate of this bug: 1797072

Verified as fixed on the latest Nightly (108.0a1/20221026034746) under Windows 10 x64 and Ubuntu 16.04 LTS.

When clicking the “Clean” button in the extension pop-up, the extension UI no longer freezes and the confirmation prompt is properly displayed, confirming the fix.

For further details, see the attached screenshot.

Status: RESOLVED → VERIFIED
Attached image 2022-10-26_14h25_00.png

The patch landed in nightly and beta is affected.
:emilio, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox107 to wontfix.

For more information, please visit auto_nag documentation.

Flags: needinfo?(emilio)

Comment on attachment 9300138 [details]
Bug 1796972 - Fix popup container for webextension popups. r=Gijs,dao

Beta/Release Uplift Approval Request

  • User impact if declined: comment 0
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: comment 13/14
  • List of other uplifts needed: none
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Relatively straight-forward cleanup+fix.
  • String changes made/needed: none
  • Is Android affected?: No
Flags: needinfo?(emilio)
Attachment #9300138 - Flags: approval-mozilla-beta?
Flags: qe-verify+

Comment on attachment 9300137 [details]
Bug 1796972 - Unify some extensions css. r=dao,Gijs

.

Attachment #9300137 - Flags: approval-mozilla-beta?

Comment on attachment 9300137 [details]
Bug 1796972 - Unify some extensions css. r=dao,Gijs

Approved for 107.0b6.

Attachment #9300137 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Comment on attachment 9300138 [details]
Bug 1796972 - Fix popup container for webextension popups. r=Gijs,dao

Approved for 107.0b6.

Attachment #9300138 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
QA Whiteboard: [qa-triaged]

Verified as fixed on the latest Beta (107.0b6/20221027185833). Tested on Windows 10 x64 and Ubuntu 16.04 LTS.

When clicking the “Clean” button in the extension pop-up, the extension UI does not freeze and the confirmation prompt is properly displayed, confirming the fix.

For further details, see the attached screenshot.

Flags: qe-verify+
Attached image 2022-10-28_08h58_04.png
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: