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)
WebExtensions
General
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)
|
46 bytes,
text/x-phabricator-request
|
mixedpuppy
:
review+
|
Details | Review |
|
15.71 KB,
image/png
|
Details | |
|
16.98 KB,
image/png
|
Details | |
|
9.38 KB,
patch
|
lizzard
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
|
77.40 KB,
image/gif
|
Details |
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.
Comment 1•7 years ago
|
||
mozregression -g 61 -b 62 -e react_developer_tools-3.2.3-an+fx.xpi -a https://reactjs.org/
Gives me:
Pushlog:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=d6f131d9d8a00d576330ae7fee1ab662d6359574&tochange=331be24ce5e6fecb336729ba857cd2ffd5573970
So bug 1419893 looks like the culprit.
Blocks: 1419893
Flags: needinfo?(oriol-bugzilla)
| Assignee | ||
Comment 2•7 years ago
|
||
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)
Comment 3•7 years ago
|
||
[Tracking Requested - why for this release]:
Breaks web extension API. Affected extensions include React DevTools, used to debug the popular web framework React.
Status: ASSIGNED → NEW
status-firefox61:
--- → unaffected
status-firefox62:
--- → affected
status-firefox63:
--- → affected
status-firefox-esr52:
--- → unaffected
status-firefox-esr60:
--- → unaffected
tracking-firefox62:
--- → ?
tracking-firefox63:
--- → ?
| Comment hidden (typo) |
| Assignee | ||
Comment 5•7 years ago
|
||
Comment 6•7 years ago
|
||
I can reproduce exactly the same bug with a browser extension I'm developing. Like reported before, Firefox 61 and earlier are unaffected.
Comment 7•7 years ago
|
||
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+
Updated•7 years ago
|
Priority: -- → P1
Comment 8•7 years ago
|
||
Oriol, please request beta uplift on this.
| Assignee | ||
Updated•7 years ago
|
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
Comment 10•7 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
Comment 11•7 years ago
|
||
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
Comment 12•7 years ago
|
||
Comment 13•7 years ago
|
||
Comment 14•7 years ago
|
||
The latest Nightly seems to fix the issue for me as well.
Comment 15•7 years ago
|
||
Please nominate this for Beta approval when you get a chance.
| Assignee | ||
Comment 16•7 years ago
|
||
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 17•7 years ago
|
||
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+
Comment 18•7 years ago
|
||
| bugherder uplift | ||
Updated•7 years ago
|
Flags: qe-verify+
Comment 19•7 years ago
|
||
Verified as fixed in Firefox 62.0b19 (20180820213041)
I will attach a postfix video.
Comment 20•7 years ago
|
||
Updated•7 years ago
|
Updated•7 years ago
|
Flags: qe-verify+
You need to log in
before you can comment on or make changes to this bug.
Description
•