Closed Bug 1483684 Opened 7 years ago Closed 7 years ago

setPopup regressed in 62, breaking react-devtools's popup

Categories

(WebExtensions :: General, defect, P1)

defect

Tracking

(firefox-esr52 unaffected, firefox-esr60 unaffected, firefox61 unaffected, firefox62+ verified, firefox63+ verified)

VERIFIED FIXED
mozilla63
Tracking Status
firefox-esr52 --- unaffected
firefox-esr60 --- unaffected
firefox61 --- unaffected
firefox62 + verified
firefox63 + verified

People

(Reporter: Harald, Assigned: Oriol)

References

()

Details

(Keywords: regression)

Attachments

(5 files)

STR: - Install https://addons.mozilla.org/en-US/firefox/addon/react-devtools/ - Open https://reactjs.org/ - Click the react toolbar icon ER: Toolbar icon changes and "react detected" popup is shown on click AR: Toolbar icon changes but the popup shows the no-react-detected version. This works in 61, but fails in 62 DevEdition and 63 Nightly. Filed also in react-devtools repo: https://github.com/facebook/react-devtools/issues/1082 This is where setPopup is called: https://github.com/facebook/react-devtools/blob/83adb171e700f43846f559f3e009acf99d6bba31/shells/webextension/src/background.js#L83 Some debugging shows that getPopup returns the correct new URL which does not seem to be applied though. Tested also without a `default_popup` set, which leads to never seeing any popup.
Blocks: 1419893
Flags: needinfo?(oriol-bugzilla)
Argh, there are some getProperty calls that I forgot to update when I changed that function. I'm surprised the tests didn't complain.
Assignee: nobody → oriol-bugzilla
Status: NEW → ASSIGNED
Flags: needinfo?(oriol-bugzilla)
[Tracking Requested - why for this release]: Breaks web extension API. Affected extensions include React DevTools, used to debug the popular web framework React.
I can reproduce exactly the same bug with a browser extension I'm developing. Like reported before, Firefox 61 and earlier are unaffected.
Comment on attachment 9001465 [details] Bug 1483684 - Fix browserAction ignoring tab-specific or window-specific popups and showing global one instead. r=mixedpuppy Shane Caraveo (:mixedpuppy) has approved the revision.
Attachment #9001465 - Flags: review+
Priority: -- → P1
Oriol, please request beta uplift on this.
Keywords: checkin-needed
Pushed by rvandermeulen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0e1d62e81cb1 Fix browserAction ignoring tab-specific or window-specific popups and showing global one instead. r=mixedpuppy
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
Verified using FF 62 and Nightly running under Windows 10 x64, the issue was not reproducible on the latest build of Nightly 63 (08/17/2018), it did reproduce on 62.
Status: RESOLVED → VERIFIED
Attached image 62.png
Attached image Latest Nightly.png
The latest Nightly seems to fix the issue for me as well.
Please nominate this for Beta approval when you get a chance.
Flags: needinfo?(oriol-bugzilla)
Attached patch beta.patchSplinter Review
The patch for mozilla-central doesn't apply cleanly to beta. I attach the patch for beta with the merge conflicts fixed. Approval Request Comment [Feature/Bug causing the regression]: bug 1419893 [User impact if declined]: clicking a browserAction to open its popup will ignore tab-specific and window-specific popup URLs and will load the globally defined one instead. [Is this code covered by automated tests?]: yes [Has the fix been verified in Nightly?]: yes (comment 11 and comment 14) [Needs manual test from QE? If yes, steps to reproduce]: see comment 0 [List of other uplifts needed for the feature/fix]: none [Is the change risky?]: not risky [Why is the change risky/not risky?]: in bug 1419893 I changed the signature of the getProperty function without realizing some calls were still using the previous one. This patch restores the original signature of getProperty and adds a getPropertyFromDetails function with the new signature. [String changes made/needed]: none
Flags: needinfo?(oriol-bugzilla)
Attachment #9001977 - Flags: approval-mozilla-beta?
Comment on attachment 9001977 [details] [diff] [review] beta.patch Fix for a new regression in 62, has verification from users in nightly, adds tests. Let's uplift for beta 19.
Attachment #9001977 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Flags: qe-verify+
Verified as fixed in Firefox 62.0b19 (20180820213041) I will attach a postfix video.
Attached image Postfix Video FF62
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: