Closed Bug 1455276 Opened 6 years ago Closed 6 years ago

Pass an `openLink` prop to Reps

Categories

(DevTools :: Accessibility Tools, defect)

defect
Not set
normal

Tracking

(firefox61 verified, firefox62 verified)

VERIFIED FIXED
Firefox 62
Tracking Status
firefox61 --- verified
firefox62 --- verified

People

(Reporter: nchevobbe, Assigned: yzen)

References

Details

Attachments

(1 file, 1 obsolete file)

The panel uses Reps, which automatically "linkify" links in strings.
But in order to be handled, we need to pass an `openLink` prop to Rep so it can actually open the link in a new tab (see https://searchfox.org/mozilla-central/source/devtools/client/webconsole/utils/object-inspector.js#67)
Blocks: 1151468
Attached patch 1455276 patch (obsolete) — Splinter Review
Attachment #8981473 - Flags: review?(nchevobbe)
Assignee: nobody → yzenevich
Status: NEW → ASSIGNED
Comment on attachment 8981473 [details] [diff] [review]
1455276 patch

Review of attachment 8981473 [details] [diff] [review]:
-----------------------------------------------------------------

This looks good to me, thanks yura.
It would be nice to have a test to make sure it works as intended.
Also, we could handle Ctrl/Cmd + click to open tab in the background (see https://searchfox.org/mozilla-central/rev/5a744713370ec47969595e369fd5125f123e6d24/devtools/client/webconsole/hudservice.js#367-371)
Attachment #8981473 - Flags: review?(nchevobbe) → review+
Pushed by yura.zenevich@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/9b53708a3203
ensure links in strings can open in Accessible properties. r=nchevobbe
https://hg.mozilla.org/mozilla-central/rev/9b53708a3203
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 62
Carry over
Attachment #8981473 - Attachment is obsolete: true
Attachment #8982210 - Flags: review+
Comment on attachment 8982210 [details] [diff] [review]
1455276 updated patch

[Feature/Bug causing the regression]: Not a regression, supports a11y inspector deliverable for Fx61
[User impact if declined]: Users won't be able to click links (and navigate to URLS) that are rendered in a11y inspector sidebar.
[Is this code covered by automated tests?]: Yes
[Has the fix been verified in Nightly?]: Yes
[Needs manual test from QE? If yes, steps to reproduce]: No
[List of other uplifts needed for the feature/fix]: N/A
[Is the change risky?]: No
[Why is the change risky/not risky?]: Only adds ability to click on links in a11y inspector sidebar by using existing functionality in Reps.js. Also covered by tests.
[String changes made/needed]: None
Attachment #8982210 - Flags: approval-mozilla-beta?
Flags: qe-verify+
Comment on attachment 8982210 [details] [diff] [review]
1455276 updated patch

a11y inspector improvement. Approved for 61.0b11.
Attachment #8982210 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
This issue is verified fixed using Firefox 62.0a1 (BuildId:20180604100129) and Firefox 61.0b11 (BuildId:20180604143143) on Windows 10 64bit, macOS 10.11.6 and Ubuntu 16.04 64bit.
Status: RESOLVED → VERIFIED
Flags: qe-verify+
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: