Build: anything with bug 723808 fixed.
Steps to reproducs:
1) Follow instructions at http://lifehacker.com/240552/firefox-tip--how-to-set-up-multi+parameter-keyword-searches
2) Hit Cmd-N
3) Type in the bookmark keyword for the bookmark in step 1
ACTUAL RESULTS: JS doesn't run, since it has no principal to do so with
EXPECTED RESULTS: Make it work.
The problem is that about:newtab is system-principal, and we're trying to run the JS against it.
(In reply to Boris Zbarsky (:bz) from comment #0)
> Perhaps we should consider replacing system-principal pages with about:blank
This would be ideal (for more than just this bug), but I was under the impression that it was kind of hard. Or did you mean a front-end fix?
Does just calling CreateAboutBlankContentViewer() not do the right thing?
Created attachment 600103 [details] [diff] [review]
I'm not confident this patch is suitable to land, but it's a quick hack to test whether this approach would work. It doesn't seem to work (the new tab page stays loaded and the JS doesn't run), but I don't really know why.
*** Bug 739387 has been marked as a duplicate of this bug. ***
*** Bug 762626 has been marked as a duplicate of this bug. ***
> Perhaps we should consider replacing system-principal pages with about:blank before
Problem is, "location=" and "location.replace" don't seem to work with disallowInheritPrincipal.
*** Bug 791407 has been marked as a duplicate of this bug. ***
*** Bug 776560 has been marked as a duplicate of this bug. ***
Workaround: Change the new tab page as described here https://support.mozilla.org/en-US/kb/new-tab-page-show-hide-and-customize-top-sites#w_how-do-i-turn-the-new-tab-page-off
Setting it to e.g. about:blank makes the bookmarklets work again. This is obviously only viable if you think it's acceptable to get a blank page when opening a new tab.
Mass-move to Firefox::New Tab Page.
Filter on new-tab-page-component.
Now that browser.newtab.url has been disabled, imo, this is a great annoiance.
You should probably just install https://addons.mozilla.org/en-US/firefox/addon/new-tab-override/ for now like I just did, pending bug 776477 getting fixed.
Thanks a lot Boris, this add-on is what I want, perfect :-)