Commit graph

78 commits

Author SHA1 Message Date
Mark Banner
3a07fcf436 Bug 1806503 - Automatically replace Cu.reportError with console.error (browser/actors, browser/base). r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D165068
2022-12-27 10:08:58 +00:00
Kagami Sascha Rosylight
f24fdbc09c Bug 1801346 - Esmify browser/modules/Sanitizer.jsm r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D162425
2022-11-19 01:45:42 +00:00
Tooru Fujisawa
bf93d07148 Bug 1667455 - Part 5: Stop importing Services.jsm from chrome-priv JS code, top-level single-line cases. r=kmag,webdriver-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,extension-reviewers,application-update-reviewers,pip-reviewers,twisniewski,m_kato,jdescottes,mconley,AlexandruIonescu,mossop
Differential Revision: https://phabricator.services.mozilla.com/D150894
2022-07-11 12:41:50 +00:00
Mark Banner
4f4dd2fbae Bug 1750974 - Extend our ESLint import-globals-from function to support absolute directories. r=Gijs,mossop
Differential Revision: https://phabricator.services.mozilla.com/D136368
2022-01-20 14:15:34 +00:00
Gijs Kruitbosch
0c1c818c13 Bug 1718435 - fix clear recent history dialog when there are no open windows, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D121842
2021-08-06 22:18:35 +00:00
Gijs Kruitbosch
e166a98fe3 Bug 1720262 - improve spacing in the window-modal clear recent history dialog, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D120985
2021-08-02 14:09:38 +00:00
Gijs Kruitbosch
a31bc9af69 Bug 1721466 - add title to clear recent history dialog when opened as a subdialog in the browser window, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D120984
2021-08-02 14:09:37 +00:00
Mike Conley
eaa75cbe8c Bug 1712750 - Make sure sanitize.xhtml gets to set its mozSubdialogReady. r=mtigley
The mozSubdialogReady was being set inside of sanitize.xhtml in
its load event handler, which would be scheduled to run AFTER the
SubDialog _onLoad handler (which is what awaits mozSubdialogReady).

The only reason this wasn't more obvious is because the first time
the dialog is opened, the SubDialog _onLoad handler awaits
translation of the document, which gives sanitize.xhtml a chance
to run its load event handler and set the mozSubdialogReady.
Subsequent opens of the dialog wouldn't need to re-run translation
due to document caching, and so the mozSubdialogReady wouldn't
be waited for, resulting in incorrect dialog layout.

Depends on D119329

Differential Revision: https://phabricator.services.mozilla.com/D119330
2021-07-12 13:50:03 +00:00
Mike Conley
1cdf3f0759 Bug 1712750 - Get rid of some old-modal condition handlers in sanitize.xhtml. r=mtigley
These handlers and markup were only ever relevant when opening the
dialog in an old-style modal. Now that we're opening the dialog as
a SubDialog, these conditions can be cleaned up.

Depends on D117567

Differential Revision: https://phabricator.services.mozilla.com/D119329
2021-07-12 13:50:02 +00:00
Harry Twyford
f4b848daab Bug 1708209 - Use native checkboxes in all native windows. r=Gijs,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D113678
2021-04-28 20:21:34 +00:00
pbz
5c65d2dbca Bug 1650794 - Refactor subdialogs.js to reusable SubDialog.jsm. r=Gijs,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D82405
2020-07-10 00:01:50 +00:00
Kris Maglione
3bda67deab Bug 1638153: Part 2 - Fix uses of .rootTreeItem to get top browser window. r=geckoview-reviewers,nika,snorp
Differential Revision: https://phabricator.services.mozilla.com/D75429
2020-06-17 17:17:16 +00:00
Razvan Maries
a36bb7751f Backed out 3 changesets (bug 1638153) for perma failures on cross-origin-objects.html. CLOSED TREE
Backed out changeset f7aedc92d396 (bug 1638153)
Backed out changeset 07ec713926c6 (bug 1638153)
Backed out changeset 5a656842e241 (bug 1638153)
2020-06-01 23:51:35 +03:00
Kris Maglione
b3fcd970ec Bug 1638153: Part 2 - Fix uses of .rootTreeItem to get top browser window. r=geckoview-reviewers,nika,snorp
Differential Revision: https://phabricator.services.mozilla.com/D75429
2020-06-01 17:59:01 +00:00
Brian Grinstead
28a659f010 Bug 1616179 - Assign an id to the <window> for the sanitize dialog to fix location persistence;r=Gijs
The [persist] attribute requires the element has an id, so it was failing to remember
screenX and screenY for the dialog before this change.

Depends on D63233

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

--HG--
extra : moz-landing-system : lando
2020-02-18 23:29:04 +00:00
Brian Grinstead
c72cf26d0e Bug 1616179 - Fix JavaScript error: chrome://browser/content/sanitizeDialog.js, line 70: TypeError: right-hand side of 'in' should be an object, got null error when sanitize dialog is opened outside of preferences;r=Gijs
This error has been present since the initial landing in Bug 1523696.

This is unrelated to the fix in the next patch, just something I noticed when debugging it.

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

--HG--
extra : moz-landing-system : lando
2020-02-18 23:27:30 +00:00
Kirk Steuber
589b7532ea Bug 1585482 - Restructure all <xul:dialog> usages such that they are not the top level element r=bgrins
This patch also includes necessary JS changes to support this. Most commonly, the dialog was accessed with document.documentElement, which needed to be changed now that the dialog is not the top level element.

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

--HG--
extra : moz-landing-system : lando
2019-12-10 18:25:59 +00:00
Mark Hammond
3e61188103 Bug 1563552 (part 2) - remove support for the 'name' attribute from preferencesBindings.js. r=myk,jaws
Differential Revision: https://phabricator.services.mozilla.com/D38829

--HG--
extra : moz-landing-system : lando
2019-07-25 10:36:14 +00:00
Jonas Allmann
3feb30bb0d Bug 1547718, Remove preferenceBindings.js from eval()-whitelist, r=Gijs
Work in progress.
Add callback infrastructure to preferenceBindings to replace XUL-attributes.

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

--HG--
extra : moz-landing-system : lando
2019-07-11 09:37:59 +00:00
Victor Porof
f9f5914039 Bug 1561435 - Format browser/base/, a=automatic-formatting
# ignore-this-changeset

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

--HG--
extra : source : 96b3895a3b2aa2fcb064c85ec5857b7216884556
2019-07-05 09:48:57 +02:00
Jonas Allmann
1db9db7604 Bug 1529231, Remove all occurences of ondialogaccept and ondialogcancel, r=Gijs
Removed all occurences of ondialogaccept.
Removed all occurences of ondialogcancel.
Replaced all removed attributes with event handlers.

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

--HG--
extra : moz-landing-system : lando
2019-03-26 18:34:02 +00:00
Neil Deakin
66040975f2 Bug 1519953, replace calls to retrieve boxobject position and size with getBoundingClientRect, r=gijs
--HG--
extra : rebase_source : 65a9e08513ada3cda6beeb09d7f8a53620c2999f
2019-03-01 12:26:45 -05:00
Jared Wein
8eabb41bc6 Bug 1523696 - Wait until the style attribute is applied to the dialog before sizing it. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D19037

--HG--
extra : moz-landing-system : lando
2019-02-08 03:47:33 +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
Gijs Kruitbosch
bbb8d21b4b Bug 1514652 - deal with async translations and their sizing in the sanitize dialog, r=zbraniecki
Differential Revision: https://phabricator.services.mozilla.com/D14864

--HG--
extra : moz-landing-system : lando
2018-12-19 13:47:17 +00:00
Qinghao_Jack_Song
c998d3abb3 Bug 1498444 - Migrate Sanitize Dialogs to use Fluent for localization r=Gijs,flod,zbraniecki
Differential Revision: https://phabricator.services.mozilla.com/D8130

--HG--
extra : moz-landing-system : lando
2018-11-13 17:58:43 +00:00
Paolo Amadini
99fbb28d42 Bug 1473275 - Remove the details expander in the Clear Recent History dialog. r=johannh
MozReview-Commit-ID: 99XDExBbRkp

--HG--
extra : source : 12fca1ba05db3a3eefe4a293e42f642dd6e217cc
2018-07-04 17:27:15 +01:00
Paolo Amadini
6312e2d6a5 Bug 1472744 - Remove the listbox in "browser/base/content/sanitize.xul". r=johannh
Support for "listitem" in preferences is also removed, in preparation for the removal of the "listbox" element and binding.

MozReview-Commit-ID: JQgdITzKoUz

--HG--
extra : source : f85e8811f574e7e75ffbbe2b9782ef601251db93
2018-07-04 12:14:17 +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
Marco Bonardo
fa2de7886f Bug 1434414 - Locking the 'sanitize on shutdown' pref causes sanitization to happen at every startup. r=johannh
MozReview-Commit-ID: 6PvRFmaZsBC

--HG--
extra : rebase_source : 9b9a670abf6037d239b3b8efd025b9341f45d820
2018-02-15 00:42:58 +01: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
Johann Hofmann
7b865b61f7 Bug 1167238 - Part 3 - Clean up usage of sanitize.js to properly use Sanitizer.jsm. r=mak
This replaces all non-test usage of sanitize.js or legacy Sanitizer.jsm
to use the new Sanitizer.jsm module which does not hold internal state
and instead receives all configuration through function arguments (or by reading prefs).

MozReview-Commit-ID: KitMVptuIG3

--HG--
extra : rebase_source : e6696a5246db3f6ef9dd25aeab5d239d7fc7f8e3
2018-01-18 16:02:04 +01: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
Myk Melez
c3da3e7642 Bug 1379338 - scriptify preferences XBL; r=jaws
MozReview-Commit-ID: Egyzs2KxhzH
2018-01-04 21:37:47 -08:00
Sebastian Hengst
bc8e5f198e Backed out 2 changesets (bug 1379338) for failing Marionette headless' test_anonymous_content.py TestAnonymousNodes.test_find_anonymous_children. r=backout on a CLOSED TREE
Backed out changeset 232c97d7c2ea (bug 1379338)
Backed out changeset a76ff10b9bff (bug 1379338)
2018-01-04 20:15:18 +02:00
Myk Melez
f5bb45814e Bug 1379338 - scriptify preferences XBL; r=jaws
MozReview-Commit-ID: 7NRHlSsdOtf
2018-01-04 07:34:15 -08:00
Paolo Amadini
10ee6a5c4e Bug 1362970 - Part 2 - Script-generated patch to convert .then(null, ...) to .catch(...). r=florian
Changes to Promise tests designed to test .then(null) have been reverted, and the browser/extensions directory was excluded because the projects it contains have a separate process for accepting changes.

MozReview-Commit-ID: 1buqgX1EP4P

--HG--
extra : rebase_source : 3a9ea310d3e4a8642aabbc10636c04bfe2e77070
2017-06-19 11:32:37 +01:00
Rajesh Kathiriya
dce1b0c3e6 bug 1347642 - Fixed sanitizeDialog.js running in ESLint r=standard8
MozReview-Commit-ID: A7mVW5hbvya

--HG--
extra : rebase_source : 409f0d9533a5e59ac6ba70c32ef917febba78d6b
2017-03-31 00:19:31 +05:30
Federico Padua
6d421894ad Bug 1145735 - Remove CRH_DIALOG_TREE_VIEW; r=standard8
This patch removes code marked with #ifdef CRH_DIALOG_TREE_VIEW
since it's not used anymore as described in the bug description.

MozReview-Commit-ID: 6VnJIIGtGVl

--HG--
extra : rebase_source : 3c181a33d90ebf4621fee61fe4e667cc11410167
2017-03-21 11:49:14 +01:00
Eric Rahm
722080f8b5 Bug 1313507 - Update last invokeDragSession reference to nsIArray. r=froydnj
MozReview-Commit-ID: AHHhtYHuItJ
2016-10-31 11:18:30 -07:00
Mélanie Chauvel (ariasuni)
24691fcfc3 bug 1211849 - Remove canClear support from the Sanitizer. r=mak
Modifications by Patrick <nwokop@uni.coventry.ac.uk>

--HG--
extra : commitid : 4sPxOcyS2qv
2015-10-07 19:46:35 +02:00
Carsten "Tomcat" Book
08997000eb Backed out 2 changesets (bug 1202902) to recking bug 1202902 to be able to reopen inbound on a CLOSED TREE
Backed out changeset 647025383676 (bug 1202902)
Backed out changeset d70c7fe532c6 (bug 1202902)
2015-10-07 14:03:21 +02:00
Carsten "Tomcat" Book
e7ef778c9d Backed out 1 changesets (bug 1202902) for causing merge conflicts to mozilla-central
Backed out changeset cfc1820361f5 (bug 1202902)

--HG--
extra : rebase_source : 5d3db72337754bc7ab0ed0c30b2896100411ff92
2015-10-07 12:13:45 +02:00
Shu-yu Guo
d06b6030f6 Bug 1202902 - Scripted fix the world. 2015-10-06 14:00:31 -07:00
David Rajchenbach-Teller
34c2816fc1 Bug 1089695 - Async sanitize.js;r=mak
--HG--
extra : transplant_source : n%84iA%8D%87%D1t%81C%22%E9%02Z%BB%04%D1Q%93%3C
2015-07-27 19:18:19 +02:00
Bill McCloskey
2cafd808a5 Bug 1145394 - Fix unparseable JS code (r=gavin) 2015-03-20 11:57:38 -07:00