Skip to content

[Bug] StaticTOC search function does not work on Edge or Firefox #10190

Open

Description

Describe the bug
I've made a documentation site using StaticTOC. The search function does not work at all on Edge (it just reloads the current page) and on Firefox it gets stuck on a loading wheel.

On Edge the console says: "SecurityError: failed to contruct 'Worker': Script at '...' cannot be accessed from origin 'null'

On Firefox I get the following:

Error occurred at search-worker. message: undefined docfx.js:169:17
    onerror docfx.js:169
    (Asíncrono: EventHandlerNonNull)
    webWorkerSearch docfx.js:168
    enableSearch docfx.js:134
    <anonymous> docfx.js:14
    jQuery 13
    O docfx.vendor.min.js:1
    <anonymous> docfx.vendor.js:7
    <anonymous> docfx.vendor.js:17

To Reproduce
Steps to reproduce the behavior:

  1. Open the generated doc site.
  2. Try to search for something.

Expected behavior
Show the sarch results.

Context (please complete the following information):

  • OS: Windows
  • Docfx version: 2.77.0

Additional context
This is a work laptop, so it's possible that some security restrictions imposed by IT are causing this problem.

I'm using the statictoc template, and am accessing the site through the file:// protocol.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugA bug to fixtemplateThe stock site template

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions