Commit Graph

25 Commits

Author SHA1 Message Date
Jim Porter
f665b313f3 Bug 1552017 - Expand the kinds of URLs that can cancel content JS when navigating; r=smaug
This patch makes several changes to the kinds of URLs where we can cancel
content JS when navigating between them:

 1) When navigating directly to a URL (e.g. by typing something into the
    location bar and hitting Enter), we allow canceling content JS if the URLs
    differ in any way *except* their ref ("#"). To help with this, we also
    attempt to fix up the URL (e.g. by prepending "http://" to it).

 2) When navigating through history, we allow canceling content JS if the
    `prePath` part of the URLs differ. Most notably, this allows canceling
    content JS when one of the URLs is an `about:` page (e.g. when hitting the
    Home button).

 3) We explicitly disallow cancelling content JS if the currently-running JS
    is trusted or if the page being navigated away from is anything but
    http(s): or file:.

 4) We also disallow cancelling content JS for windows that are still being
    created (e.g. when creating a new tab or window via `window.open`). For
    more background on this, see the comments about `mCreatingWindow` in
    dom/ipc/BrowserParent.h.

 5) We ensure that, when attempting to cancel JS, the tab ID of the
    currently-running script matches the original tab that requested the
    cancellation. This avoids a race condition in which a particular JSContext
    has already moved on to executing another tab's JS by the time we hit our
    interrupt callback.

Differential Revision: https://phabricator.services.mozilla.com/D31875

--HG--
extra : moz-landing-system : lando
2019-06-04 16:19:27 +00:00
Boris Zbarsky
9c5da5f234 Bug 1489308 part 9. Remove now-unused wyciwyg bits. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D17327

--HG--
rename : dom/html/test/browser_refresh_wyciwyg_url.js => dom/html/test/browser_refresh_after_document_write.js
rename : dom/html/test/file_refresh_wyciwyg_url.html => dom/html/test/file_refresh_after_document_write.html
extra : moz-landing-system : lando
2019-02-28 01:09:48 +00:00
Mark Hammond
12dee809d5 Bug 1107883 - support ipv6 URLs in the awesomebar with unified autocomplete enabled. r=mak, r=smaug 2015-05-28 17:21:58 +10:00
Gijs Kruitbosch
aff56ac9f2 Bug 1057166 - move FHR reporting out of docshell and fix test to work in e10s, r=bz
--HG--
extra : rebase_source : d5b9122803f306ab08deb85b953bbc7129e182f0
2014-09-11 14:50:55 +01:00
Gijs Kruitbosch
c7d764da67 Backed out changeset 3cc898b3ef5d (bug 1057166) for build bustage
--HG--
extra : rebase_source : 724c8cb9e4c021a523a58af7e2f53a23aaa1901a
2014-10-01 11:46:28 +01:00
Gijs Kruitbosch
22e6962ade Bug 1057166 - move FHR reporting out of docshell and fix test to work in e10s, r=bz 2014-09-11 14:50:55 +01:00
Blair McBride
e310a71f9c Bug 1057186 - Add a way to specify that nsDefaultURIFixup should obey the domain whitelist when not using keyword searches. r=smaug
--HG--
extra : transplant_source : %92E.%2CV%E0%80%A4%B6%1B%E8D%91%0Ft%F3%5D%13%88%96
2014-08-29 15:25:02 +12:00
Nigel Babu
d2e661077b Backed out changeset 7f58c77bb165 (bug 1057186) for xpshell bustage 2014-09-07 21:00:33 +05:30
Blair McBride
fc48882068 Bug 1057186 - Add a way to specify that nsDefaultURIFixup should obey the domain whitelist when not using keyword searches. r=smaug
--HG--
extra : transplant_source : %D5%AC%02%CE34%F8%D8.%7E%87%9AZ%C0%B5%21%16%F5H%D3
2014-08-29 15:25:02 +12:00
Gijs Kruitbosch
98f4f1ce42 Bug 1042519 - test. should result in a keyword lookup instead of an error page, r=bz,mak
Also taking the opportunity to rework the nsIURIFixupInfo interface to use more sensible booleans, and the relevant test to specify outcomes directly, instead of trying to use the same logic as the implementation to infer them from the input.

--HG--
extra : rebase_source : 43b54b9ff412c05dc3fd2575a80919fc085d2d49
2014-07-25 11:46:07 +01:00
Gijs Kruitbosch
343ce35d7f Bug 693808 - part 1: entering numbers+Enter in the location bar should bring search results immediately if domain is not whitelisted, r=bz 2014-04-24 23:42:00 +01:00
Henri Sivonen
3874104ae5 Bug 945627 - Remove tracking of URL UTF-8ness. r=dao,bzbarsky. 2013-12-05 18:03:12 +02:00
Christian Legnitto
3948d15ac9 Bug 935377 - Firefox should fix common scheme typos, r=bz 2013-11-17 12:16:45 -08:00
Mike de Boer
d9866baf99 Bug 862401: make sure nsDefaultURIFixup::KeywordToURI propagates POST data. sr=bz, r=gavin
--HG--
rename : browser/base/content/test/browser_keywordSearch.js => browser/base/content/test/browser_keywordSearch_postData.js
rename : content/base/test/bug435425.sjs => browser/base/content/test/print_postdata.sjs
2013-05-01 13:04:21 +02:00
Aryeh Gregor
d0ad5a7d0c Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Gervase Markham
82ff7027aa Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Masatoshi Kimura
d6147c4165 Bug 691690 - Part 1: Add UTF-8 flag to createFixupURI. r=bz 2011-10-19 16:39:07 +09:00
bzbarsky%mit.edu
e80a83a9fd Remove the keyword: protocol handler. Expose the functionality on nsIURIFixup
instead.  Bug 337339 and bug 264830, r=biesi, sr=darin
2006-05-16 03:02:28 +00:00
gerv%gerv.net
9d2ee4928c Bug 236613: change to MPL/LGPL/GPL tri-license. 2004-04-17 21:52:36 +00:00
bzbarsky%mit.edu
f06faf1267 Make URI fixup work with UTF8 strings, mostly... Bug 211181, r=adamlock, sr=darin 2003-07-02 00:39:51 +00:00
caillon%returnzero.com
a5cd43f732 Add a method on the fixup object to strip off wyciwyg from nsIURIs
Fixes bug 164006, wyciwyg: should not appear in tab title
r=jag sr=bzbarsky
2002-09-11 01:44:13 +00:00
alecf%netscape.com
9d46c7a238 fix for bug 12493 - layout should canonicalize urls before asking global history for visited status
r=radha, sr=darin
2002-08-06 23:51:42 +00:00
locka%iol.ie
6283a1fddc Moved fixup out of nsWebShell and into nsDefaultURIFixup. b=109309 r=ccarlen@netscape.com sr=rpotts@netscape.com 2001-12-19 15:58:58 +00:00
locka%iol.ie
26f0e8f362 Add fixup for view-source: URLs. b=78810 r=bzbarsky@mit.edu sr=blizzard@mozilla.org 2001-11-06 22:55:30 +00:00
locka%iol.ie
1720949638 Moved URI fixup code out of docshell and into a global service. b=51702, sr=waterson@netscape.com 2000-11-08 21:00:37 +00:00