Граф коммитов

118 Коммитов

Автор SHA1 Сообщение Дата
Mark Banner dba6983e75 Bug 1415265 - Remove now unnecessary .eslintrc.js files or entries. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D23850

--HG--
extra : moz-landing-system : lando
2019-03-28 09:38:14 +00:00
Mike de Boer 481ae95c00 Bug 1524593 - nsISearchService (aka nsIBrowserSearchService, previously) refactor to be mostly an asynchronous, in preparation of WebExtension engines. r=daleharvey
This is a rollup of all the patches that have landed on the cedar project branch:

891252fdd0
Bug 1492475 - Part 1: Migrate most, if not all nsSearchService consumers to use async APIs. r=florian

79b2eb2367
Bug 1492475 - Part 2: Move nsIBrowserSearchService.idl to toolkit/components/search/nsISearchService.idl and update references. r=florian

a947d3cdf0
Bug 1492475 - Part 3: The search service init() method should simply return a Promise. r=florian

c1e172dfac
Bug 1492475 - Part 4: Remove the synchronous initialization flow. r=florian

cd41189eac
Bug 1492475 - Part 5: Since async initialization of the search service now is implicit behavior, remove the distinctive verbiage used internally. r=florian

2ae7189dfa
Bug 1492475 - Part 6: Update the cache build task to work with an actual Promise and re-initialize only once at the same time - all to fix race conditions here. r=florian

c8ee92973f
Bug 1492475 - Part 7: Make the region fetch not block the init flow, to ensure it's as fast as possible. r=florian

c44e674e16
Bug 1492475 - Part 8: Introduce an init flag, which can only be used privately, that allows to explicitly skip waiting for the region check process to complete. r=florian

6c79eaf1d3
Bug 1492475 - Part 9: Update unit tests to stop using 'currentEngine', in favor of 'defaultEngine'. r=Standard8

21b3aa17ee
Bug 1492475 - Part 10: Update unit tests to be fully aware of the new, async signatures of the search service API and remove sync init flow tests. r=mkaply,florian

ce5ba69019
Bug 1492475 - Part 11: Repair incorrect usage of the `identifier` property of nsISearchEngine instances. r=florian

fd177a7994
Bug 1518543 - Fix up the Android (Fennec) nsISearchService shim to work with the new asynchronous API. r=florian

3653d8ee22
Bug 1523708 - Change the search service interaction in the show-heartbeat action to use the new async API. r=florian

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

--HG--
rename : netwerk/base/nsIBrowserSearchService.idl => toolkit/components/search/nsISearchService.idl
extra : moz-landing-system : lando
2019-02-02 11:27:21 +00:00
Myk Melez 25349d2601 Bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks) r=mossop,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D17526

--HG--
extra : moz-landing-system : lando
2019-01-30 17:26:25 +00:00
Kris Maglione e930b89c34 Bug 1514594: Part 3 - Change ChromeUtils.import API.
***
Bug 1514594: Part 3a - Change ChromeUtils.import to return an exports object; not pollute global. r=mccr8

This changes the behavior of ChromeUtils.import() to return an exports object,
rather than a module global, in all cases except when `null` is passed as a
second argument, and changes the default behavior not to pollute the global
scope with the module's exports. Thus, the following code written for the old
model:

  ChromeUtils.import("resource://gre/modules/Services.jsm");

is approximately the same as the following, in the new model:

  var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");

Since the two behaviors are mutually incompatible, this patch will land with a
scripted rewrite to update all existing callers to use the new model rather
than the old.
***
Bug 1514594: Part 3b - Mass rewrite all JS code to use the new ChromeUtils.import API. rs=Gijs

This was done using the followng script:

https://bitbucket.org/kmaglione/m-c-rewrites/src/tip/processors/cu-import-exports.jsm
***
Bug 1514594: Part 3c - Update ESLint plugin for ChromeUtils.import API changes. r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D16747
***
Bug 1514594: Part 3d - Remove/fix hundreds of duplicate imports from sync tests. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16748
***
Bug 1514594: Part 3e - Remove no-op ChromeUtils.import() calls. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16749
***
Bug 1514594: Part 3f.1 - Cleanup various test corner cases after mass rewrite. r=Gijs
***
Bug 1514594: Part 3f.2 - Cleanup various non-test corner cases after mass rewrite. r=Gijs

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

--HG--
extra : rebase_source : 359574ee3064c90f33bf36c2ebe3159a24cc8895
extra : histedit_source : b93c8f42808b1599f9122d7842d2c0b3e656a594%2C64a3a4e3359dc889e2ab2b49461bab9e27fc10a7
2019-01-17 10:18:31 -08:00
Jared Wein b12a0d294c Bug 1521170 - Add a rule that prevents calling some Array and String accessor methods without using the return value. r=Standard8,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D17020

--HG--
extra : moz-landing-system : lando
2019-01-23 17:03:32 +00:00
shindli b4fc89763a Backed out changeset c9f087ff5a52 (bug 1521170) for X2 / TV failures CLOSED TREE 2019-01-23 02:29:37 +02:00
Jared Wein cecdd9632d Bug 1521170 - Add a rule that prevents calling some Array and String accessor methods without using the return value. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D17020

--HG--
extra : moz-landing-system : lando
2019-01-22 23:02:24 +00:00
Christoph Kerschbaumer 6756032512 Bug 1513241: Update frontend consumers of loadURI and pass loadURIOptions dictionary. r=gijs 2019-01-11 12:44:20 +01:00
Toby Ward 3b7ee7c100 Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (manual fixes) r=bzbarsky
Implemented the manual linting fixes for docshell/test/navigation, docshell/test/unit and docshell/test/unit_ipc
Depends on D9430

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

--HG--
extra : moz-landing-system : lando
2018-11-07 13:49:05 +00:00
Toby Ward 75e6200c17 Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (automatic fixes only). r=bzbarsky
Enabled ESLint for:

* docshell/test/navigation/**
* docshell/test/unit/**
* docshell/test/unit_ipc/**

Changed .eslintignore to allow for this and ran ./mach eslint --fix on the above directories and checked automatic fixes

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

--HG--
extra : moz-landing-system : lando
2018-11-07 13:55:47 +00:00
Dorel Luca 6617a8c922 Backed out 2 changesets (bug 1496082) for mochitest faiures in docshell/test/navigation/test_bug270414.html
Backed out changeset 776b54474da9 (bug 1496082)
Backed out changeset 0852730f9ecd (bug 1496082)
2018-11-06 22:40:36 +02:00
Toby Ward a69d8ab823 Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (manual fixes) r=bzbarsky
Implemented the manual linting fixes for docshell/test/navigation, docshell/test/unit and docshell/test/unit_ipc
Depends on D9430

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

--HG--
extra : moz-landing-system : lando
2018-11-06 17:03:39 +00:00
Toby Ward 4083f33603 Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (automatic fixes only). r=bzbarsky
Enabled ESLint for:

* docshell/test/navigation/**
* docshell/test/unit/**
* docshell/test/unit_ipc/**

Changed .eslintignore to allow for this and ran ./mach eslint --fix on the above directories and checked automatic fixes

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

--HG--
extra : moz-landing-system : lando
2018-11-06 17:05:39 +00:00
Bogdan Tara 98c46b95b5 Backed out 2 changesets (bug 1496082) for test_bug270414.html failures CLOSED TREE
Backed out changeset 74780d0a4848 (bug 1496082)
Backed out changeset 4f87e383a807 (bug 1496082)
2018-11-06 17:58:24 +02:00
Toby Ward dec5a37fbe Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (manual fixes) r=bzbarsky
Implemented the manual linting fixes for docshell/test/navigation, docshell/test/unit and docshell/test/unit_ipc
Depends on D9430

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

--HG--
extra : moz-landing-system : lando
2018-11-06 14:54:38 +00:00
Toby Ward 415ae552bb Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (automatic fixes only). r=bzbarsky
Enabled ESLint for:

* docshell/test/navigation/**
* docshell/test/unit/**
* docshell/test/unit_ipc/**

Changed .eslintignore to allow for this and ran ./mach eslint --fix on the above directories and checked automatic fixes

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

--HG--
extra : moz-landing-system : lando
2018-11-06 14:48:43 +00:00
Andreas Farre 89cb220346 Bug 1480198 - Construct nsDocShell objects inside BrowsingContext. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D7400

--HG--
extra : moz-landing-system : lando
2018-11-05 12:43:10 +00:00
Jonathan Kingston 4248b4c554 Bug 1490257 - Pass triggeringPrincipal to test code. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D10882

--HG--
extra : moz-landing-system : lando
2018-11-05 14:05:47 +00:00
Gurzau Raul 424b125b93 Backed out changeset 523ff2753dea (bug 1490257) for causing Bug 1503757 a=backout 2018-11-01 15:27:30 +02:00
Jonathan Kingston 873b26107e Bug 1490257 - Add asserts into loadURI where we imply SystemPrincipal. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D10221

--HG--
extra : moz-landing-system : lando
2018-10-31 18:00:40 +00:00
Dorel Luca 451e26f0c6 Backed out changeset 8d7987ea4fb1 (bug 1490257) for causing android failures. CLOSED TREE 2018-10-15 14:39:00 +03:00
Jonathan Kingston 8bcd10a7ab Bug 1490257 - Add asserts and remove implied system triggering principal code r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D8368

--HG--
extra : moz-landing-system : lando
2018-10-15 06:29:45 +00:00
Mark Banner fe8b12afbf Bug 1417383 - Add initial .eslintrc.js files for docshell test directories (not enabled yet). r=qdot
Depends on D7053

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

--HG--
extra : moz-landing-system : lando
2018-10-02 07:51:39 +00:00
shindli 71f504e2e3 Backed out 3 changesets (bug 1417383) for bustages in /builds/worker/workspace/build/src/docshell/test/mochitest/moz.build CLOSED TREE
Backed out changeset 44d07650e6fe (bug 1417383)
Backed out changeset d0d9cd85f3db (bug 1417383)
Backed out changeset ddaef0a8de5f (bug 1417383)

--HG--
rename : docshell/test/mochitest/bug123696-subframe.html => docshell/test/bug123696-subframe.html
rename : docshell/test/mochitest/bug404548-subframe.html => docshell/test/bug404548-subframe.html
rename : docshell/test/mochitest/bug404548-subframe_window.html => docshell/test/bug404548-subframe_window.html
rename : docshell/test/mochitest/bug413310-post.sjs => docshell/test/bug413310-post.sjs
rename : docshell/test/mochitest/bug413310-subframe.html => docshell/test/bug413310-subframe.html
rename : docshell/test/mochitest/bug529119-window.html => docshell/test/bug529119-window.html
rename : docshell/test/mochitest/bug530396-noref.sjs => docshell/test/bug530396-noref.sjs
rename : docshell/test/mochitest/bug530396-subframe.html => docshell/test/bug530396-subframe.html
rename : docshell/test/mochitest/bug570341_recordevents.html => docshell/test/bug570341_recordevents.html
rename : docshell/test/mochitest/bug668513_redirect.html => docshell/test/bug668513_redirect.html
rename : docshell/test/mochitest/bug668513_redirect.html^headers^ => docshell/test/bug668513_redirect.html^headers^
rename : docshell/test/mochitest/bug691547_frame.html => docshell/test/bug691547_frame.html
rename : docshell/test/mochitest/dummy_page.html => docshell/test/dummy_page.html
rename : docshell/test/mochitest/file_anchor_scroll_after_document_open.html => docshell/test/file_anchor_scroll_after_document_open.html
rename : docshell/test/mochitest/file_bfcache_plus_hash_1.html => docshell/test/file_bfcache_plus_hash_1.html
rename : docshell/test/mochitest/file_bfcache_plus_hash_2.html => docshell/test/file_bfcache_plus_hash_2.html
rename : docshell/test/mochitest/file_bug1121701_1.html => docshell/test/file_bug1121701_1.html
rename : docshell/test/mochitest/file_bug1121701_2.html => docshell/test/file_bug1121701_2.html
rename : docshell/test/mochitest/file_bug1151421.html => docshell/test/file_bug1151421.html
rename : docshell/test/mochitest/file_bug1186774.html => docshell/test/file_bug1186774.html
rename : docshell/test/mochitest/file_bug1450164.html => docshell/test/file_bug1450164.html
rename : docshell/test/mochitest/file_bug385434_1.html => docshell/test/file_bug385434_1.html
rename : docshell/test/mochitest/file_bug385434_2.html => docshell/test/file_bug385434_2.html
rename : docshell/test/mochitest/file_bug385434_3.html => docshell/test/file_bug385434_3.html
rename : docshell/test/mochitest/file_bug475636.sjs => docshell/test/file_bug475636.sjs
rename : docshell/test/mochitest/file_bug509055.html => docshell/test/file_bug509055.html
rename : docshell/test/mochitest/file_bug511449.html => docshell/test/file_bug511449.html
rename : docshell/test/mochitest/file_bug540462.html => docshell/test/file_bug540462.html
rename : docshell/test/mochitest/file_bug580069_1.html => docshell/test/file_bug580069_1.html
rename : docshell/test/mochitest/file_bug580069_2.sjs => docshell/test/file_bug580069_2.sjs
rename : docshell/test/mochitest/file_bug590573_1.html => docshell/test/file_bug590573_1.html
rename : docshell/test/mochitest/file_bug590573_2.html => docshell/test/file_bug590573_2.html
rename : docshell/test/mochitest/file_bug637644_1.html => docshell/test/file_bug598895_1.html
rename : docshell/test/mochitest/file_bug637644_2.html => docshell/test/file_bug598895_2.html
rename : docshell/test/mochitest/file_bug634834.html => docshell/test/file_bug634834.html
rename : docshell/test/mochitest/file_bug640387.html => docshell/test/file_bug640387.html
rename : docshell/test/mochitest/file_bug662170.html => docshell/test/file_bug653741.html
rename : docshell/test/mochitest/file_bug660404 => docshell/test/file_bug660404
rename : docshell/test/mochitest/file_bug660404-1.html => docshell/test/file_bug660404-1.html
rename : docshell/test/mochitest/file_bug660404^headers^ => docshell/test/file_bug660404^headers^
rename : docshell/test/mochitest/file_bug668513.html => docshell/test/file_bug668513.html
rename : docshell/test/mochitest/file_bug669671.sjs => docshell/test/file_bug669671.sjs
rename : docshell/test/mochitest/file_bug675587.html => docshell/test/file_bug675587.html
rename : docshell/test/mochitest/file_bug680257.html => docshell/test/file_bug680257.html
rename : docshell/test/mochitest/file_bug703855.html => docshell/test/file_bug703855.html
rename : docshell/test/mochitest/file_bug728939.html => docshell/test/file_bug728939.html
rename : docshell/test/mochitest/file_close_onpagehide1.html => docshell/test/file_close_onpagehide1.html
rename : docshell/test/mochitest/file_close_onpagehide2.html => docshell/test/file_close_onpagehide2.html
rename : docshell/test/mochitest/file_framedhistoryframes.html => docshell/test/file_framedhistoryframes.html
rename : docshell/test/mochitest/file_pushState_after_document_open.html => docshell/test/file_pushState_after_document_open.html
rename : docshell/test/mochitest/historyframes.html => docshell/test/historyframes.html
rename : docshell/test/mochitest/mochitest.ini => docshell/test/mochitest.ini
rename : docshell/test/mochitest/moz.build => docshell/test/moz.build
rename : docshell/test/mochitest/start_historyframe.html => docshell/test/start_historyframe.html
rename : docshell/test/mochitest/test_anchor_scroll_after_document_open.html => docshell/test/test_anchor_scroll_after_document_open.html
rename : docshell/test/mochitest/test_bfcache_plus_hash.html => docshell/test/test_bfcache_plus_hash.html
rename : docshell/test/mochitest/test_bug1045096.html => docshell/test/test_bug1045096.html
rename : docshell/test/mochitest/test_bug1121701.html => docshell/test/test_bug1121701.html
rename : docshell/test/mochitest/test_bug1151421.html => docshell/test/test_bug1151421.html
rename : docshell/test/mochitest/test_bug1186774.html => docshell/test/test_bug1186774.html
rename : docshell/test/mochitest/test_bug123696.html => docshell/test/test_bug123696.html
rename : docshell/test/mochitest/test_bug1450164.html => docshell/test/test_bug1450164.html
rename : docshell/test/mochitest/test_bug384014.html => docshell/test/test_bug384014.html
rename : docshell/test/mochitest/test_bug385434.html => docshell/test/test_bug385434.html
rename : docshell/test/mochitest/test_bug387979.html => docshell/test/test_bug387979.html
rename : docshell/test/mochitest/test_bug402210.html => docshell/test/test_bug402210.html
rename : docshell/test/mochitest/test_bug404548.html => docshell/test/test_bug404548.html
rename : docshell/test/mochitest/test_bug413310.html => docshell/test/test_bug413310.html
rename : docshell/test/mochitest/test_bug475636.html => docshell/test/test_bug475636.html
rename : docshell/test/mochitest/test_bug509055.html => docshell/test/test_bug509055.html
rename : docshell/test/mochitest/test_bug511449.html => docshell/test/test_bug511449.html
rename : docshell/test/mochitest/test_bug529119-1.html => docshell/test/test_bug529119-1.html
rename : docshell/test/mochitest/test_bug529119-2.html => docshell/test/test_bug529119-2.html
rename : docshell/test/mochitest/test_bug530396.html => docshell/test/test_bug530396.html
rename : docshell/test/mochitest/test_bug540462.html => docshell/test/test_bug540462.html
rename : docshell/test/mochitest/test_bug551225.html => docshell/test/test_bug551225.html
rename : docshell/test/mochitest/test_bug570341.html => docshell/test/test_bug570341.html
rename : docshell/test/mochitest/test_bug580069.html => docshell/test/test_bug580069.html
rename : docshell/test/mochitest/test_bug590573.html => docshell/test/test_bug590573.html
rename : docshell/test/mochitest/test_bug598895.html => docshell/test/test_bug598895.html
rename : docshell/test/mochitest/test_bug634834.html => docshell/test/test_bug634834.html
rename : docshell/test/mochitest/test_bug637644.html => docshell/test/test_bug637644.html
rename : docshell/test/mochitest/test_bug640387_1.html => docshell/test/test_bug640387_1.html
rename : docshell/test/mochitest/test_bug640387_2.html => docshell/test/test_bug640387_2.html
rename : docshell/test/mochitest/test_bug653741.html => docshell/test/test_bug653741.html
rename : docshell/test/mochitest/test_bug660404.html => docshell/test/test_bug660404.html
rename : docshell/test/mochitest/test_bug662170.html => docshell/test/test_bug662170.html
rename : docshell/test/mochitest/test_bug668513.html => docshell/test/test_bug668513.html
rename : docshell/test/mochitest/test_bug669671.html => docshell/test/test_bug669671.html
rename : docshell/test/mochitest/test_bug675587.html => docshell/test/test_bug675587.html
rename : docshell/test/mochitest/test_bug680257.html => docshell/test/test_bug680257.html
rename : docshell/test/mochitest/test_bug691547.html => docshell/test/test_bug691547.html
rename : docshell/test/mochitest/test_bug694612.html => docshell/test/test_bug694612.html
rename : docshell/test/mochitest/test_bug703855.html => docshell/test/test_bug703855.html
rename : docshell/test/mochitest/test_bug728939.html => docshell/test/test_bug728939.html
rename : docshell/test/mochitest/test_bug797909.html => docshell/test/test_bug797909.html
rename : docshell/test/mochitest/test_close_onpagehide_by_history_back.html => docshell/test/test_close_onpagehide_by_history_back.html
rename : docshell/test/mochitest/test_close_onpagehide_by_window_close.html => docshell/test/test_close_onpagehide_by_window_close.html
rename : docshell/test/mochitest/test_forceinheritprincipal_overrule_owner.html => docshell/test/test_forceinheritprincipal_overrule_owner.html
rename : docshell/test/mochitest/test_framedhistoryframes.html => docshell/test/test_framedhistoryframes.html
rename : docshell/test/mochitest/test_pushState_after_document_open.html => docshell/test/test_pushState_after_document_open.html
rename : docshell/test/mochitest/test_triggeringprincipal_location_seturi.html => docshell/test/test_triggeringprincipal_location_seturi.html
rename : docshell/test/mochitest/test_windowedhistoryframes.html => docshell/test/test_windowedhistoryframes.html
rename : docshell/test/mochitest/url1_historyframe.html => docshell/test/url1_historyframe.html
rename : docshell/test/mochitest/url2_historyframe.html => docshell/test/url2_historyframe.html
2018-10-02 00:04:57 +03:00
Mark Banner 103dc8d830 Bug 1417383 - Add initial .eslintrc.js files for docshell test directories (not enabled yet). r=qdot
Depends on D7053

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

--HG--
extra : moz-landing-system : lando
2018-10-01 19:09:36 +00:00
Boris Zbarsky 357b6b1348 Bug 1479570. Get Add a getter to get a docshell from nsIWindowlessBrowser. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D2669

--HG--
extra : moz-landing-system : lando
2018-08-03 00:05:07 +00:00
Mark Banner 42da21271d Bug 1419704 - Remove nsIGlobalHistory2 and docshell's nsDownloadHistory as they are redundant. r=mak,bzbarsky
nsIGlobalHistory2 is not implemented by any mozilla-central nor comm-central applications, and hence can be removed. As a result, nsDownloadHistory's implementation can also be removed.

MozReview-Commit-ID: 5bQ2OHsV1Ky

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

--HG--
extra : moz-landing-system : lando
2018-07-04 09:59:45 +00:00
Gijs Kruitbosch 4a2d17683c Bug 1435319 - tests, r=valentin
--HG--
extra : rebase_source : 0fd887653cc93a4056fc26f1e6bb96e845f1281f
2018-06-19 12:11:34 +01:00
Florian Quèze c546946f86 Bug 1433175 - remove by hands some variations of Cc,Ci,Cu definitions, r=Standard8. 2018-02-28 18:51:34 +01:00
Florian Quèze c714053d73 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
Michael Kaply 0bb8ee8527 Bug 1371367 - Treat langpack search engines as default. r=florian
MozReview-Commit-ID: AVYhWRk2Alk

--HG--
extra : rebase_source : 86d4f76acc42f1e1bc831aa913a46231c7ab8d4a
2018-02-14 10:34:25 -06:00
Andrew McCreight 5dec0e0beb 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

--HG--
extra : rebase_source : d9c41878036c1ef7766ef5e91a7005025bc1d72b
2018-02-06 09:36:57 -08:00
Kris Maglione 918ed6c474 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

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
extra : intermediate-source : 34c999fa006bffe8705cf50c54708aa21a962e62
extra : histedit_source : b2be2c5e5d226e6c347312456a6ae339c1e634b0
2018-01-29 15:20:18 -08:00
Cosmin Sabou 9a65a40178 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 6476f95b13 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

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
2018-01-29 15:20:18 -08:00
Brindusan Cristian af8879d1eb 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 c276bb9375 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

--HG--
extra : rebase_source : c004a023389f1f6bf3d2f3efe93c13d423b23ccd
2018-01-29 15:20:18 -08:00
Florian Quèze 22c55eb7b7 Bug 1421992 - Hand written cleanup patch to make tests pass after removing obsolete xpcshell functions. r=Gijs,ochameau a=Aryx 2017-12-21 11:11:57 +01:00
Florian Quèze 0f55cd45be Bug 1421992 - script-generated patch to replace do_execute_soon, do_print and do_register_cleanup with executeSoon, info and registerCleanupFunction, rs=Gijs. 2017-12-21 11:10:23 +01:00
Florian Quèze 032c961e0a Bug 1421992 - script-generated patch to replace do_check_* functions with their Assert.* equivalents, rs=Gijs. 2017-12-21 11:08:17 +01:00
David Major 2b2c246e13 Bug 1422869 - Add "htp" and "htps" to the scheme typo fixup list. r=bz
--HG--
extra : rebase_source : f80cc58b3a71114dbe77edf80aa13be68c13d84c
2017-12-04 12:21:24 -05:00
Gijs Kruitbosch 5fb33f411d Bug 1420395 - deal with IDN domains without protocols correctly in nsIURIFixup, r=valentin
MozReview-Commit-ID: DZYnxExcqdp

--HG--
extra : rebase_source : 08b4cb23db26a09a3f6fbe8fd7ea79c4191b293e
2017-11-28 14:28:58 +00:00
Joel Maher b97e05e9b4 Bug 1386393 - remove old docshell/test/unit/test_bug414201_jfif.js. rs=paolo
MozReview-Commit-ID: A5Ip1e8Fw2r
2017-08-22 15:45:39 -04:00
Valentin Gosu 3b95ce67d2 Bug 1380617 - Fix tests that use nsIURI.host expecting unicode domain name r=smaug,honzab
MozReview-Commit-ID: GKnbpc8GMb2
2017-08-09 17:44:06 +02:00
Florian Quèze 66f6d259bc Bug 1374282 - script generated patch to remove Task.jsm calls, r=Mossop. 2017-06-22 12:51:42 +02:00
Gijs Kruitbosch faf81a4714 Bug 1087380 - avoid alternate (www....com) URI fixup for localhost and items with ports, r=bz
MozReview-Commit-ID: HB9SxRSWnz

--HG--
extra : rebase_source : 99a9708588b277e31c8082b9579371609fc658d1
2017-05-06 19:59:24 +01:00
Florian Queze 37ff4fc7cc Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Sebastian Hengst a07223d699 Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout 2017-04-14 23:39:22 +02:00
Florian Queze 95d4d20c17 Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Valentin Gosu e0f474ede9 Bug 1326175 - Stop preserving empty passwords in URLs r=mcmanus
MozReview-Commit-ID: 7wdZSJmpErF

--HG--
extra : rebase_source : 100061a5c1921f1a10cf339207548aceb3afbe49
2017-03-27 23:56:28 +02:00