Skip to content

rustdoc JS does not handle NO_DEVICE_SPACE error #81928

Closed
@lovasoa

Description

@lovasoa

Problem

No documented item appear in documentation pages anywhere after a localStorage error.

image

(the page should render like that instead)

After localStorage raises a NS_ERROR_FILE_NO_DEVICE_SPACE error, all documentation page appear entirely blank. Freeing up space doesn't solve the isssue.

The following appears in the browser console :

Uncaught 
Exception
​
columnNumber: 0
​
data: null
​
filename: "https://docs.rs/storage-20210124-1.51.0-nightly-1d0d76f8d.js"
​
lineNumber: 1
​
message: ""
​
name: "NS_ERROR_FILE_NO_DEVICE_SPACE"
​
result: 2152857616
​
stack: "getCurrentValue@https://docs.rs/storage-20210124-1.51.0-nightly-1d0d76f8d.js:1:1802\ngetSettingValue@https://docs.rs/storage-20210124-1.51.0-nightly-1d0d76f8d.js:1:490\n@https://docs.rs/storage-20210124-1.51.0-nightly-1d0d76f8d.js:1:711\n"
​
<prototype>: ExceptionPrototype { toString: toString(), name: Getter, message: Getter, … }
storage-20210124-1.51.0-nightly-1d0d76f8d.js:1
    getCurrentValue https://docs.rs/storage-20210124-1.51.0-nightly-1d0d76f8d.js:1
    getSettingValue https://docs.rs/storage-20210124-1.51.0-nightly-1d0d76f8d.js:1
    <anonymous> https://docs.rs/storage-20210124-1.51.0-nightly-1d0d76f8d.js:1

Steps

  1. Fill the disk firefox uses for localStorage
  2. open any documentation page on docs.rs : the documentation doesn't appear
  3. Free up space
  4. open any documentation page on docs.rs : the documentation still doesn't appear

Possible Solution(s)

Opening the docs in a private browsing window works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions