Open Bug 1385698 Opened 7 years ago Updated 2 years ago

Empty tab title when restoring text/plain tab with attachment

Categories

(Firefox :: Session Restore, defect, P3)

defect

Tracking

()

People

(Reporter: Oriol, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

1. Enable automatic session restore
2. Save this PHP file in a local web server:

    <?php
    if (empty($_GET['foo'])) {
      echo '<a href="?foo=true">Open this link in a new tab</a>';
    } else {
      header('Content-Disposition: attachment;filename=foo.txt');
      header('Content-Type: text/plain');
      echo 'Foo';
    }
    ?>

3. Load that file in Firefox
4. Open the link in a new tab (Ctrl+click or via context menu)
6. That new tab has a title
5. Open browser console and enter this code to restart Firefox:

    var a = Components.interfaces.nsIAppStartup;
    Components.classes["@mozilla.org/toolkit/app-startup;1"]
    .getService(a).quit(a.eRestart | a.eAttemptQuit);

Result: the tab has an empty title

This worked before bug 1360932. Between bug 1360932 and bug 1365933, Firefox was not able to restore the tabs. After bug 1365933 tabs are restore again but the title is empty.
Oriol, is this still happening for you?
Flags: needinfo?(oriol-bugzilla)
Priority: -- → P4
Attached image screencast.gif
Yes, this is still happening with latest nightly.

I usually get tabs with empty titles when I restore the session, not just when following the steps in comment 0, but that's a reliable way to reproduce it.

Not sure if it's related, the browser console shows

    Error: An unexpected error occurred (undefined)
Flags: needinfo?(oriol-bugzilla)
Priority: P4 → P2
Moving to p3 because no activity for at least 1 year(s).
See https://github.com/mozilla/bug-handling/blob/master/policy/triage-bugzilla.md#how-do-you-triage for more information
Priority: P2 → P3
Severity: normal → S3

The severity field for this bug is relatively low, S3. However, the bug has 18 votes.
:dao, could you consider increasing the bug severity?

For more information, please visit auto_nag documentation.

Flags: needinfo?(dao+bmo)

The last needinfo from me was triggered in error by recent activity on the bug. I'm clearing the needinfo since this is a very old bug and I don't know if it's still relevant.

Flags: needinfo?(dao+bmo)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: