Join the Mozilla’s Test Days event from 9–15 Jan to test the new Firefox address bar on Firefox Beta 135 and get a chance to win Mozilla swag vouchers! 🎁

본 사이트는 여러분의 사용자 경험을 개선하기 위해 유지 보수를 진행하는 동안 기능이 제한됩니다. 도움말로 문제가 해결되지 않고 질문을 하고 싶다면 Twitter의 @FirefoxSupport 및 Reddit의 /r/firefox 채널을 활용하세요.

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

How can I get Javascript moveTo and resizeTo bookmarklets working again?

  • 24 답장
  • 190 이 문제를 만남
  • 2 보기
  • 최종 답변자: jdvb

more options

Years ago, a Lifehacker article gave me exactly what I needed: a quick and simple way to resize the various Firefox windows I need open at my office to make them precisely the size and position I need them. — http://lifehacker.com/292901/resize-firefox-with-a-bookmarklet

Unfortunately, upgrading to Firefox 7 seems to prevent these bookmarklets from working. What do I need to do to get them up and running again? It might sound unusual, but this is a critical issue for me. I've downgraded to 6.0.2 until I find a solution that works.

Years ago, a Lifehacker article gave me exactly what I needed: a quick and simple way to resize the various Firefox windows I need open at my office to make them precisely the size and position I need them. — http://lifehacker.com/292901/resize-firefox-with-a-bookmarklet Unfortunately, upgrading to Firefox 7 seems to prevent these bookmarklets from working. What do I need to do to get them up and running again? It might sound unusual, but this is a critical issue for me. I've downgraded to 6.0.2 until I find a solution that works.

글쓴이 mgrad92 수정일시

모든 댓글 (4)

more options

cor-el referred me to the bugzilla thread. Following that thread, I realized that the 'advanced' settings had already addressed the issue, but the coders went ahead and disabled the javascript resizeto() and moveto() functions, while checking the opener and other properties to determine the "main" window.

I agree that the original 'bug' was bogus, and the advanced setting to disable resizing could have become the default, but still easily changed.

more options

So bad, Firefox 8 blocks popup from bookmarklets, Firefox isn't suck enough ? I'm a Firefox fan, but now I think I have to move to Opera.

글쓴이 Cattleya 수정일시

more options

Quote: "Firefox 8 blocks popup from bookmarklets".

I also find that quit inconvenient.
I now need to enable the pop-up blocker to use bookmarklets from www.squarefree.com to display CSS and JS files and ones that I made myself.
Well at least that still works, a lot of other bookmarklet have stopped working and you now need to use the Scratchpad to run JS code.

글쓴이 cor-el 수정일시

more options

Now I wonder if I get it right:

So a window is not allowed to be resized by itself, as then it is considered to be the "main window".

Another window that must have created this window must do it instead.


So therefore my popup that shows an image may not be resized simply by itself after getting the image width and height. So a solution would be to write a script that creates a <div> with absolute position that floats ontop of normal content that is removed on click. This <div> can then be changed in size as desired.


Basically mozilla found that the functionality as provided by window.resizeTo should be removed entirely. I wonder what will become of this, if FF remains alone on this point of view I sure hope they will reconsider. If not I will either have to recode my popups into emerging <div>'s that float, or simply wait untill users find other browsers more suited to browse the web.

글쓴이 jdvb 수정일시

  1. 1
  2. 2