Viser spørgsmål med mærket: Vis alle spørgsmål
  • Arkiveret

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… (læs mere)

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?

Stillet af ChristianLupus for for 6 måneder siden

Seneste svar af TyDraniu for for 1 måned siden

TypeError: document.getelementbyid(...) is null

Although there is a proper id on html but still its showing "TypeError: document.getelementbyid(...) is null". <!DOCTYPE html> <html lang="en"> <head>… (læs mere)

Although there is a proper id on html but still its showing "TypeError: document.getelementbyid(...) is null".


<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Fundraising made simple</title>
</head>
<body>
              <form method="post" action="" >
                  <button class="btn btn-success" style="margin: 14px;margin-left: 3em;" name="input_amount" id="total_ammount" value="00.00" type="submit" >Pay </button>
              </form>
<script>
function myFunction(id) {
    console.log('hello all',id)
    document.getElementById('ammounth1').innerHTML = '$ '.concat(counts.toFixed(2));
    document.getElementById('ammounth2').innerHTML = '$ '.concat(count_percentage.toFixed(2));
    document.getElementById('ammounth3').innerHTML = "Paypal will be billed : $ ".concat( total)
    document.getElementById('total_ammount').setAttribute('value',total)
}
</script>


    </div>
<!-- test to see if user is logged in our not -->
<!-- True -->

<!-- Google site tag code -->
    
        
    

<!-- fullscreen fg fields background -->
    
    <style>
        body {
        background: url("https://alphabetacharlie.s3-eu-west-1.amazonaws.com/media/images/KICKSTARTER_FUNDGRAZING_WALLET.png") no-repeat center center fixed;
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-size: cover;
        }
    </style>
    

    <footer>
        <div class="container">
            <h5> &copy; Copyright 2020 fundgrazing.com All Rights Reserved <a href="/accounts/contact_us/" target="_blank">Contact Us</a>  |  <a href="/accounts/gdpr/" target="_blank">GDPR</a></h5>
        </div>
    </footer>

<!-- Twitter universal website tag code -->
<script>
    !function(e,t,n,s,u,a){e.twq||(s=e.twq=function(){s.exe?s.exe.apply(s,arguments):s.queue.push(arguments);
    },s.version='1.1',s.queue=[],u=t.createElement(n),u.async=!0,u.src='//static.ads-twitter.com/uwt.js',
    a=t.getElementsByTagName(n)[0],a.parentNode.insertBefore(u,a))}(window,document,'script');
    // Insert Twitter Pixel ID and Standard Event data below
    twq('init','o3hea');
    twq('track','PageView');
    </script>
    <!-- End Twitter universal website tag code -->

</body>
</html>

Stillet af dvskhamele for for 2 måneder siden

Seneste svar af jscher2000 for for 2 måneder siden

How to fix onnegotiation handling loop when the RTCPeerConnection.restartIce() is called?

I built a web application using WebRTC technology. My case is that I browse the web site on my android phone using Chrome version 83, and then I browse the web site on my… (læs mere)

I built a web application using WebRTC technology.

My case is that I browse the web site on my android phone using Chrome version 83, and then I browse the web site on my pc using firefox version 77. And the server-side code is using node.js. It works fine.

When I switch the connection on my mobile from wifi to mobile network or from the mobile network to wifi, both browsers are handling the "onnegotiation" event infinity.

However, if I browse the web site on my pc using the Chrome browser, the problem does not exist.

I am using the perfect negotiation method to establish a connection.

I have tried to rebuild the connection in socket.on("reconnect"), it does not work.

How can I fix the problem?

And my source code can be downloaded from the following URL for reference:

https://www.sendspace.com/file/y57es6

Stillet af knvbhk for for 3 måneder siden

Seneste svar af ARMAN KHAN for for 3 måneder siden

Basic Authetication Info shown in tab title

Hello there. We are developing website to configure our device. Webserver apache2 is configured to use Basic Authetication. One directory, that requiers authentication, d… (læs mere)

Hello there. We are developing website to configure our device. Webserver apache2 is configured to use Basic Authetication. One directory, that requiers authentication, doesn't have index.html and is browsed as "Index of /...". If i open a file on this webpage in the same tab, tab title is <ip>/<directiory>/<file>. But if I open file in new tab, tab title is <login>:<password>@<ip>/<directory>/<file>.

Stillet af vall.boitsova for for 3 måneder siden

Seneste svar af Roland Tanglao for for 3 måneder siden

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… (læs mere)

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. :/

Stillet af marko.vodanovic for for 3 måneder siden

Seneste svar af AKASH kUMAR for for 3 måneder siden

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… (læs mere)

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

Stillet af vld53 for for 3 måneder siden

Seneste svar af McCoy for for 3 måneder siden

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… (læs mere)

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

Stillet af Sprinklerkopf for for 5 måneder siden

Seneste svar af andmagdo for for 4 måneder siden

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… (læs mere)

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

Stillet af OronDF343 for for 4 måneder siden

Seneste svar af Roland Tanglao for for 4 måneder siden

"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… (læs mere)

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.

Stillet af Sam Duncan for for 5 måneder siden

Seneste svar af Roland Tanglao for for 5 måneder siden

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 … (læs mere)

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...

Stillet af alicewithalex25 for for 5 måneder siden

Seneste svar af RobertJ for for 5 måneder siden

  • Arkiveret

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… (læs mere)

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.

Stillet af Ultra-Junkie for for 6 måneder siden

Seneste svar af Roland Tanglao for for 6 måneder siden

  • Arkiveret

Firefox with a terrible BigInt support in JS

Firefox is my favourite browser, but it has some problems. Although the team managed to fix memory leak issues with BigInt in js, but the performance is 3x slower than No… (læs mere)

Firefox is my favourite browser, but it has some problems. Although the team managed to fix memory leak issues with BigInt in js, but the performance is 3x slower than NodeJS compared to the latest spidermonkey (75.0b6).

To test out, I have created a simple pi calculator (open source), the website is: http://picalc.rf.gd/

The source code can be found on github, or just by clicking the "View Page Source". It seems impossible to get past 4,000 digits of Pi in firefox but in chromium I can calculate about 10,000 digits in the time firefox does 4,000 digits.

Previously, in the earlier versions (73 I guess), the memory went all the way up to 4 gigabytes while trying to calculate 5,000 digits, it's now (my current firefox version is 75.0b4, developer edition).

For the benchmarks, I have also tried NodeJS and Firefox's Spidermonkey.

Stillet af Sourav for for 6 måneder siden

Seneste svar af Roland Tanglao for for 6 måneder siden

  • Arkiveret

Why did Firefox respond with REFUSED_STREAM for an HTTP2 server push?

I have a site that pushes a few resources back with the initial page load via HTTP2 server push. This site worked well in Firefox 72, and still works well with Chrome 80.… (læs mere)

I have a site that pushes a few resources back with the initial page load via HTTP2 server push. This site worked well in Firefox 72, and still works well with Chrome 80. It does not work in Firefox 74. Charles proxy reports that Firefox is resetting the push stream via REFUSED_STREAM (0x7).

Before I take the time to setup a publicly accessible repro: 1. Has anyone else seen this? 2. Are there other debugging tools folks recommend? I'd like to rule out some of the many legitimate reasons (https://jakearchibald.com/2017/h2-push-tougher-than-i-thought/) the stream could have been refused before reporting this as a bug.

Stillet af adam43 for for 6 måneder siden

Seneste svar af cor-el for for 6 måneder siden

  • Arkiveret

Automation Selenium c# Sendkeys not working

Am doing automatiin for a application. Am trying using login with incognito mode in ESR version 68.4. In authentication login popup username is not getting typed. Same co… (læs mere)

Am doing automatiin for a application. Am trying using login with incognito mode in ESR version 68.4. In authentication login popup username is not getting typed. Same code in the version of ESR version 60 working fine. please find the below code

Code : var alert = driver.Switchto().Alert();

alert.SendKeys($"username" +Keys.Tab + $"password" + Keys.Tab); alert.Accept();

Same code works in older version of mozila esr and not working in latest

Could you please help

Stillet af Vino for for 6 måneder siden

Seneste svar af Roland Tanglao for for 6 måneder siden

  • Arkiveret

Firefox geolocation returns wrong coordinates

I want to build a progressive web app. This app requires the user's GPS coordinates. In order to test this functionality cross-browser, I use w3schooll geolocation implem… (læs mere)

I want to build a progressive web app. This app requires the user's GPS coordinates. In order to test this functionality cross-browser, I use w3schooll geolocation implementation. Link: https://www.w3schools.com/html/tryit.asp?filename=tryhtml5_geolocation

Compared to Chrome, Firefox sometimes returns the wrong coordinates. For example yesterday (13/03/2020) the coordinates were wrong all day. Today (14/03/2020) the coordinates are right. The coordinates are crucial for the success of the app. I use Firefox 74.0

Stillet af Sergiu Mare for for 6 måneder siden

Seneste svar af cor-el for for 6 måneder siden

  • Arkiveret

I need someone who has knowledge with Firefox open source browsers

Hello, we have made a Firefox open source browser that allows a list of websites and words And block any other URL that is not in the list Now, we need a new programmer w… (læs mere)

Hello, we have made a Firefox open source browser that allows a list of websites and words And block any other URL that is not in the list

Now, we need a new programmer who could check the source code we have for this browser and improve it for us by making new functions and adding more websites to the allowed list So check the browser and see if you could do this job

You can check the browser here https://drive.google.com/file/d/1RcR4x7o_iUm43Bvv4mC1xXiTD3kE3iJj/view?usp=sharing


Thank you

Stillet af mohamedfawzy.dr for for 6 måneder siden

Seneste svar af cor-el for for 6 måneder siden

  • Arkiveret

When using "chrome_url_overrides" in the manifest.json of my addon to change the new tab page, is it possible to focus on an element in the page?

My manifest is this: { "manifest_version": 2, "name": "Simple Startpage", "version": "1.0", "description": "My very simple start page", "ch… (læs mere)

My manifest is this:

   {
   	"manifest_version": 2,
   	"name": "Simple Startpage",
   	"version": "1.0",
   
   	"description": "My very simple start page",
   
   	"chrome_url_overrides": {
   		"newtab": "index.html"
   	}
   }

`index.html` is a normal HTML page that references an `index.js` which contains code something like this:

   window.onload = () => {document.getElementById("search").focus()}

However, when I open a new page, it focuses the address bar at the top instead of my element. Is there an approach I could take to this that would let me focus that element? Directly opening the file verifies that the focus() works.

Stillet af vityavv for for 6 måneder siden

Seneste svar af user1321319 for for 6 måneder siden

  • Arkiveret

Cookies can't be set in Firefox

I'm developing React App and it's involving Cookies in its authentication process, but the problem is the "set-cookies" function is not working on Firefox, it is working … (læs mere)

I'm developing React App and it's involving Cookies in its authentication process, but the problem is the "set-cookies" function is not working on Firefox, it is working on Chrome. but i don't know why it doesn't work in Firefox. I've try to settings anything related to Cookies like "Allow Cookies" for my React App url and even customize Privacy Protections to not blocking all of the things listed there.

Thank you for your help,

Stillet af elangbayu17 for for 6 måneder siden

Seneste svar af Roland Tanglao for for 6 måneder siden

  • Arkiveret

Is there a possibility to prevent "This page is asking you to confirm that you want to leave..." popup message using JavaScript?

HI! Could you tell me please how can I prevent this popup message? Is there some browser vendor supported way to do it using JavaScript or we have just only possibility t… (læs mere)

HI! Could you tell me please how can I prevent this popup message? Is there some browser vendor supported way to do it using JavaScript or we have just only possibility to do it by editing Firefox browser setting 'dom.disable_beforeunload = true' on each browser client? As an app developer I need to disable this notification popup for all users at once. Thanks!

Stillet af aleksandr.chebaev for for 7 måneder siden

Seneste svar af jscher2000 for for 7 måneder siden