顯示問題標籤 顯示所有問題
  • 已解決

Content-Security-Policy: frame-ancestors doesn't work

As mentioned here https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/frame-ancestors, CSP: frame-ancestors is supported from Firefox 33. Ho… (閱讀更多)

As mentioned here https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/frame-ancestors, CSP: frame-ancestors is supported from Firefox 33. However, it seems doesn't work.

I am trying to embed a 3-party site into our page using an iframe. The 3-party site did whitelist us using these headers - Content-Security-Policy: frame-ancestors 'self' https://*.ourdomain.com - X-Frame-Options: SAMEORIGIN

It works fine on Chrome, but not Firefox. I am using Firefox 79.

Is there anything wrong with our headers?

Thank you!

vinh.vu 於 1 週前 詢問

vinh.vu 於 5 天前 解答

  • 已解決

New CSS styles not picked in Firefox.

I am building a website and, for the last couple of days, when I make changes to the CSS file they are no longer being picked up by the browser by which I mean they aren'… (閱讀更多)

I am building a website and, for the last couple of days, when I make changes to the CSS file they are no longer being picked up by the browser by which I mean they aren't displayed in the web page nor in the developer tools inspector.

They are visible in Chromium browser and dev tools.

I have cleared the cache and refreshed the page to no avail. It is only when I restart the browser that the new style rules take effect in the browser and show up in the dev tools.

mt3ch 於 1 週前 詢問

cor-el 於 1 週前 解答

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>… (閱讀更多)

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>

dvskhamele 於 1 週前 詢問

jscher2000 最近回覆 於 1 週前

Mozilla Firefox does not allow automatically microphone in background.

Hi, I am developing software with webrtc. I have a problem. I chose to give a microphone permission to a website in Firefox and remember. Firefox automatically allows th… (閱讀更多)

Hi, I am developing software with webrtc. I have a problem.

I chose to give a microphone permission to a website in Firefox and remember. Firefox automatically allows the microphone when in the foreground, but not automatically when in the background.

Help me, please.

armabil 於 2 週前 詢問

Build Firefox Error in Linux when "ac_add_options --enable-address-sanitizer" is added to the file `.mozconfig`

when I try to build the Firefox according to fuzz-interface 。after I added ac_add_options --enable-address-sanitizer to the file ".mozconfig" there exist some errors when… (閱讀更多)

when I try to build the Firefox according to fuzz-interface 。after I added ac_add_options --enable-address-sanitizer to the file ".mozconfig" there exist some errors when I run "./mach build", there comes the error info: 5:21.99 ld.lld: error: duplicate symbol: operator delete[](void*)

5:21.99 >>> defined at asan_new_delete.cc:163 (/builds/worker/fetches/llvm-project/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:163)
5:21.99 >>>            asan_new_delete.cc.o:(operator delete[](void*)) in archive /home/szl/.mozbuild/clang/lib/clang/9.0.1/lib/linux/libclang_rt.asan_cxx-x86_64.a
5:21.99 >>> defined at cxxalloc.h:60 (/home/szl/src/firefox_asan/obj-x86_64-pc-linux-gnu/dist/include/mozilla/cxxalloc.h:60)
5:21.99 >>>            ../../memory/mozalloc/cxxalloc.o:(.text+0x60)
5:21.99 ld.lld: error: duplicate symbol: operator delete[](void*, std::nothrow_t const&)
5:21.99 >>> defined at asan_new_delete.cc:169 (/builds/worker/fetches/llvm-project/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:169)
5:21.99 >>>            asan_new_delete.cc.o:(operator delete[](void*, std::nothrow_t const&)) in archive /home/szl/.mozbuild/clang/lib/clang/9.0.1/lib/linux/libclang_rt.asan_cxx-x86_64.a
5:22.00 >>> defined at cxxalloc.h:65 (/home/szl/src/firefox_asan/obj-x86_64-pc-linux-gnu/dist/include/mozilla/cxxalloc.h:65)
5:22.00 >>>            ../../memory/mozalloc/cxxalloc.o:(.text+0x70)
5:22.00 ld.lld: error: duplicate symbol: operator delete(void*)
5:22.00 >>> defined at asan_new_delete.cc:160 (/builds/worker/fetches/llvm-project/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:160)
5:22.00 >>>            asan_new_delete.cc.o:(operator delete(void*)) in archive /home/szl/.mozbuild/clang/lib/clang/9.0.1/lib/linux/libclang_rt.asan_cxx-x86_64.a
5:22.00 >>> defined at cxxalloc.h:51 (/home/szl/src/firefox_asan/obj-x86_64-pc-linux-gnu/dist/include/mozilla/cxxalloc.h:51)
5:22.00 >>>            ../../memory/mozalloc/cxxalloc.o:(.text+0x40)
5:22.00 ld.lld: error: duplicate symbol: operator delete(void*, std::nothrow_t const&)
5:22.00 >>> defined at asan_new_delete.cc:166 (/builds/worker/fetches/llvm-project/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:166)
5:22.00 >>>            asan_new_delete.cc.o:(operator delete(void*, std::nothrow_t const&)) in archive /home/szl/.mozbuild/clang/lib/clang/9.0.1/lib/linux/libclang_rt.asan_cxx-x86_64.a
5:22.00 >>> defined at cxxalloc.h:56 (/home/szl/src/firefox_asan/obj-x86_64-pc-linux-gnu/dist/include/mozilla/cxxalloc.h:56)
5:22.00 >>>            ../../memory/mozalloc/cxxalloc.o:(.text+0x50)
5:22.00 ld.lld: error: duplicate symbol: operator new[](unsigned long)
5:22.00 >>> defined at asan_new_delete.cc:102 (/builds/worker/fetches/llvm-project/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:102)
5:22.00 >>>            asan_new_delete.cc.o:(operator new[](unsigned long)) in archive /home/szl/.mozbuild/clang/lib/clang/9.0.1/lib/linux/libclang_rt.asan_cxx-x86_64.a
5:22.00 >>> defined at cxxalloc.h:42 (/home/szl/src/firefox_asan/obj-x86_64-pc-linux-gnu/dist/include/mozilla/cxxalloc.h:42)
5:22.00 >>>            ../../memory/mozalloc/cxxalloc.o:(.text+0x20)
5:22.00 ld.lld: error: duplicate symbol: operator new[](unsigned long, std::nothrow_t const&)
5:22.00 >>> defined at asan_new_delete.cc:108 (/builds/worker/fetches/llvm-project/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:108)
5:22.00 >>>            asan_new_delete.cc.o:(operator new[](unsigned long, std::nothrow_t const&)) in archive /home/szl/.mozbuild/clang/lib/clang/9.0.1/lib/linux/libclang_rt.asan_cxx-x86_64.a
5:22.00 >>> defined at cxxalloc.h:47 (/home/szl/src/firefox_asan/obj-x86_64-pc-linux-gnu/dist/include/mozilla/cxxalloc.h:47)
5:22.00 >>>            ../../memory/mozalloc/cxxalloc.o:(.text+0x30)
5:22.00 ld.lld: error: duplicate symbol: operator new(unsigned long)
5:22.00 >>> defined at asan_new_delete.cc:99 (/builds/worker/fetches/llvm-project/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:99)
5:22.00 >>>            asan_new_delete.cc.o:(operator new(unsigned long)) in archive /home/szl/.mozbuild/clang/lib/clang/9.0.1/lib/linux/libclang_rt.asan_cxx-x86_64.a
5:22.00 >>> defined at cxxalloc.h:33 (/home/szl/src/firefox_asan/obj-x86_64-pc-linux-gnu/dist/include/mozilla/cxxalloc.h:33)
5:22.00 >>>            ../../memory/mozalloc/cxxalloc.o:(.text+0x0)
5:22.00 ld.lld: error: duplicate symbol: operator new(unsigned long, std::nothrow_t const&)
5:22.01 >>> defined at asan_new_delete.cc:105 (/builds/worker/fetches/llvm-project/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:105)
5:22.01 >>>            asan_new_delete.cc.o:(operator new(unsigned long, std::nothrow_t const&)) in archive /home/szl/.mozbuild/clang/lib/clang/9.0.1/lib/linux/libclang_rt.asan_cxx-x86_64.a
5:22.01 >>> defined at cxxalloc.h:38 (/home/szl/src/firefox_asan/obj-x86_64-pc-linux-gnu/dist/include/mozilla/cxxalloc.h:38)
5:22.01 >>>            ../../memory/mozalloc/cxxalloc.o:(.text+0x10)
5:22.01 clang-9: error: linker command failed with exit code 1 (use -v to see invocation)
5:22.01 /home/szl/src/firefox_asan/config/rules.mk:458: recipe for target '../../dist/bin/firefox' failed
5:22.01 make[5]: *** [../../dist/bin/firefox] Error 1
5:22.01 /home/szl/src/firefox_asan/config/recurse.mk:72: recipe for target 'browser/app/target' failed
5:22.01 make[4]: *** [browser/app/target] Error 2
5:22.01 make[4]: *** Waiting for unfinished jobs....
5:22.02 dom/media/gmp-plugin-openh264/libfakeopenh264.so
5:22.56 3 warnings generated.
5:23.16    Compiling webrender v0.61.0 (/home/szl/src/firefox_asan/gfx/wr/webrender)
5:39.65    Compiling webrender_bindings v0.1.0 (/home/szl/src/firefox_asan/gfx/webrender_bindings)
5:58.64    Compiling geckoservo v0.0.1 (/home/szl/src/firefox_asan/servo/ports/geckolib)
6:18.81    Compiling gkrust v0.1.0 (/home/szl/src/firefox_asan/toolkit/library/rust)
6:20.75     Finished release [optimized] target(s) in 5m 21s
6:25.73 /home/szl/src/firefox_asan/config/recurse.mk:32: recipe for target 'compile' failed
6:25.73 make[3]: *** [compile] Error 2
6:25.73 /home/szl/src/firefox_asan/config/rules.mk:390: recipe for target 'default' failed
6:25.73 make[2]: *** [default] Error 2
6:25.73 client.mk:125: recipe for target 'build' failed
6:25.73 make[1]: *** [build] Error 2
6:25.74 258 compiler warnings present.
6:25.86 Notification center failed: Install notify-send (usually part of the libnotify package) to get a notification when the build finishes.

GNUmakefile:9: recipe for target 'build' failed make: *** [build] Error 2


how can I fix it?

iron_head 於 3 週前 詢問

Notifications Not Working

Hello. I'm using a brand-new installation of Firefox 78.0.1 on a freshly installed copy of Windows 10 Pro. The only way I can get Firefox to display any notifications i… (閱讀更多)

Hello. I'm using a brand-new installation of Firefox 78.0.1 on a freshly installed copy of Windows 10 Pro. The only way I can get Firefox to display any notifications is by having alerts.useSystemBackend set to true. While this is set to false, notifications will not work. If I use this site to test them, it just says, 'queued for display', followed immediately by 'closed'. I've also tried creating a new profile and testing it again with no success. All sites were granted notification permissions in each case.

Thanks for any help.

dojima 於 1 個月前 詢問

Lax Cookie Not Sent in iFrame on 302 Redirection

I’m building an Angular application that is using OAuth2 Auth Code w/PKCE. The app uses hidden iframes to silently renew access tokens. I found that when the OAuth2 autho… (閱讀更多)

I’m building an Angular application that is using OAuth2 Auth Code w/PKCE. The app uses hidden iframes to silently renew access tokens. I found that when the OAuth2 authorization serve redirects the iFrame to {parent origin}/silent-refresh.html with a 302, Firefox does not send any cookies set with SameSite: Lax.

SameSite: None cookies are sent as expected.

I compared this with IE and Chrome and both of those browser send the Lax cookies on when redirecting due to a 302.

This problem seems to only occur when the iFrame is being redirected via 302 from a different origin. I.e requests from a basic iFrame to the parent page origin send Lax cookies with no problem.

Anyone experience this? Is this expected behavior for Firefox?

Firefox Version 68.8

brian.l.coker 於 1 個月前 詢問

brian.l.coker 最近回覆 於 1 個月前

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… (閱讀更多)

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

knvbhk 於 1 個月前 詢問

ARMAN KHAN 最近回覆 於 1 個月前

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… (閱讀更多)

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

vall.boitsova 於 1 個月前 詢問

Roland Tanglao 最近回覆 於 1 個月前

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… (閱讀更多)

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

marko.vodanovic 於 2 個月前 詢問

AKASH kUMAR 最近回覆 於 2 個月前

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… (閱讀更多)

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

vld53 於 2 個月前 詢問

McCoy 最近回覆 於 2 個月前

  • 已解決

Firefox 76.0 javascript window.open() parameters ignored, tool bar, etc. missing

Until several weeks ago, new windows created through Javascript with window.open() worked. We could pass the new size, and other features, e.g. menubar, toolbar, etc. and… (閱讀更多)

Until several weeks ago, new windows created through Javascript with window.open() worked. We could pass the new size, and other features, e.g. menubar, toolbar, etc. and they would show up. As of v.76.0 this is no longer true. The parameters are ignored. If we use no parameters, the menubar, etc. do show, but we can't control any new window features. We have not changed our programs at all, and window.open() parameters still work correctly in Chrome, Brave, Edge, etc. How do we get Firefox to recognize the window.open() parameters (again)?

jjacobs3 於 2 個月前 詢問

jscher2000 於 2 個月前 解答

  • 已解決

firefox.cfg no longer overwrite new tab content

I'm using firefox developer edition. The latest version: 76.0b2 I have firefox.cfg set up to overwrite new tab content with locally stored html. The code in firefox.cfg t… (閱讀更多)

I'm using firefox developer edition. The latest version: 76.0b2 I have firefox.cfg set up to overwrite new tab content with locally stored html. The code in firefox.cfg that worked until recent update:

/* set new tab page */ try {

 var newTabURL = "file:///G:/Documents/Newtab.html";
 aboutNewTabService = Cc["@mozilla.org/browser/aboutnewtab-service;1"].getService(Ci.nsIAboutNewTabService);
 aboutNewTabService.newTabURL = newTabURL;

} catch(e){Cu.reportError(e);} // report errors in the Browser Console

In the browser console there is an error message displayed:

[Exception... "Cannot modify properties of a WrappedNative" nsresult: "0x80570034 (NS_ERROR_XPC_CANT_MODIFY_PROP_ON_WN)" location: "JS frame :: firefox.cfg :: <TOP_LEVEL> :: line 7" data: no]

Any idea what that error message means and how to resolve it? Does anything changed regarding new tab overwrite?

shdowmyst 於 4 個月前 詢問

cor-el 於 4 個月前 解答

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… (閱讀更多)

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?

daphilli 於 2 個月前 詢問

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… (閱讀更多)

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

Sprinklerkopf 於 3 個月前 詢問

andmagdo 最近回覆 於 2 個月前

  • 已解決

Even after clearing cache, and changing my HTML, the old web page loads unless I quit FF completely and restart it, which I don't want to do..

I'm trying to debug a web page written in html5 with a serverside php that emails user input to me. The changes are minor aesthetic tweaks that only take a minute to cha… (閱讀更多)

I'm trying to debug a web page written in html5 with a serverside php that emails user input to me. The changes are minor aesthetic tweaks that only take a minute to change and then test.

It took me a while to realize that Firefox is not completely clearing the cache unless I exit FF and restart. That's a lot of effort to test one change in an html file, so I would really like to completely clear the cache. Does anyone know what is being left behind and where?

carlclark 於 3 個月前 詢問

Wesley Branton 於 3 個月前 解答

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 … (閱讀更多)

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)

Ambyo 於 2 個月前 詢問

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… (閱讀更多)

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

OronDF343 於 3 個月前 詢問

Roland Tanglao 最近回覆 於 3 個月前

Click event.detail maxes out at 3 in Firefox.

I'm trying to write a javascript app. I've noticed that when I am running my app in Firefox, the click event.detail will increment only up to three. If you click more tha… (閱讀更多)

I'm trying to write a javascript app. I've noticed that when I am running my app in Firefox, the click event.detail will increment only up to three. If you click more than three times in a row, it reduces back to 2. This isn't a problem only in my app, but also when testing click event.detail at this page https://developer.mozilla.org/en-US/docs/Web/API/Element/click_event (they have a button towards the bottom of the page. I get the same problem, where I can only get event.detail to increment up as high as 3.) I tested this in Chrome, and Chrome does exactly what I need it to. However, our web app has to work in Firefox. Is this a bug in Firefox, or is there a different function I should use to see how many click events occurred in a row? I am using Firefox version 68.5.0esr (32-bit).

Thanks a lot!

FlyerKitten 於 3 個月前 詢問

FlyerKitten 最近回覆 於 3 個月前