Skip to content

Failed to add csv crate #219

Closed
Closed
@senden9

Description

@senden9

Hi!

I am using Firefox 107.0 with the latest search extension from the app store (1.9.1).

I can not add https://docs.rs/csv/latest/csv/ to my crate-list. The button is visible but not working:
image
Other crates like tokio can be added from the docs.rs page.

Here is the JS-log when loading the site and before clicking anything else:

Uncaught TypeError: crateSearchDropDown is null
    setupSearchLoader https://docs.rs/main-20210305-1.52.0-nightly-51748a8fc.js:8
    <anonymous> https://docs.rs/main-20210305-1.52.0-nightly-51748a8fc.js:8
    <anonymous> https://docs.rs/main-20210305-1.52.0-nightly-51748a8fc.js:8
[main-20210305-1.52.0-nightly-51748a8fc.js:8:1189](https://docs.rs/main-20210305-1.52.0-nightly-51748a8fc.js)
Content Security Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). moz-extension:1:149696

Here is the additional stuff that is coming to the log when clicking the "+ to Rust Serach Extension"-Button from the screenshot:

No search index found, start loading... [add-search-index.js:55:17](moz-extension://59e18a2f-d942-4fab-8ce2-7869759b1d07/script/add-search-index.js)
The script from “https://docs.rs/csv/1.1.6/csv/?search=search-indexnull.js” was loaded even though its MIME type (“text/html”) is not a valid JavaScript MIME type.
[csv](https://docs.rs/csv/latest/csv/)
Uncaught SyntaxError: expected expression, got '<'
[search-indexnull.js:1](https://docs.rs/csv/latest/search-indexnull.js)
Send search index success. [add-search-index.js:46:17](moz-extension://59e18a2f-d942-4fab-8ce2-7869759b1d07/script/add-search-index.js)
TypeError: right-hand side of 'in' should be an object, got undefined
[crate-manager.js:11:13](moz-extension://59e18a2f-d942-4fab-8ce2-7869759b1d07/crate-manager.js)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions