Showing questions tagged: اعرض كل الأسئلة

Redirect via onafterprint working in Chromium but not Firefox

I am trying to serve a print view and redirect the user to the page they came from right after printing (or cancelling). This works fine in Chromium with the following bi… (read more)

I am trying to serve a print view and redirect the user to the page they came from right after printing (or cancelling). This works fine in Chromium with the following bit of JavaScript code:

  function printPageAndRedirectTo(redirectUrl) {
   window.addEventListener("afterprint", function () {
       window.location.href = redirectUrl;
   });
   window.print();

In Firefox, however, nothing happens at all. Debugging shows that the callback is called, but the href field remains unchanged.

This is mysterious to me. Any ideas what the reason might be?

Firefox version is 84.0.2, Chromium 87.0.4280.88 (both from the Arch Linux repositories).

Edit:

Here's a fiddle to illustrate. Redirect to Wikipedia works in Chromium but not in Firefox: https://jsfiddle.net/xnazLb6p/1/

Edit 2:

Another one to show that the problem here is redirecting from the event listener, not redirecting itself: https://jsfiddle.net/xnazLb6p/2/

Asked by rhondachurchill90 4 days ago

Last reply by jscher2000 4 days ago

Copy/Paste

Why can a stupid failing script on a web-page, or even intentionally so programmed script disable the copy (and sometimes paste) functionality? How can this be disabled/f… (read more)

Why can a stupid failing script on a web-page, or even intentionally so programmed script disable the copy (and sometimes paste) functionality?

How can this be disabled/fixed?

One highlights a text (any text) on some web sites, Edit menu allows Copy, context menu allows Copy, one hits Copy, nothing happens. It's not even a page where someone wanted to "copy protect" some information.

Copy and Paste should work just as advertised since those were invented, how hard can it be to get that right? Even stupid Notepad never fails at it. And no, I don't care what the idiot who programmed a page though would be/should be best for me, I want Copy to be copy, Paste to be paste. This used to work in "original" Firefoxes even when page developers wanted to make it not work.

And yes, while on a given page Copy fails miserably, at the same time in other pages it works.

Asked by Pók 4 days ago

Last reply by jscher2000 3 days ago

only prints first page

Even when I tell the printer to print a range of pages, it will only print the first page. I spoke with HP Support already and they said the problem is with Firefox, not… (read more)

Even when I tell the printer to print a range of pages, it will only print the first page. I spoke with HP Support already and they said the problem is with Firefox, not the printer. The drivers are updated.

Asked by peainem123 4 days ago

Last reply by Mamoon 4 days ago

Right clicking for websites giving inconsistent choices

I use Win 10 Pro. If I want to copy something - a document or site address or use any other control in the menu, sometimes the menu options appear and sometimes they don'… (read more)

I use Win 10 Pro. If I want to copy something - a document or site address or use any other control in the menu, sometimes the menu options appear and sometimes they don't. Sometimes nothing happens and I have to hit Esc several times to get a program or menu selection to work. Occasionally, I even have to reboot. I seldom use other browsers but when I do, they don't seem to have a problem. I'm thinking of resetting Firefox but I'm concerned about everything I'll lose. I've tried to simply update my browser but it doesn't help. Suggestions?

Asked by Marsha 4 days ago

Last reply by FredMcD 3 days ago

another language keyboard doesn't work in my firefox on kali linux

I switched my local keyboard layout and tried to type my language(myanmar-burmese) in firefox. But It doesn't work in my firefox browser. Instead of my language,it's typi… (read more)

I switched my local keyboard layout and tried to type my language(myanmar-burmese) in firefox. But It doesn't work in my firefox browser. Instead of my language,it's typing English. My language keyboard work in other applications i.e terminal, text editors, etc. How can I fix it? suggestions please!

Asked by sitharhlaing17 4 days ago

Last reply by Seburo 3 days ago

Possible to delete a site from search suggestions?

There is a web site that only legitimately visited years ago but it keeps coming up as the top suggestion when typing in the search bar. How can that site be removed from… (read more)

There is a web site that only legitimately visited years ago but it keeps coming up as the top suggestion when typing in the search bar. How can that site be removed from suggestions?

Asked by MadChalet 3 days ago

Last reply by Václav Trpišovský 3 days ago

After recent Firefox update, it switches from http to https

A while back I noticed that when loading any one of my sites in Firefox, the URL changes itself from http https which causes the non-secure sites to crash. This is a majo… (read more)

A while back I noticed that when loading any one of my sites in Firefox, the URL changes itself from http https which causes the non-secure sites to crash. This is a major problem for me that makes my sites all but inaccessible to please advise what to do to stop it, preferably at the server level so that visitors to the sites won’t have to fuss with it individually!

Asked by PCHome 3 days ago

Last reply by cor-el 3 days ago

ChromeExtMalware.store

I have been trying to undo a hacking problem for quite a while. I am using Kaspersky Cloud Security, looking for unusual (hard to really say what that is) network and ap… (read more)

I have been trying to undo a hacking problem for quite a while. I am using Kaspersky Cloud Security, looking for unusual (hard to really say what that is) network and app activity and making apps ask before running or using the network. I saw an event reported by K that had a bunch of versions of various browsers, one of which was Safari that I never have used. I asked them but then realized that was just something that edge or K tacked on to identify somethnig else.

However, I did notice that Chrome was being used, apparently by edge, as my browser. My understanding is that chrome is used a lot by hackers for various things. I'd rather not use it. That's why I installed Firefox.

So I did a search of my pc for "chrome" and up came the thing in the title of this question: ChromExtMalware.store. I was fairly surpised that it would actually be called that. But I did find by searching the web that it's malware.

beyond that, several other things came up, chrome.nm-server-v2.manifest.json, same thng without the v2, plugins.chrome.manifest.

So apparently I not only use edge but chrome.

Can anyone tell me whether I simply do not understand how this is all structured and its all fairly safe, or, if it lookw like i'm right nd something is fishy, is there reason to imagine that Firefox will make it easier to control these things?

thanks for taking a moment to look this over. I really do need some guidance, so if you are willing but you need more info, please reply and request it.

Note: The image and issue, if the image uploads, is not on this PC. It is on my Microsoft Surface. This machine has problems as well, but I haven't not see that here - yet. So the shared configuration is for this pc.

Asked by rabidbilly 3 days ago

Last reply by jscher2000 3 days ago

problem : Firefox always start from zero, empty

Hello, I don't find any solution on the web When i restart my computer, Firefox is totally "empty" (= "from zero") : no passwords, no cookies, no nothing... Maybe someone… (read more)

Hello, I don't find any solution on the web When i restart my computer, Firefox is totally "empty" (= "from zero") : no passwords, no cookies, no nothing... Maybe someone knows what to do ? thx a lot ! :)

Asked by FT 3 days ago

Last reply by FredMcD 2 days ago

Something captured me firefox and causes attempt to online banking fraud

Hello All, this is to inform you that my Firefox got infected with something causing an interference with my bank account. I could logon into the https site of my bank wi… (read more)

Hello All, this is to inform you that my Firefox got infected with something causing an interference with my bank account. I could logon into the https site of my bank with my banking credentials. Normally I see my account status directly after the logon. In this case onla after a couple of seconds a message is popping up that because of Online Banking Frauds the procedure will change. The only way to proceed is to click on Next. On the next page credentials for a Demo Account are displayed. The only way to proceed is to click on Next again. Then I'm asked to enter a TAN for a Demo Transfer of 9215.54€ . I called my bank and they could verify that I'm still on their https and that if I proceed definitly transfer the above amount to an other bank accout. Bank IT told me that on their site anything is right and it must be an issue on my PC. I tried logons to my bank account with IE and Opera and don't get the fraud pages. With firefox I always are led to the "DEMO Transfer".

Did you expierenced something like that already?

Asked by joerg-michael_kall 2 days ago

Last reply by FredMcD 2 days ago

Firefox does not update a site's Favicon in history or bookmarks after the site has changed its icon

This is a bug report, not a question. When I access a web site for the first time, Firefox (version 84.0.2 [64-bit] under Windows 10) displays that site's Favicon in Fire… (read more)

This is a bug report, not a question. When I access a web site for the first time, Firefox (version 84.0.2 [64-bit] under Windows 10) displays that site's Favicon in Firefox's search history. If the site then changes its Favicon, Firefox does not update its own copy of the site's Favicon and continues displaying the old one. I had a site like this in my search history but I had not bookmarked it. The site changed its Favicon but the icon displayed in Firefox's search history remained unchanged. I later bookmarked the site, thinking that this might inspire Firefox to update the Favicon but it did not; Firefox displays the old Favicon in its bookmarks as well.

Asked by daveziffer 2 days ago

Last reply by jscher2000 2 days ago

Mozilla Passport

Hello guys, I was wandering if it would be a good idea for the Mozilla Foundation to create a new service: The Mozilla Passport Service, where it would store users legal … (read more)

Hello guys,

I was wandering if it would be a good idea for the Mozilla Foundation to create a new service: The Mozilla Passport Service, where it would store users legal information (in blockchain) and act as an intermediate with other services on the internet without exposing our information to those services. There have been many companies that are trying to achieve that but they lack something that the Mozilla Foundation has (to some point) and that's Trust from their customers. Also i don't see how Mozilla will survive in the future without providing future-proof services. Another thing is that in 2021 i really find it weird that there's not an easy way (off the social network) to contact Mozilla if someone has a new idea about their services (even if its stupid).

Anyways thanks for your time

Asked by superjohnv 2 days ago

Last reply by jscher2000 2 days ago

Firefox does not like yahoo mail

Firefox will take me to yahoo and I can preview my email but cannot open my yahoo mail. I uninstalled firefox and reinstalled and it fixed it Now a week later it is doi… (read more)

Firefox will take me to yahoo and I can preview my email but cannot open my yahoo mail. I uninstalled firefox and reinstalled and it fixed it Now a week later it is doing it again. I can get to my mail from edge no problem. I decided to try firefox again to get into my yahoo mail and it worked all day yesterday and now it stopped again. Can't figure out what gives

Asked by viejamom 2 days ago

Last reply by FredMcD 2 days ago