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

Avoid setting incorrect document URLs, in IE 11, when the browser history is updated (PR 10423 follow-up) #10461

Merged
merged 1 commit into from
Jan 16, 2019

Conversation

Snuffleupagus
Copy link
Collaborator

Apparently in IE 11 when history.{pushState, replaceState} is called, there's actually a difference between not providing the third argument vs providing it set implicitly to undefined. It appears that in IE 11 it's actually being stringified, rather than ignored, which seems completely wrong (obviously other browsers aren't affected, so no surprises there).

This is yet another reason why I think the feature itself was a really bad idea, since it now requires extra/duplicated code just to prevent weird/incorrect URL behaviour in crappy browsers.

/cc @timvandermeij

…tory is updated (PR 10423 follow-up)

Apparently in IE 11 when `history.{pushState, replaceState}` is called, there's actually a difference between not providing the *third* argument vs providing it set implicitly to `undefined`. It appears that in IE 11 it's actually being stringified, rather than ignored, which seems completely wrong (obviously other browsers aren't affected, so no surprises there).

This is yet another reason why I think the feature itself was a really bad idea, since it now requires extra/duplicated code just to prevent weird/incorrect URL behaviour in crappy browsers.
@Snuffleupagus
Copy link
Collaborator Author

/botio-windows lint
/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

Command cmd_preview from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.67.70.0:8877/cfd76a112b01aca/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_lint from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.215.176.217:8877/933375e59a7cd8b/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/cfd76a112b01aca/output.txt

Total script time: 1.69 mins

Published

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

Full output at http://54.215.176.217:8877/933375e59a7cd8b/output.txt

Total script time: 2.43 mins

  • Lint: Passed

@timvandermeij timvandermeij merged commit 697b3d2 into mozilla:master Jan 16, 2019
@timvandermeij
Copy link
Contributor

IE strikes again... Unfortunate, but thanks for fixing this!

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

Successfully merging this pull request may close these issues.

3 participants