Showing questions tagged: Show all questions

Open the payload of a HTTP error

I'm a software developer working on backend services, always juggling between Firefox and Chrome (because none of them fully satisfy my needs). What I need from them is t… (read more)

I'm a software developer working on backend services, always juggling between Firefox and Chrome (because none of them fully satisfy my needs). What I need from them is to behave the way it will be most practical for me, which isn't necessarily aligned with the majority of users.

My current problem is this. I work with APIs which in my daily work often return various HTTP errors. These errors also contain a payload which describes the problem in detail. I want to be able to see this payload easily in the browser. Yes, I can use other tools like Postman for this (which I do), but for simple GET requests without special request headers it would be much more practical to just use a browser.

Currently, when my API opens an error (for example a 400 Bad Request), Firefox decides to just silently go back into the previous page (undos the URL change). If I open the Network tab in the Web Developer view, I can however see the failing response with all of its details. Still, this is too impractical for me.

BTW, the response contains a custom Content-Type which isn't recognized by Firefox by default. But Firefox isn't downloading the payload as a file (like it would usually do for a successful page load of an unknown Content-Type), it just silently doesn't do anything. I've installed an extension to handle my custom Content-Types (called "Open in Browser"), but since Firefox isn't attempting to open this one, I can't use it in this case.

So, how can I force Firefox to stay on that URL and show the response payload in the window? If not in vanilla Firefox, any plugins? I've already kind of spent too much time on this for my liking. :/

Asked by marko.vodanovic 1 day ago

Last reply by AKASH kUMAR 1 day ago

Server Authentication popup

Hey, i can't get authentication popup in this case: Server A Server B 1 site on server A My site is using some files from server B, but server B has password protection a… (read more)

Hey, i can't get authentication popup in this case: Server A Server B 1 site on server A My site is using some files from server B, but server B has password protection access like in .htaccess Problem that i don't get popup required to enter log/pass for server B when i load site from server A to get those files loaded on page. If i go directly to server B and open some page from it i see popup. Also i see popup in Chrome or IE when i'm opening site from server A, but not in firefox. I tried to set different config settings in Firefox but no luck.

Firefox 77.0 (64-bit) macOS Catalina 10.15.4

Asked by vld53 2 days ago

Last reply by McCoy 2 days ago

SSL problem with Firefox; no problem with Safari or Chrome

I have a website development system with SSL enabled for testing. The certificate is self-signed but expired. I added a new self-signed certificate. When I load a develop… (read more)

I have a website development system with SSL enabled for testing. The certificate is self-signed but expired. I added a new self-signed certificate. When I load a development website, Firefox issues a Warning: Potential Security Risk Ahead. When I click Advanced, the error is SSL_ERROR_BAD_CERT_DOMAIN, with additional information that the certificate has expired. Clicking Accept Risk and Continue loads an ISP website with network details of attached devices. I have repeatedly cleared Firefox cached and saved data by clearing recent history, followed by clearing everything for all the check boxes on the page. I have examined the certificates in the security settings, view certificates. The expired certificate is listed. After deleting the expired certificate from the list, and loading the development website again, results in the same problem all over again.

I have no problem with Safari or Chrome browsers, only Firefox. Firefox 76.0.1, Mac OS 10.14.6. MAMP based development system, version 5.7 using Apache.

How can I delete the expired certificate so it stays deleted, and make Firefox use the new certificate?

Asked by daphilli 2 weeks ago

Trying to start several firefox instances

I am writing a C program, which needs to start several firefox windows. The problem is: I need to kill them later, so I need the process id. So I started each of them (vi… (read more)

I am writing a C program, which needs to start several firefox windows. The problem is: I need to kill them later, so I need the process id. So I started each of them (via fork and exec) with the argument "-new-instance", but get the error "Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system." when a firefox process was already running (because there is just one allowed, I guess).

Is there a way to fix this problem, or at least get the pid of the process firefox connects to if i don't start it with "-new-instance"? By the way: It just has to work on one computer, so I can adjust settings etc. System: Arch Linux (Manjaro)

Thanks for your help

Asked by Sprinklerkopf 1 month ago

Last reply by andmagdo 2 weeks ago

Why does Firefox block loading of a resource at inline (“script-src”).

I have content security policy headers defined for my site. However, I have nothing defined for script-src. When I load a certain page from my site in Firefox 76.0 I see … (read more)

I have content security policy headers defined for my site. However, I have nothing defined for script-src. When I load a certain page from my site in Firefox 76.0 I see the following messages in the console:

Content Security Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). 8 utils.js:35:9 Content Security Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). 2 gps.js:231:11 Content Security Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). 4 utils.js:35:9 Content Security Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). gps.js:231:11 Content Security Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). 3 utils.js:35:9

When I load the same page in Chromium, I see no such messages in the console.

Furthermore, there are no utils.js and gps.js scripts in the source of the loaded page. Finally, I see no problems with the display or the functionality of the page. Clearing all the cookies and the caches (local and server) has no impact on this issue. There are many other javascripts on the page, both inline and not, which do not appear to be affected but the existing settings.

So, my questions: 1) Why do these messages appear? 2) Is this an issue that I need to fix or can I safely ignore it? 3) what do the numbers after the script names mean? (gps.js:231:11 utils.js:35:9)

Asked by Ambyo 3 weeks ago

Firefox 76 doesn't always resend the POST request body after Kerberos authentication

I develop for an intranet application at work. It is based on ASP.NET Webforms. The production servers have IIS 7 with persistent authentication disabled (Persist-Auth: f… (read more)

I develop for an intranet application at work. It is based on ASP.NET Webforms. The production servers have IIS 7 with persistent authentication disabled (Persist-Auth: false), which means that the browser should re-authenticate on every request. For a POST request (full PostBack) with a large enough body, Firefox does not resend the request body anymore as of Firefox 76 (worked with previous versions). I have verified this in Fiddler. Other browsers do not have this issue. This breaks the website because the ViewState is not being sent.

Expected compliant behavior (Chrome does it like this):

  1. Browser sends the request (without authorization header)
  2. Server responds with 401
  3. Browser resends the same complete request, with authorization header
  4. Server responds with 200 + content

Incorrect behaviour in Firefox 76:

  1. Browser sends the request (without authorization header)
  2. Server responds with 401
  3. Browser resends the request with an empty body, with authorization header
  4. Server waits for the body but does not receive it, and the request gets cancelled after 2 minutes. Eventually, the browser displays a 401 Not Authorized error, but with Fiddler running I can see a 408 error with the text: "The request body did not contain the specified number of bytes. Got 0, expected xxx."

Just for fun, this is the non-compliant behavior in IE11 that actually works, unlike Firefox:

  1. Browser sends the request with the authorization header from the previous GET request
  2. Server responds with 200 + content

Asked by OronDF343 1 month ago

Last reply by Roland Tanglao 1 month ago

I'm developing website. In css media query @media (pointer: coarse) is true. But I'm working on laptop without touchscreen. Why? Is there is any workaround?

I'm developing website. In css media query @media (pointer: coarse) is true and @media (pointer: fine) is false. But I'm working on laptop without touchscreen. In attach… (read more)

I'm developing website. In css media query @media (pointer: coarse) is true and @media (pointer: fine) is false. But I'm working on laptop without touchscreen. In attachment there is screenshot from https://developer.mozilla.org/en-US/docs/Web/CSS/@media/pointer It shows what I'm talking about. Only Firefox has this behavior. Ie11, Edge, Chrome working as expected (css media query @media (pointer: coarse) is false and @media (pointer: fine) is true).

So question, why FF behaves this way? is it a bug? Is there is any workaround for Firefox?

Asked by cjorange 1 month ago

Why is Firefox caching my site?

Hello, I have deployed a new version of my site (internal, sorry) and Firefox keeps caching it although I don't see the reason for it. This is the info about it in 'about… (read more)

Hello, I have deployed a new version of my site (internal, sorry) and Firefox keeps caching it although I don't see the reason for it.

This is the info about it in 'about:cache' (I deployed a new version at 10:20):

key: https://[URL-OF-THE-SITE]/ fetch count: 6 last fetched: 2020-05-05 10:17:05 last modified: 2020-05-05 10:23:31 expires: 2020-05-05 11:04:08 Data size: 5758 B Security: This is a secure document.

[...]

request-method: GET

response-head:

HTTP/2 200 OK server: nginx/1.17.4 date: Tue, 05 May 2020 07:13:10 GMT content-type: text/html content-length: 5758 last-modified: Mon, 04 May 2020 12:43:21 GMT etag: "5eb00de9-167e" accept-ranges: bytes referrer-policy: no-referrer strict-transport-security: max-age=31536000 X-Firefox-Spdy: h2

original-response-headers:

server: nginx/1.17.4 date: Tue, 05 May 2020 07:13:10 GMT content-type: text/html content-length: 5758 last-modified: Mon, 04 May 2020 12:43:21 GMT etag: "5eb00de9-167e" accept-ranges: bytes referrer-policy: no-referrer strict-transport-security: max-age=31536000 X-Firefox-Spdy: h2 ctid: 1 uncompressed-len: 0 net-response-time-onstart: 315 net-response-time-onstop: 319

In the Firefox Developer Tools I always get "5,62KB (raced)" (see attached image) and looking at my server logs, it does actually fetch the page, but it still shows an old version. The content supplied by the server is definitely the new version and other browsers don't seem to have this problem.

Thanks in advance for your help!

Edit: The etag has changed between the two versions.

Asked by shlintopf 1 month ago

"CORS request not http" error when loading file:/// URI after setting privacy:file_unique_origin to false

I've created an HTML page while trying out a JavaScript library and am loading both the page and its data source (a JSON file) from local files for now, using file:/// UR… (read more)

I've created an HTML page while trying out a JavaScript library and am loading both the page and its data source (a JSON file) from local files for now, using file:/// URIs. A week or two ago, when I first tried this, I encountered a "CORS request not http" error, as described here, when trying to load the JSON file. In my about:config, I set the privacy.file_unique_origin preference to false, after which I was able to load the JSON file successfully.

A couple of days ago, though, I started to see the "CORS request not http" error again, and I have seen it every time I have loaded the page since then, despite confirming that privacy.file_unique_origin was still set to false. I've tried several things to try to get that preference to take effect again: resetting privacy.file_unique_origin to true, setting it back to false, and restarting Firefox; reinstalling Firefox; and refreshing Firefox.

Screenshots of the error message and the privacy.file_unique_origin preference are attached. I'd appreciate any suggestions of what I should try to get the JSON file:/// resource to load successfully again. Thank you.

Asked by Sam Duncan 1 month ago

Last reply by Roland Tanglao 1 month ago

Using the call tree under performance tab of devtools cause how much overhead on response times?

I have used the call tree under performance tab of developer tools to measure response time of some of java script functions my application uses. Can you please tell me h… (read more)

I have used the call tree under performance tab of developer tools to measure response time of some of java script functions my application uses. Can you please tell me howmuch over head(%) would be caused by this profiling tool?

Asked by ranjithchreddy 1 month ago

[Bug?] Cookies are not stored in Firefox - but in Chrome they are!

Hello, so well, my cookies that I send from API backend 127.0.0.1:8000 to a cross domain frontend https://bd1.advena.me are not stored in Firefox. But on the other hand, … (read more)

Hello,

so well, my cookies that I send from API backend 127.0.0.1:8000 to a cross domain frontend https://bd1.advena.me are not stored in Firefox.

But on the other hand, they are tough in Chrome.

Asked by larstru 1 month ago

How do I fill the entire array with the computed answers with just the one input to the array element using the html console?

In the html console, I put an element.value = My new input .value into array index #8 (I pressed enter and only got an undefined instead of specific text answer I wanted… (read more)

In the html console, I put an element.value = My new input .value into array index #8 (I pressed enter and only got an undefined instead of specific text answer I wanted, then I did a small change and all I got was "". The rest of the index element readonly textfields are empty regarding text. I want to fill the entire array with the computed answers with just the one input to the array element using the html console.

how to make an html browser console calculate one user input to fill entire the array using single different inputs and different full array answers every time.

Asked by TK27 1 month ago

How to disable flashing in the inspector?

When an element updates it flashes yellow in the inspector. Is there a way to disable this? I am working on a web game and elements get updated all the time and the yello… (read more)

When an element updates it flashes yellow in the inspector. Is there a way to disable this? I am working on a web game and elements get updated all the time and the yellow flash every second gets really annoying, making it harder to debug.

Asked by Donutask 1 month ago

PHP POST get empty data from unity in webGl build

Hello, I am using Mozila as main browser and try open my Unity WebGL-game and all ok, but PHP Post recieve empty string data only in my browser,but in other browsers all … (read more)

Hello, I am using Mozila as main browser and try open my Unity WebGL-game and all ok, but PHP Post recieve empty string data only in my browser,but in other browsers all ok and My Friend try my game in Mozila and all was ok for him, but not for me...

Asked by alicewithalex25 1 month ago

Last reply by RobertJ 1 month ago

Shows saved password but not username

On many websites FF does not show the saved username like it would show the password. I'm a web developer. How can I make Firefox show the saved username hint? I have see… (read more)

On many websites FF does not show the saved username like it would show the password. I'm a web developer. How can I make Firefox show the saved username hint? I have seen this working correctly at the Twitter login, for example, but I don't spot any difference. Is Twitter using some JS to make that happen? There was an unsolved question a year ago about this https://support.mozilla.org/en-US/questions/1227914

Asked by cicuta33 1 month ago

Why Firefox reloads the page with the error 'The address wasn’t understood'

I have custom desktop app which can be opened from Web. IE, Edge shows just popup messages that such app is not installed. But FireFox reloads the page with the error (r… (read more)

I have custom desktop app which can be opened from Web. IE, Edge shows just popup messages that such app is not installed. But FireFox reloads the page with the error (replacing my Web app) and shows The address wasn’t understood (yes, address doesn't exist but why doesn't it show just popup message without this error message)? Is it configurable,any suggestion to remove such reload? Thanks

Asked by Capsilon Developer 1 month ago

Pages start to load then stop

I have a php site that is using a MySQL dB and has a few JavaScript1.2 elements on the page. After updating from Firefox 68 to 74 some of the pages have stopped loading.… (read more)

I have a php site that is using a MySQL dB and has a few JavaScript1.2 elements on the page. After updating from Firefox 68 to 74 some of the pages have stopped loading. It starts to connect and I can see the queries running on the database but Firefox gives up before the queries return any values. If I click on a link again after it stops loading it sometimes goes through and finishes loading or downloads a generated file on the second or third try. the amount of time before it gives up seems to vary each time.

I have tried disabling JavaScript to see if that has any effect but it didn’t help. as well as seeing if it was a variable that changed in about:config but haven’t found anything that has made a difference.

I have other computers running older versions and they all load the site like they should and it also works in chromes latest version, safari and IE.


If anyone has any ideas on what could be wrong it would be much appreciated. I have been stuck on this for about a week now with no luck.

Asked by Al 1 month ago

How can I use the network monitor with a HTTP/2 connection?

I found multiple pages recently that cause problems with the network monitor in firefox developer tools. I attached an image as an example. The three requests are selecte… (read more)

I found multiple pages recently that cause problems with the network monitor in firefox developer tools. I attached an image as an example. The three requests are selected always as a "block". They seem to be somehow related but I do not find any documentation what their relation is. My educated guess (also see https://superuser.com/questions/1537396/what-is-the-reason-firefox-combines-multiple-requests-in-the-network-monitor) that it is HTTP/2 related. However I still do not get how to handle debugging in such circumstances. I'd like to see the individual requests and answers for debugging purposes. I do not find a way to reach that goal. Is it a technical restriction?

Asked by ChristianLupus 2 months ago

Last reply by jscher2000 2 months ago

small fraction of a line when clicking on a link on my web page and then return from that link

I have programmed a website (with partial use of Xara js code). On one page I have a link to impressum, data privacy etc. When I click one of the links and then return to… (read more)

I have programmed a website (with partial use of Xara js code). On one page I have a link to impressum, data privacy etc. When I click one of the links and then return to previous page with "back", I get a small line at a position where no element is located. The line is connected with the last link selected as it changes color when hovering with the mouse over the button.

It seems that the effect appears only in Firefox and not in every installation, and neither in IE11 nor Edge nor Chrome. I have observed the same effect also on my mobile (Samsung S9). The line can be seen in the attached picture. For your developers I can also provide the link to that specific page if necessary.

Asked by Ultra-Junkie 2 months ago

Last reply by Roland Tanglao 2 months ago