- URL is not a constructor

For support with specific websites

Moderator: trava90

Forum rules
Please always mention the name/domain of the website in question in your topic title.
Please one website per topic thread (to help keep things organized). While behavior on different sites might at first glance seem similar, they are not necessarily caused by the same.

Please try to include any relevant output from the Toolkit Error Console or the Developer Tools Web Console using the following procedure:
  1. Clear any current output
  2. Navigate or refresh the page in question
  3. Copy and paste Errors or seemingly relevant Warnings into a single [ code ] block.
Posts: 208
Joined: 2016-10-11, 11:36 - URL is not a constructor

Unread post by dapgo » 2024-04-02, 12:01

On PM 33.0.0 blank screen and error on console

Code: Select all

Error: TypeError: URL is not a constructor
Line: 2

TypeError: URL is not a constructor
	TypeError: URL is not a constructor

User avatar
Posts: 168
Joined: 2019-03-16, 13:26

Re: - URL is not a constructor

Unread post by adoxa » 2024-04-03, 02:37

Here's a Greasemonkey script to fix it.

Code: Select all

// ==UserScript==
// @name        webkitURL
// @namespace   adoxa
// @include*
// @version     1
// @grant       none
// @run-at      document-start
// ==/UserScript==
window.webkitURL = window.URL
However, I still can't start a spreadsheet, presumably because indexedDB still fails to open (no idea about that).

User avatar
Pale Moon guru
Pale Moon guru
Posts: 35602
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: - URL is not a constructor

Unread post by Moonchild » 2024-04-03, 12:39

Hm.. okay, I guess more Chrome being their immovable self having Gecko follow them.
Creating a window alias should be trivial (although I find window.URL() a bad idea, since it's once again something truly ambiguous)

Filed Issue #2495 (UXP)
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Post Reply