Цей вебсайт матиме обмежену функціональність, доки ми проводимо його обслуговування для поліпшення роботи. Якщо прочитана стаття не розв'язала вашу проблему і ви хочете поставити питання, наша спільнота підтримки з радістю допоможе вам на @FirefoxSupport у Twitter та /r/firefox на Reddit.

Шукати в статтях підтримки

Остерігайтеся нападів зловмисників. Mozilla ніколи не просить вас зателефонувати, надіслати номер телефону у повідомленні або поділитися з кимось особистими даними. Будь ласка, повідомте про підозрілі дії за допомогою меню “Повідомити про зловживання”

Докладніше

Ця тема перенесена в архів. Якщо вам потрібна допомога, запитайте.

Why can't execute javascript from address bar in FireFox 10 ?

  • 5 відповідей
  • 8 мають цю проблему
  • 4 перегляди
  • Остання відповідь від cor-el

more options

After I update to FireFox 10 I am no longer able to execute javascript from the address bar. (instead of writting a url I could simply write: "javascript:<javascript here>;" and it worked fine). Is that a bug or this is going to be the policy from now on ? (I hope not ... I don't want to switch browser).

After I update to FireFox 10 I am no longer able to execute javascript from the address bar. (instead of writting a url I could simply write: "javascript:<javascript here>;" and it worked fine). Is that a bug or this is going to be the policy from now on ? (I hope not ... I don't want to switch browser).

Обране рішення

It is actually the opposite. All scripts should work as a bookmarked bookmarklet and may not work in the Scratchpad or the command line of the Web Console. Bookmarklets that open a new window (tab) via window.open() do not work properly when run via the Scratch pad.

Some bookmarklets code only work if an XUL window like about:addons or about:config is open.
That is the case with the above mentioned move and resize JavaScript codes on the main window.

Читати цю відповідь у контексті 👍 0

Усі відповіді (5)

more options

That change came in Firefox 6.0. It is a security fix in Firefox.
https://bugzilla.mozilla.org/show_bug.cgi?id=656433

Most JavaScript commands will still work from a Bookmarklet, but a few need to be run from the Scratchpad.
Firefox > Web Developer > Scratchpad or {Shift+F4}

http://www.bookmarklets.com/
http://en.wikipedia.org/wiki/Bookmarklet

As far as scripts that resize the main window.
https://bugzilla.mozilla.org/show_bug.cgi?id=656433

more options

Вибране рішення

It is actually the opposite. All scripts should work as a bookmarked bookmarklet and may not work in the Scratchpad or the command line of the Web Console. Bookmarklets that open a new window (tab) via window.open() do not work properly when run via the Scratch pad.

Some bookmarklets code only work if an XUL window like about:addons or about:config is open.
That is the case with the above mentioned move and resize JavaScript codes on the main window.

more options

Most vs All is more like partially correct rather than opposites.

Any hints on which bookmarklet code only works in an XUL about: window?
All XUL about: windows or just certain ones?

more options

Thanks for the answers... I guess I will get back to using IE again... I find it very useful to write and execute javascript code from the location bar.

more options

I think that NoScript has a setting that allows to run JavaScript via the location bar.