Closed Bug 1308049 Opened 9 years ago Closed 3 years ago

"Go to Line..." does not work on view source after detach the view source tab

Categories

(Toolkit :: View Source, defect, P2)

41 Branch
x86
All
defect

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox49 --- wontfix
firefox50 --- affected
firefox51 --- affected
firefox52 --- wontfix

People

(Reporter: alice0775, Unassigned)

References

Details

To comparison between original page and page source, I detached the View Page Source tab. In this case, "Go to Line..." does not work. Steps to reproduce: 1. Open any web page 2. Open View Page Source (Ctrl+U) 3. Detach the View Page Source tab 4. Right click on the View Page Source tab and select "Go to Line..." Actual results; No thing Expected Results: "Enter line number" dialog should open
Blocks: 1067325
Keywords: regression
Hi Ryan, this appears to be a regression from your patch in bug 1067325. Can you please take a look?
Flags: needinfo?(jryans)
Version: Trunk → 41 Branch
Yes, it's true these features break down at the moment if you detach the tab. Since we've been shipping this mode for some time now, I don't think we should track this in the same way as a recent regression. It should be prioritized as we would any regular error or missing feature.
Flags: needinfo?(jryans)
Keywords: regression
OS: Windows 10 → All
Priority: -- → P2
See Also: → 1191033
Mass wontfix for bugs affecting firefox 52.
Moved to the backlog (P3) since nobody is working on it now. Honza
See Also: → 1552087

Is there any plan to actually fix this? This is making view-source pretty much completely unusable for me: I want to go to the line an error is on, but of course that does not work... I end up having to copy/paste things into an editor instead.

Flags: needinfo?(jryans)

Redirecting to Patrick... I am not very active in this component at the moment. Maybe it should have a new triage owner?

Flags: needinfo?(jryans) → needinfo?(pbrosset)

Honza does the triage for view source these days. So forwarding to him.
Honza, would you mind filing the bug to change the triage owner to you?

Flags: needinfo?(pbrosset) → needinfo?(odvarko)

(In reply to Patrick Brosset <:pbro> from comment #7)

Honza, would you mind filing the bug to change the triage owner to you?

Done

I'll keep NI to myself, to investigate this later.

Honza

I was debugging this quickly and the issue seems to be communication between the frame script and ViewSourceBrowser.

  1. Go to line menu action is implemented here:
    https://searchfox.org/mozilla-central/rev/3366c3d24f1c3818df37ec0818833bf085e41a53/toolkit/components/viewsource/content/viewSource-content.js#747

It's based on sending a message
sendAsyncMessage("ViewSource:PromptAndGoToLine");

  1. The message should be handled by ViewSourceBrowser here:
    https://searchfox.org/mozilla-central/rev/3366c3d24f1c3818df37ec0818833bf085e41a53/toolkit/components/viewsource/ViewSourceBrowser.jsm#113

But the handler is never executed.

I am setting P2, since this should be fixed and there are likely other messages not being handled properly.

Honza

Flags: needinfo?(odvarko)
Priority: P3 → P2

I can't reproduce this anymore. I got this pushlog with mozregression --arg=https://bugzilla.mozilla.org/show_bug.cgi?id=1308049 --good 2021-06-16 --bad 2019-08-15 --find-fix. I assume bug 1505915 fixed this. Honza, what do you think?

Flags: needinfo?(odvarko)

I can confirm, this works for me in Fx 103 (Nightly) as well as in Fx 101 (Release). Tested on Win10
Thank you for the ping, Gregory.
Closing

Status: NEW → RESOLVED
Closed: 3 years ago
Flags: needinfo?(odvarko)
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.