Commit Graph

73 Commits

Author SHA1 Message Date
Valentin Gosu
273bb1a24d Bug 1448330 - Make nsIURI.clone a private method r=mayhemer
MozReview-Commit-ID: 1efpeaEPaXP
2018-06-14 13:05:43 +02:00
Kris Maglione
fd7e9e6a69 Bug 1456035: Part 4 - Convert callers of XPCOMUtils.generateQI to ChromeUtils.generateQI. r=mccr8
This also removes any redundant Ci.nsISupports elements in the interface
lists.

This was done using the following script:

acecb401b7/processors/chromeutils-generateQI.jsm

MozReview-Commit-ID: AIx10P8GpZY
2018-04-22 20:55:06 -07:00
Kris Maglione
4d631d9048 Bug 1443983: Part 2 - Remove remaining interpositions. r=mconley
MozReview-Commit-ID: AHwNsBB7OAQ
2018-03-07 18:10:24 -08:00
Florian Quèze
f6add2cafd Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
Florian Quèze
f1a55f73f8 Bug 1440284 - change this.EXPORTED_SYMBOLS back to var EXPORTED_SYMBOLS in JS modules, r=mccr8. 2018-02-23 20:50:01 +01:00
Andrew McCreight
272cee1e65 Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG
2018-02-06 09:36:57 -08:00
Eugen Sawin
badf52df48 Bug 1423229 - [1.3] Enable nsIClassifiedChannel interface in onSecurityChange callbacks. r=mconley 2018-02-05 22:10:34 +01:00
Andreea Pavel
f9f17dd6ff Backed out 6 changesets (bug 1423229) for failing browser chrome at browser/base/content/test/siteIdentity/browser_bug1045809.js and firefox functional at testing/firefox-ui/tests/functional/security/test_mixed_script_content_blocking.py TestMixedScriptContentBlocking.test_mixed_content_page and mochitest devtools at devtools/client/webconsole/test/browser_webconsole_block_mixedcontent_securityerrors.js on a CLOSED TREE
Backed out changeset 2ee49f44e617 (bug 1423229)
Backed out changeset 30d1575f5b16 (bug 1423229)
Backed out changeset 39d76cb8c73e (bug 1423229)
Backed out changeset 8ff1f049ac96 (bug 1423229)
Backed out changeset c86887b7f327 (bug 1423229)
Backed out changeset 5417194f3778 (bug 1423229)
2018-02-03 01:12:45 +02:00
Eugen Sawin
2fa64498c9 Bug 1423229 - [1.1] Enable nsIClassifiedChannel interface in onSecurityChange callbacks. r=mconley 2018-02-02 22:36:08 +01:00
Kris Maglione
0bb74efdf1 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Cosmin Sabou
f09d6d985d Backed out 3 changesets (bug 1431533) for Android mochitest failures on testEventDispatcher on a CLOSED TREE
Backed out changeset a1eca62826a1 (bug 1431533)
Backed out changeset 34c999fa006b (bug 1431533)
Backed out changeset e2674287e57f (bug 1431533)
2018-01-30 07:17:48 +02:00
Kris Maglione
fd67f090b2 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Brindusan Cristian
483ba301cb Backed out 2 changesets (bug 1431533) for ESlint failures on a CLOSED TREE
Backed out changeset 6e56f4c8843e (bug 1431533)
Backed out changeset 12fc4dee861c (bug 1431533)
2018-01-30 02:32:43 +02:00
Kris Maglione
683a97d172 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Bill McCloskey
65964675c9 Bug 1412456 - Send document CPOW as well as window CPOW (r=mconley)
Currently, if you try to use contentDocumentAsCPOW, you'll get an
exception saying that browser code is not allowed to use CPOWs. That's
because we cleverly tried to get the CPOW via
contentWindowAsCPOW.document. However, this property access happens
inside remote-browser.xul, where CPOWs are forbidden. So it doesn't
work.

MozReview-Commit-ID: ANWad4tvGpU
2017-12-07 12:55:19 -08:00
Andreea Pavel
26ac595cba Backed out 9 changesets (bug 1412456) for crashing talos g2 and unexpected network connections in browser-chrome's browser_searchEngine_behaviors.js r=backout a=backout on a CLOSED TREE
Backed out changeset 0c01a98f4fd5 (bug 1412456)
Backed out changeset 27077db47231 (bug 1412456)
Backed out changeset f35ec2a884f8 (bug 1412456)
Backed out changeset 602b30ac3c69 (bug 1412456)
Backed out changeset b1ff1050c589 (bug 1412456)
Backed out changeset f100d953f9eb (bug 1412456)
Backed out changeset d85af60fe259 (bug 1412456)
Backed out changeset 736f38486832 (bug 1412456)
Backed out changeset 13a637602dc2 (bug 1412456)
2017-12-07 12:20:21 +02:00
Bill McCloskey
f179983e05 Bug 1412456 - Send document CPOW as well as window CPOW (r=mconley)
Currently, if you try to use contentDocumentAsCPOW, you'll get an
exception saying that browser code is not allowed to use CPOWs. That's
because we cleverly tried to get the CPOW via
contentWindowAsCPOW.document. However, this property access happens
inside remote-browser.xul, where CPOWs are forbidden. So it doesn't
work.

MozReview-Commit-ID: ANWad4tvGpU
2017-12-06 21:16:57 -08:00
Dorel Luca
81b4b85d01 Backed out 8 changesets (bug 1412456) for ESlint failure on browser_urlbarKeepStateAcrossTabSwitches.js:13:49 r=backout on a CLOSED TREE
Backed out changeset 0e88de036c55 (bug 1412456)
Backed out changeset 49b93f807db0 (bug 1412456)
Backed out changeset 039e980b7dc6 (bug 1412456)
Backed out changeset c7698410ddbd (bug 1412456)
Backed out changeset e56a1ba26b7c (bug 1412456)
Backed out changeset 0c4506e124ac (bug 1412456)
Backed out changeset a7aec2ce903b (bug 1412456)
Backed out changeset 3e9fb71f1e8e (bug 1412456)
2017-12-07 07:09:33 +02:00
Bill McCloskey
fce93057f6 Bug 1412456 - Send document CPOW as well as window CPOW (r=mconley)
Currently, if you try to use contentDocumentAsCPOW, you'll get an
exception saying that browser code is not allowed to use CPOWs. That's
because we cleverly tried to get the CPOW via
contentWindowAsCPOW.document. However, this property access happens
inside remote-browser.xul, where CPOWs are forbidden. So it doesn't
work.

MozReview-Commit-ID: ANWad4tvGpU
2017-12-06 20:46:58 -08:00
Mark Banner
62d89b0f75 Bug 1417940 - Change various instances of manually calling getService to use Services.jsm in toolkit/. r=mossop
MozReview-Commit-ID: 8eEhjFZc4mT
2017-11-09 16:36:57 +00:00
Andreea Pavel
4d905c03dd Backed out 1 changesets (bug 1417940) for failing browser-chrome browser/components/contextualidentity/test/browser/browser_aboutURLs.js r=backout on a CLOSED TREE
Backed out changeset 2c2f807e23b5 (bug 1417940)
2017-11-17 18:08:45 +02:00
Mark Banner
0841e15072 Bug 1417940 - Change various instances of manually calling getService to use Services.jsm in toolkit/. r=mossop
MozReview-Commit-ID: 8eEhjFZc4mT
2017-11-09 16:36:57 +00:00
Dan Banner
5af4450327 Bug 1408777 - Automatically fix instances of missing semicolons in the tree. r=Standard8
MozReview-Commit-ID: Jm8BRgt6mIv
2017-10-15 20:50:39 +01:00
Mike de Boer
0a5cfc15fd Bug 1397989 - Make sure to only set non-empty values as the content-type of a document in the remote browser binding. r=mconley
What happens is the following:
 - browser-child.js sends a statechange up to RemoteWebProgress.jsm that contains
   a `documentContentType` value of `null`, along with `requestURI` and `originalRequestURI`
   _after_ other state changes that did send a valid content-type.
 - The content-type is used by the WebProgressListener in browser.js to toggle the
   disabled state of the 'isImage' broadcaster.
 - The 'isImage' broadcaster is used by the 'cmd_find' and 'cmd_findAgain' commands to
   determine whether they should be enabled. In this case: not.
The fix here is to _not_ set the documentContentType in the browser binding when
it's `null`.

MozReview-Commit-ID: IELoCrnOH0j
2017-10-10 19:14:01 +02:00
Kershaw Chang
01ecffb3a1 Bug 1247843 - Part 1: Add new property - contentRequestContextID. r=mconley, r=hurley 2017-09-20 20:08:00 -04:00
Eugen Sawin
2b64514c8a Bug 1355542 - [1.1] Respect filter mask in remote web progress notification dispatching. r=felipe 2017-04-13 23:17:23 +02:00
Jared Wein
5a181760cc Bug 1348068 - Enable the key-spacing rule for eslint and fix the related issues. r=standard8
Running eslint with --fix didn't fix many of the issues. The majority here had to be fixed by hand but a significant majority of the issues were related to a few files that I was able to use find-and-replace with. I regret not making this in to separate commits of the hand-fixes and the fixes from --fix but I don't recall --fix fixing any of the issues.

MozReview-Commit-ID: ANyg2qfo3Qx
2017-03-21 14:29:43 -04:00
Florian Quèze
13cfe1d3f3 Bug 1329182 - remove trailing newURI null parameters in toolkit/, r=jaws. 2017-01-09 20:27:25 +01:00
Jared Wein
242ab87626 Bug 1326511 - Enable brace-style and no-multi-spaces eslint rules for toolkit. r=MattN
MozReview-Commit-ID: FuVu8skcqOe
2016-12-30 21:47:25 -05:00
Jared Wein
e3149c378f Bug 1325464 - Enable object-shorthand rule and run 'mach eslint --fix' with the rule enabled. r=MattN
MozReview-Commit-ID: 7E7LPorrEje
2016-12-29 18:34:54 -05:00
Wes Kocher
2d7553dcfd Backed out 3 changesets (bug 1325464) for xpcshell failures a=backout
Backed out changeset 562ddc32cc21 (bug 1325464)
Backed out changeset cd10db6087dd (bug 1325464)
Backed out changeset 4079437c4648 (bug 1325464)
2016-12-29 14:05:44 -08:00
Jared Wein
34e228f767 Bug 1325464 - Enable object-shorthand rule and run 'mach eslint --fix' with the rule enabled. r=MattN
MozReview-Commit-ID: 8WoGr8i6oCR
2016-12-29 15:20:47 -05:00
Dave Townsend
e7b1b3284f Bug 1316882: Turn on space-before-function-paren eslint rule (toolkit). r=jaws
MozReview-Commit-ID: FGFwg6TYkvm
2016-11-11 15:22:34 -08:00
Gijs Kruitbosch
f10989479e Bug 1199934 - page shouldn't be able to trap/revert the location bar by hash/replacestate changes, r=jaws
MozReview-Commit-ID: HsmmHsUtU0h
2016-04-13 19:32:45 +01:00
Gijs Kruitbosch
bd9f1005b4 Bug 1254657 - change how we send Content:LoadURIResult to avoid upsetting RemoteWebProgress.jsm, r=mconley
MozReview-Commit-ID: 7GR6H19ZUuN
2016-03-08 20:04:10 +00:00
Gijs Kruitbosch
3c7d01a924 Bug 798249 - track when we're 'inside' a loadURI call when dealing with Stop() calls resulting from the same, r=mconley
MozReview-Commit-ID: 48xQn03HtjZ
2016-02-16 14:08:14 +00:00
Gijs Kruitbosch
6a2f5c957c Backed out changeset 2331bc8e11a7 (bug 798249) for leaks and intermittent about:home uncaught errors
MozReview-Commit-ID: FWORd2nzGbl
2016-03-08 12:26:54 +00:00
Gijs Kruitbosch
d80235f625 Bug 798249 - track when we're 'inside' a loadURI call when dealing with Stop() calls resulting from the same, r=mconley
MozReview-Commit-ID: 48xQn03HtjZ
2016-02-16 14:08:14 +00:00
Gijs Kruitbosch
027b0077c5 Bug 1088710 - part 2: make it work on e10s, r=mconley
MozReview-Commit-ID: FhlfqJ1gmjR
2016-02-24 15:24:20 +00:00
Mike Conley
b62187d342 Bug 1246115 - Make gSafeBrowsing set the phishing menu item correctly. r=Gijs
Unfortunately, when onLocationChange is fired for an attack site for
the about:blocked error page that we display, content.document has not
been updated with the loaded error document, so
content.document.documentURI will appear to be the previous page that
had been loaded. In this patch, we update the parent's cache of
documentURI in onStateChange as well, since this seems to be fired
after the error page has been loaded.

MozReview-Commit-ID: 1yLAw0JTEC6
2016-02-10 15:49:50 -05:00
Mike Conley
2f93a53dee Bug 1233803 - Register RemoteWebNavigation as a standard js-implemented XPCOM component. r=felipe
This allows us to add shims to the implementation for add-ons.
2016-01-12 16:44:08 -05:00
Kris Maglione
8629e53f82 Bug 1193837: Part 1 - Cache the last known inner window ID of remote browsers in parent process. r=billm 2015-11-30 17:56:01 -08:00
Wes Kocher
4e87701a29 Backed out 2 changesets (bug 1193837) because the web extension tests are failing CLOSED TREE
Backed out changeset ebe2433705a5 (bug 1193837)
Backed out changeset c3307a5ac126 (bug 1193837)
2015-12-02 13:23:18 -08:00
Kris Maglione
d83ed1830e Bug 1193837: Part 1 - Cache the last known inner window ID of remote browsers in parent process. r=billm 2015-11-30 17:56:01 -08:00
Bill McCloskey
5f69537462 Bug 1081879 - [e10s] WebProgress shims (r=mconley) 2015-04-29 17:23:48 -07:00
Bill McCloskey
5327bb85fd Bug 1140129 - Don't clear tab title when location changes (r=Mossop) 2015-04-13 18:11:49 -07:00
Dave Townsend
51d27289fa Bug 1073462: Send synthetic property with Content:LocationChange message. r=felipe
The browser.isSynthetic property is needed by the zoom code to detect when to
apply the correct zoom level. In e10s it is currently only set when a new
document is created which means we don't set it right for history navigation.
This sends it with the Content:LocationChange message which is where it is
needed by the zoom code anyway.
2015-03-03 16:58:53 -08:00
Dave Townsend
7fa05a5ed4 Bug 1087966: Fix tab detach in e10s windows. r=mconley
When swapping docshells we also have to swap any properties on remote-browsers
that are cached from the content process. This includes things like the
remoteWebNavigation etc. which in turn cache content information. Some of
these also maintain message listeners that we have to switch to the new browser
and message manager.
2015-02-18 16:47:43 -08:00
Mike Conley
7284b363e5 Bug 1077168 - Have RemoteWebProgress dispatch DOMWindowID's to nsIWebProgressListener's. r=felipe. 2015-02-10 12:28:31 -05:00
Dave Townsend
725563bad3 Bug 1081891: Only reset the browser title when we start to switch to a new document location. r=mconley 2015-02-18 11:57:45 -08:00