Commit graph

273 commits

Author SHA1 Message Date
Brian Grinstead
829d7647d3 Bug 1479538 - Rewrite non-test callers of document.createElementNS(XUL_NS, ...) to use document.createXULElement(...);r=paolo
Differential Revision: https://phabricator.services.mozilla.com/D3275

--HG--
extra : moz-landing-system : lando
2018-08-14 16:22:44 +00:00
Brian Grinstead
abf1620630 Bug 1479125 - Migrate calls that expect an element to be returned to use element variation firstChild etc to firstElementChild etc;r=Paolo
This allows the JS to work in HTML documents, where whitespace is preserved. In XUL
documents, whitespace is ignored when parsing so text nodes are generally not returned.

The following changes were made, with manual cleanups as necessary (i.e. when firstChild actually
refers to a text node, or when firstChild is used in a loop to empty out an element):

  firstChild->firstElementChild
  lastChild->lastElementChild
  nextSibling->nextElementSibling
  previousSibling->previousElementSibling
  childNodes->children

MozReview-Commit-ID: 95NQ8syBhYw

--HG--
extra : rebase_source : 186d805f7a2a56694dda9032aceac2dfe5424753
2018-08-08 15:22:53 -07:00
Dão Gottwald
814229b19e Bug 1473265 - Clean up print preview toolbar ids and classes. r=bgrins
MozReview-Commit-ID: ATM75qPMd0F

--HG--
extra : rebase_source : 6123537b12982c45c65e2002223d391f7326de79
2018-07-10 15:23:04 +02:00
Brian Grinstead
a51862c3ca Bug 1450813 - Create print preview toolbar as customized built-in Custom Element;r=mconley,timdream
MozReview-Commit-ID: LYlQ8xxJNA8

--HG--
rename : toolkit/components/printing/content/printPreviewBindings.xml => toolkit/components/printing/content/printPreviewToolbar.js
extra : rebase_source : 1a08be09cafd2f8f88151edf3be9ce87ee957e35
2018-07-02 13:33:09 -07:00
Ciure Andrei
28ec424f82 Backed out 1 changesets (bug 1450813) for failing browser_page_change_print_original.js CLOSED TREE
Backed out changeset ee4e2bfffe18 (bug 1450813)

--HG--
rename : toolkit/components/printing/content/printPreviewToolbar.js => toolkit/components/printing/content/printPreviewBindings.xml
2018-07-02 22:38:18 +03:00
Brian Grinstead
5a994e7f37 Bug 1450813 - Create print preview toolbar as customized built-in Custom Element;r=mconley,timdream
MozReview-Commit-ID: Ermed741SRs

--HG--
rename : toolkit/components/printing/content/printPreviewBindings.xml => toolkit/components/printing/content/printPreviewToolbar.js
extra : rebase_source : d0a4eb903de05103aeeed9810429f69088efa57f
2018-07-02 10:28:29 -07:00
Joel Maher
50b91c0a14 Bug 1405428 - skip-if = verify on mochitests which do not pass test-verify. r=gbrown 2018-06-10 05:01:47 -04:00
Kris Maglione
bf4d9f1be5 Bug 1456035: Part 5 - Convert manual QueryInterface to ChromeUtils.generateQI. r=mccr8
Manually-implemented QueryInterface functions don't benefit from the
MozQueryInterface optimizaions, and a lot of them are in hot code, and
implement a large number of interfaces.

MozReview-Commit-ID: 8OzglraowZt

--HG--
extra : rebase_source : 5fff3d9973a0ea976096339a63ce9ff628b68441
2018-04-23 12:58:34 -07:00
Tim Nguyen
1d19015df5 Bug 1437302 - Fix width of textbox[type=number] consumers. r=Paolo, Neil Deakin
--HG--
rename : toolkit/themes/linux/global/numberbox.css => toolkit/themes/shared/numberbox.inc.css
extra : amend_source : d9161dc8d21b958488b7304849a5e8c164f660bb
2018-03-26 14:34:39 +02:00
Peter Van der Beken
5e6f3328ec Bug 1448850 - Remove nsIMessageListener and nsIMessageListenerManager. r=bz.
--HG--
extra : rebase_source : 2938f6e1cb9078a6d45a8d58db0f6bf70e461b9c
2018-02-16 15:28:31 +01:00
Matheus Longaray
c69bc77668 Bug 1445837 - Fix race condition in toolkit/components/printing/tests/browser_preview_print_simplify_non_article.js. r=mconley
This patch address a race condition issue for toolkit/components/printing/tests/
browser_preview_print_simplify_non_article.js test added in bug 1440638.

MozReview-Commit-ID: 4X17u2CP4ea

--HG--
extra : rebase_source : 726f566eedaad6b0037369b60e25acb471f97933
2018-03-19 13:27:08 -03:00
Tooru Fujisawa
1adba8c1fc Bug 1442465 - Part 4.2: Stop unnecessarily awaiting on BrowserTestUtils.removeTab (simple part). r=dao 2018-03-19 11:16:45 +09:00
Matheus Longaray
53dc7c4c01 Bug 1440638 - Render error message for the Simplify Page document. r=mconley
This patch renders error message for the Simplify Page document when
Reader Mode fails to parse original document. This patch also adds a test
to reliably produce a readable document that returns a parsing error when
run through the readability library.

MozReview-Commit-ID: 686mBkU9eVM

--HG--
extra : rebase_source : 154e840c89e0c8ff380dc9551c8fde93711d510d
2018-03-07 10:35:56 -03:00
Bob Owen
2c3ffe3ac4 Bug 1441598: Don't try and send messages to PrintProgressDialogChild when printing is complete. r=jwatt 2018-03-05 08:22:14 +00: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
Timothy Guan-tin Chien
b073441b39 Bug 1422386 - Remove toolbardecoration, toolbar, and toolbar-base binding, r=Paolo
The only purpose of these bindings was to insert a stylesheet, which has been
moved to be included in toolkit/content/components.css.

MozReview-Commit-ID: 23jqkIrbVvi

--HG--
extra : rebase_source : 8d13f7a8afa730207d40e1457e36ec51331c4ea7
2018-02-13 22:12:18 +08:00
Bob Owen
27e71ca989 Bug 1379117 Part 2: Remove some deprecated PrintUtils functions. r=jwatt
I noticed these while looking for other things that were gettting an
nsIWebBrowserPrint for print preview. I think these must have been left for
legacy addons and they don't seem to be used, so I think they can go.
2018-02-08 08:59:20 +00: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
arai
3d4967a6e0 Bug 1265174 - do not restore "onclose" attribute to null value in print preview window, when there was none at the start. r=smaug 2018-01-13 10:16:00 +02:00
Jorg K
bc6ff2f863 Bug 1427553 - Handle mull gracefully in ellipseString(). r=bobowen 2018-01-05 06:52:00 -05:00
Cameron McCormack
0c46625eab Bug 1417837 - Part 1: De-scope about:reader style sheets. r=Gijs
MozReview-Commit-ID: 8C65ljtFDrh

--HG--
extra : rebase_source : 442d8cbaf7f7252b6b6393845d2d09e265678ae9
2017-11-16 17:58:37 +08:00
Dorel Luca
5343debb6a Backed out 3 changesets (bug 1417837) for failing browser/chrome/test_media_playback.html r=backout on a CLOSED TREE
Backed out changeset 9556f12b4058 (bug 1417837)
Backed out changeset 49a463e85e42 (bug 1417837)
Backed out changeset 7a76f2363663 (bug 1417837)
2017-12-04 14:59:31 +02:00
Cameron McCormack
311c671019 Bug 1417837 - Part 1: De-scope about:reader style sheets. r=Gijs
MozReview-Commit-ID: 8C65ljtFDrh

--HG--
extra : rebase_source : 442d8cbaf7f7252b6b6393845d2d09e265678ae9
2017-11-16 17:58:37 +08:00
Coroiu Cristina
035be65ea1 Backed out 3 changesets (bug 1417837) for ESlint failures at /builds/worker/checkouts/gecko/toolkit/components/narrate/NarrateControls.jsm r=backout on a CLOSED TREE
Backed out changeset 0d6b56293cbf (bug 1417837)
Backed out changeset 1c341a427a7a (bug 1417837)
Backed out changeset fa4f488ea88f (bug 1417837)
2017-12-04 12:34:37 +02:00
Cameron McCormack
33f3ce5cd6 Bug 1417837 - Part 1: De-scope about:reader style sheets. r=Gijs
MozReview-Commit-ID: 8C65ljtFDrh

--HG--
extra : rebase_source : 442d8cbaf7f7252b6b6393845d2d09e265678ae9
2017-11-16 17:58:37 +08:00
Mark Banner
3619944268 Bug 1371293 - Fix remaining instances of no-multi-spaces after upgrading to ESLint 4. r=mossop
MozReview-Commit-ID: EL6qI2VDyT1

--HG--
extra : rebase_source : df939b81e6f879bfe97ae70f4596d60682d6beb6
2017-11-06 13:40:13 +00:00
Matheus Longaray
36fecc2a3b Bug 1404176 - Remove aborted print preview browser before bailing out. r=mconley
This patch clears out set of print preview browsers before bailing out when
there is an error while putting the document into print preview mode.

MozReview-Commit-ID: 20cm4DCktQk

--HG--
extra : rebase_source : 9881245cc09ef50cadd1139b6a9c1b32e7847612
2017-11-13 17:17:57 +01:00
Mark Banner
3f5fe07fd8 Bug 1412893 - Change instances of using getService to Services.jsm where possible in toolkit/components/printing. r=mossop
MozReview-Commit-ID: 6g26rPnSN1r

--HG--
extra : rebase_source : 193915d7d7d5c6260d711adbbb5cf4afbfbd5abd
2017-10-30 17:08:42 +00:00
Mantaroh Yoshinaga
60c5093160 Bug 1411121 - Part 4. Remove printPageSetup resources from linux package since Linux will display native dialog. r=mconley
This patch will remove printPageSetup resources from Linux package. This xul is
'PageSetup' dialog, but gecko doesn't use this dialog since gecko will display
a native page setup dialog.
(For Detail, See nsPrintDialogServiceGTK::ShowPageSetup)

MozReview-Commit-ID: 4AFjaM3cB35

--HG--
extra : rebase_source : 9ed0e9f0c3289c7d66b8f839417a899f884b345c
2017-11-06 09:27:05 +09:00
Mantaroh Yoshinaga
26d5a3372b Bug 1411121 - Part 2: Remove printdialog.xul and printjoboptions.xul. r=mconley
This patch will remove printing xul dialog and related files since a caller of
this xul dialog doesn't exist.
The printjoboptions.xul is only used by printdialog.xul.

MozReview-Commit-ID: B6VZuj3Lg1b

--HG--
extra : rebase_source : 7cf2e94c491147a2cb84616ab922adeb833cb447
2017-11-06 09:27:05 +09:00
Csoregi Natalia
b111f07e40 Backed out 3 changesets (bug 1411121) for failling browser-chrome browser/base/content/test/static/browser_all_files_referenced.js r=backout on a CLOSED TREE
Backed out changeset 9f02fcb3d28c (bug 1411121)
Backed out changeset 9d8722dd9693 (bug 1411121)
Backed out changeset d390f8888d71 (bug 1411121)
2017-11-01 11:47:48 +02:00
Mantaroh Yoshinaga
b37cd99810 Bug 1411121 - Part 2: Remove printdialog.xul and printjoboptions.xul. r=mconley
This patch will remove printing xul dialog and related files since a caller of
this xul dialog doesn't exist.
The printjoboptions.xul is only used by printdialog.xul.

MozReview-Commit-ID: B6VZuj3Lg1b

--HG--
extra : rebase_source : 22c7fcacbca20e0a1eca66450a64653d5c4f0f5c
2017-11-01 12:05:40 +09:00
Mark Banner
4de6bf22b1 Bug 1411368 - Automatically fix no-multi-spaces issues raised when using ESLint 4. r=mossop
MozReview-Commit-ID: H5YVp3rnzGo

--HG--
extra : rebase_source : 5b45b6c0df834131812d094e975047eaad374e06
2017-10-26 11:47:01 +01:00
Dan Banner
7caa92d5d8 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
Christoph Kerschbaumer
737aea1a0f Bug 1397657 - Update tests within toolkit/ to comply with new toplevel data: URI navigation policy. r=francois,dtownsend 2017-09-12 07:06:03 +02:00
Bob Owen
8aa3f52fda Bug 1274746: Use previous custom scale value when switching from Shrink To Fit in Print Preview. r=mconley
The change here is to make the prompt return the value even if it hasn't changed,
because we still need to reprocess if we are switching from Shrink To Fit.
2017-09-11 11:53:14 +01:00
dagasatvik
d4398e95f2 Bug 1385820 - Enable the ESLint no-new-wrappers rule across mozilla-central; r=markh,standard8
MozReview-Commit-ID: FvJO3ibeiwg

--HG--
extra : rebase_source : 5fc5c6760924da81a6d0708ff0d5586fc62c8c5e
2017-08-07 23:57:51 +05:30
Bob Owen
b2ce31f287 Bug 1365601 Part 2: Disable parts of the Print Preview toolbar until update has finished. r=mconley 2017-07-11 07:38:36 +01:00
Bob Owen
8cde474060 Bug 1365601 Part 1: Send number of pages on printPreviewUpdate event instead of requesting from parent. r=mconley
This also makes sure that we don't call nsIWebBrowserPrint::PrintPreview while we're still in a previous call.
2017-07-05 18:12:36 +01:00
Rajesh Kathiriya
881bce09ea Bug 1374670 - Enabled the ESLint no-tabs rule across mozilla-central r=standard8
MozReview-Commit-ID: RT5QTipaOW

--HG--
extra : rebase_source : 84bccaeba083bc430316d3c80d5c8f56494f1950
2017-07-04 21:30:18 +05:30
Dan Banner
ea09f270ab Bug 1368041 - Enable no-array-constructor across mozilla-central r=standard8
MozReview-Commit-ID: EXJNufdKKhJ

--HG--
extra : rebase_source : 66d17c7981c4b0987c482ce092b25990b42c07fb
2017-05-27 15:17:29 +01:00
Florian Quèze
5e3539e504 Bug 1353542 - massive script-generated patch converting Task.async and Task.spawn calls, and generators clearly identifiable as tasks, rs=Mossop. 2017-05-12 14:42:39 +02:00
Mark Banner
2bf9485071 Bug 1362947 - Upgrade eslint-plugin-html to 2.0.3 to pick up --fix support. r=jaws
MozReview-Commit-ID: 5fVG7akPnGM

--HG--
extra : rebase_source : e462e84bf8f2ffd893d1fd6b5ea14bbc093168dd
2017-05-08 10:29:47 +01:00
Sebastian Hengst
95a418ca5b Backed out changeset e0f9c56c15f0 (bug 1362947) for linting failures, e.g. at accessible/tests/mochitest/jsat/doc_content_text.html:15. r=backout 2017-05-11 10:15:55 +02:00
Mark Banner
256aeb441c Bug 1362947 - Upgrade eslint-plugin-html to 2.0.3 to pick up --fix support. r=jaws
MozReview-Commit-ID: 5fVG7akPnGM

--HG--
extra : rebase_source : f1b9eeb1b2048b551ee8c0a596e6395d0031cc4d
2017-05-08 10:29:47 +01:00