question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error using URL object in safari

See original GitHub issue

Configuration:

  • Web browser and its version: Safari Version 10.1.1 (12603.2.4)
  • Operating system and its version: macOS Sierra Version 10.12.5
  • PDF.js version: 1.8.593
  • Is an extension: No

Steps to reproduce the problem:

  1. Include pdf.js on any html file and load that file
  2. Open developer console and paste the following code: new URL(location).searchParams.get('param')

What is the expected behavior? The browser should check if the provided URL has the specified parameter (screenshot from Google Chrome). screen shot 2017-07-31 at 12 44 03

What went wrong? On safari, it changes the URL and redirects it, breaking the page. screen shot 2017-07-31 at 12 44 40

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, Oct 3, 2017

I’m a student at Seneca college learning open source, and I was hoping to work on this bug for my course. If no one else is currently working on it, I’d like to give it a try 😃

0reactions
timvandermeijcommented, Jul 8, 2018

Fixed by #9868.

Read more comments on GitHub >

github_iconTop Results From Across the Web

createObjectURL: Type Error in Safari when using Blob
Looking at the document of video.js-record, player.recordedData is not a Blob (what you would need to pass to createObjectUrl ) but an array ......
Read more >
URL Loading System Error Codes - Apple Developer
Error codes returned by URL loading APIs. ... The URL Loading System received bad data from the server. NSURLErrorBadURL. A malformed URL prevented...
Read more >
URL() - Web APIs - MDN Web Docs - Mozilla
The URL() constructor returns a newly created URL object representing the URL defined by the parameters.
Read more >
Safari cannot open the page - The error was, "The URL can't ...
CSShared Object is one which has a custom object · data. · DEEPLINKDOMAIN is the domain of deeplink Domain generate by fire base...
Read more >
On iPad Safari Dev Tool Getting Error "Refused to execute ...
NOTE: if the URL is pointing to a resource on your org use a relative ... Open a record of the same object...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found