Closed Bug 1319009 Opened 8 years ago Closed 8 years ago

View Source shows a blank New Tab

Categories

(Toolkit :: View Source, defect)

52 Branch
x86_64
Windows 7
defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla53
Tracking Status
firefox50 --- unaffected
firefox51 --- unaffected
firefox52 --- verified
firefox53 --- verified

People

(Reporter: over68, Assigned: mak)

References

Details

(Keywords: regression)

Attachments

(1 file)

Steps to reproduce:

1. Go to https://bugzilla.mozilla.org/attachment.cgi?id=8803679.
2. Right-click, select "View Page Source".


Actual results:

A blank tab was opened.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(mak77)
Flags: needinfo?(dtownsend)
The changes to Places are unlikely to be related.
the problem is instead in the viewSource changes, more specifically

17:53:26.874 NS_ERROR_ILLEGAL_VALUE: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIDocShell.charset] 1 viewSource-content.js:294

in toolkit/components/viewsource/content/viewSource-content.js
previously we were setting forcedCharset to a shadowed variable, so we were basically never setting it.

Looks like a real bug that the eslinting uncovered.

we should use .forcedCharset (cause charset is legacy) and likely try/catch it
Flags: needinfo?(mak77)
Flags: needinfo?(dtownsend)
Comment on attachment 8812825 [details]
Bug 1319009 - View Source shows a blank New Tab with a forced charset.

https://reviewboard.mozilla.org/r/94412/#review94640

Yoink'ing review.

Looks good to me. Thanks mak!
Attachment #8812825 - Flags: review+
Comment on attachment 8812825 [details]
Bug 1319009 - View Source shows a blank New Tab with a forced charset.

https://reviewboard.mozilla.org/r/94412/#review94764
Attachment #8812825 - Flags: review?(dtownsend) → review+
Assignee: nobody → mak77
Pushed by mak77@bonardo.net:
https://hg.mozilla.org/integration/autoland/rev/42c3a09033f0
View Source shows a blank New Tab with a forced charset. r=mconley,mossop
Version: 53 Branch → 52 Branch
I tested this issue on windows 7 64 bits, I updated the flags because I couldn't reproduce it on the Firefox Nightly 50.0a1 and 52.0a1.
I can reproduce on Aurora52.0a2[1] and Nightly53.0a1[2].

[1]
https://hg.mozilla.org/releases/mozilla-aurora/rev/a99c9599b45835479e6e18da0614b0652d42435a
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0 ID:20161121004022

[2]
https://hg.mozilla.org/integration/mozilla-inbound/rev/a64eaf74ef8b7f201897dbd2c8f982d9a845b532
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:53.0) Gecko/20100101 Firefox/53.0 ID:20161121191250
Sorry Alice I only tested this on Nightly 52.0a1, to be sure I tested this on Aurora52.0a2 and I reproduce it also.
https://hg.mozilla.org/mozilla-central/rev/42c3a09033f0
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
Comment on attachment 8812825 [details]
Bug 1319009 - View Source shows a blank New Tab with a forced charset.

Approval Request Comment
[Feature/regressing bug #]: bug 1315951
[User impact if declined]: view source doesn't work on pages with a forced charset
[Describe test coverage new/current, TreeHerder]: nightly
[Risks and why]: no risk, just a try/catch
[String/UUID change made/needed]: none
Attachment #8812825 - Flags: approval-mozilla-aurora?
Tracking 53- since this is resolved fixed.
Comment on attachment 8812825 [details]
Bug 1319009 - View Source shows a blank New Tab with a forced charset.

fix view source regression in aurora52
Attachment #8812825 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
This is verified fixed on 52.0b8-build1 (20170220070057) & 53.0a2 (2017-02-21), using Windows 10 x64, macOS 10.12.3 and Ubuntu 16.04 x64.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: