Skip to content

Conversation

@ycw
Copy link
Contributor

@ycw ycw commented May 10, 2023

this PR 1) cleanup, 2) ensures that not listen domcontentloaded if location.replace() get called, in order to tackle the annoying error message when redirection takes place, e.g. landing on pages suggested by duckduckgo

ddg

ff console (or other browsers w/ persistent log):

err

@Mugen87
Copy link
Collaborator

Mugen87 commented May 11, 2023

Can you provide a URL that triggers the error message in the browser console?

@ycw
Copy link
Contributor Author

ycw commented May 11, 2023

@Mugen87
Copy link
Collaborator

Mugen87 commented May 11, 2023

This URL does not produce an error in the browser console. At least with latest Chrome. Do I miss something?

@ycw
Copy link
Contributor Author

ycw commented May 12, 2023

This URL does not produce an error in the browser console. At least with latest Chrome. Do I miss something?

the spec did not elaborate about this, so its up to browsers. 🔥🦊<try

Copy link
Collaborator

@Mugen87 Mugen87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, thanks! Indeed, I see the error with Firefox on macOS. Chrome and Safari are fine. It also seems it is some sort of timing issue. When I debug the code in FF, no runtime error happens.

But in any event, the PR fixes the issue and also performs a nice clean up 👍 .

@Mugen87 Mugen87 changed the title page.js: fixed page redirection Docs: Fix redirect exception in Firefox. May 12, 2023
@Mugen87 Mugen87 added this to the r153 milestone May 12, 2023
@Mugen87 Mugen87 merged commit c50260e into mrdoob:dev May 13, 2023
@ycw ycw deleted the page-redir branch May 13, 2023 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants