Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
carllacan opened this issue Sep 5, 2024 · 2 comments
Open

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

carllacan opened this issue Sep 5, 2024 · 2 comments
Labels
bug A bug to fix

Comments

@carllacan
Copy link

carllacan commented Sep 5, 2024

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.

@carllacan carllacan added the bug A bug to fix label Sep 5, 2024
@filzrev
Copy link
Contributor

filzrev commented Sep 5, 2024

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.

Are you opening generated HTML file with file:/// protocol ?

As far as I knows. Search functionality is not works when using statictoc template and directory open HTML file without web site hosting.

See: #9188

@carllacan
Copy link
Author

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.

Are you opening generated HTML file with file:/// protocol ?

As far as I knows. Search functionality is not works when using statictoc template and directory open HTML file without web site hosting.

See: #9188

I see. Then what is the point of the "static" template, if the static sites it produces do not fully work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug to fix
Projects
None yet
Development

No branches or pull requests

2 participants