Commit Graph

183 Commits

Author SHA1 Message Date
Tom Schuster
842fbd09b9 Bug 1418033 - Make it possible to disable fast find. r=mikedeboer 2018-05-14 21:49:43 +02:00
Felipe Gomes
69a91cb236 Bug 1467586 - Convert the DateTimePickerListener object into a class to be instantiated when needed. r=mconley
MozReview-Commit-ID: FFXPkLFjJk
2018-06-09 18:46:39 -03:00
Felipe Gomes
331081d0a6 Bug 1467586 - Part 0. hg cp the DateTimePickerListener object to a new file, and rename the DateTimePickerHelper. r=mconley
Since we're naming this new file as DateTimePickerContent, it's also a good opportunity to rename the DateTimePickerHelper to DateTimePickerParent to make it more meaningful

MozReview-Commit-ID: 9xNwUjZb6UF
2018-06-09 18:46:35 -03:00
Felipe Gomes
862ad7f6a6 Bug 1467278 - Lazily instantiate the AutoScrollController when a middle click occurs. r=Gijs,kats
MozReview-Commit-ID: BCpAHzMcubP
2018-06-09 18:42:51 -03:00
Felipe Gomes
fe14bc41fc Bug 1467278 - Part 0 - hg copy the ClickEventHandler code to a new file. r=kats
MozReview-Commit-ID: 2ncvTj8Njbj
2018-06-09 18:42:47 -03:00
Kris Maglione
ca255e9ec8 Bug 1464552: Part 4 - Split selection source helpers into separate JSM. r=felipe
MozReview-Commit-ID: 5ak7dg2umfu
2018-05-25 18:26:32 -07:00
Kris Maglione
5e835d276a Bug 1464552: Part 3 - Split print preview helpers into separate JSM. r=felipe
MozReview-Commit-ID: 59Z0fZIf7Ym
2018-05-25 18:22:09 -07:00
Chris Pearce
91caf2ccc0 Bug 1458383 - Remove browser mediaBlocked attribute. r=mikedeboer
This is a partial backout of Bug 1347791 part 3; a5fbb7e2d1d0.

a5fbb7e2d1d0 added a mediaBlocked attribute to the browser element, which
tracked whether the tab has ever been in the foreground, so that this could
be saved and restored in session restore. We don't session restore this
anymore, so we can remove this attribute and associated event handlers.

This also removes the media.autoplay* pref accesses which are accounted for in
the test browser_preferencecs_usage.js, so remove those prefs from that test.

MozReview-Commit-ID: HLeylLzEsW8
2018-05-09 14:45:39 +12: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
Gijs Kruitbosch
6ff3afdc1a Bug 1453421 - stop findbar from looping over every single property, r=mikedeboer
MozReview-Commit-ID: KsrzhUZ167g
2018-04-18 12:02:35 +01:00
Nika Layzell
3d4a532d9d Bug 1434768 - Part 3: Rewrite JS consumers of .sessionHistory, r=bz 2018-04-10 17:49:45 -04:00
Gijs Kruitbosch
03c94e56b1 Bug 1371523 - remove find bar sync ipc message, r=mikedeboer
MozReview-Commit-ID: C0VO0U3UJ76
2018-03-21 17:10:40 +00:00
Brindusan Cristian
0c919122c7 Backed out changeset cbf007a7027f (bug 1371523) for browser chrome failures on toolkit/content/tests/browser/browser_findbar.js CLOSED TREE 2018-03-31 01:16:09 +03:00
Gijs Kruitbosch
2a9cd6d415 Bug 1371523 - remove find bar sync ipc message, r=mikedeboer
MozReview-Commit-ID: C0VO0U3UJ76
2018-03-21 17:10:40 +00:00
Matheus Longaray
adc361db67 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
2018-03-07 10:35:56 -03:00
Mantaroh Yoshinaga
60598c1d61 Bug 1419226 - Part 1.Change observing target window of MozAfterPaint. r=mconley
Previous code, print preview waits for content window's MozAfterPaint. However
gecko prevents send MozAfterPaint to content window[1]. So this code will not
work correctly. However, software timer of firing MozAfterPaint ran this code.[2]
This patch will
  * Change the observing content window to chrome window.
  * Add timer of MozAfterPaint event in order to ensure this event even if display
    list invalidation doesn't invalidate. Gecko create this timer in nsPresContext
    previously[2], but this bug will remove it

[1] https://searchfox.org/mozilla-central/rev/919dce54f43356c22d6ff6b81c07ef412b1bf933/layout/base/nsPresContext.cpp#2452
[2] https://searchfox.org/mozilla-central/rev/919dce54f43356c22d6ff6b81c07ef412b1bf933/layout/base/nsPresContext.cpp#3466-3472

MozReview-Commit-ID: GcuKPjn0qhc
2018-03-14 10:14:50 +09: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
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
Jan Henning
4f977fe88f Bug 1392996 - Part 1 - Add meta viewport tag to view-source document. r=hsivonen
Adding <meta name="viewport" content="width=device-width"/> to the view-source
document achieves two things when used in a mobile browser, such as Fennec:
1. When word-wrapping is turned off, the page displays at a more readable
   initial zoom level.
2. As of now, font inflation (when enabled) kicks in on the document when word-
   wrapping is turned on, which leads to the line numbers appearing in a
   noticeably smaller font size than the rest of the page.
   Adding the above meta viewport header marks the document as "mobile-friendly"
   and suppresses font inflation, which means that line numbers will appear
   normally even with word-wrapping enabled.

getMathMLSelection() in browser-content.js isn't actually used in Fennec at the
moment, but for consistency we add the meta viewport tag there as well.

MozReview-Commit-ID: K9KVHh7g7TF
2018-01-23 22:25:09 +01:00
Florian Quèze
c5f15a4700 Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop. 2018-02-01 20:45:22 +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
Botond Ballo
f6efec4501 Bug 1425686 - Remove scroll input methods telemetry code. r=kats
MozReview-Commit-ID: 1PC4826SMvh
2017-12-20 15:16:18 -05:00
Jonathan Watt
cb9b976ad6 Bug 1425178 - Rename nsPrintEngine to nsPrintJob. r=bobowen
MozReview-Commit-ID: 2HCNmeOLPd3
2017-12-04 11:44:17 -06:00
Tooru Fujisawa
0add1fb47c Bug 1397422 - Part 2: Allow autoscrolling on XBL elements. r=jaws 2017-12-05 09:42:36 +09:00
Tooru Fujisawa
b8ab39781f Bug 1397422 - Part 1: Allow autoscrolling on XUL elements. r=jaws 2017-12-05 09:42:36 +09:00
Cameron McCormack
7872ff1664 Bug 1417837 - Part 1: De-scope about:reader style sheets. r=Gijs
MozReview-Commit-ID: 8C65ljtFDrh
2017-11-16 17:58:37 +08:00
Dorel Luca
29ccf2be4c 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
f7959cb8bb Bug 1417837 - Part 1: De-scope about:reader style sheets. r=Gijs
MozReview-Commit-ID: 8C65ljtFDrh
2017-11-16 17:58:37 +08:00
Coroiu Cristina
20dd07106d 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
90802066f7 Bug 1417837 - Part 1: De-scope about:reader style sheets. r=Gijs
MozReview-Commit-ID: 8C65ljtFDrh
2017-11-16 17:58:37 +08:00
Sebastian Hengst
0bab7a4734 Backed out 3 changesets (bug 1419226) for frequently for frequently timing out in Web reftests in webvtt, e.g. enable_controls_reposition.html. r=backout
Backed out changeset 5a2460c34657 (bug 1419226)
Backed out changeset 8cda3fb3ce1a (bug 1419226)
Backed out changeset 21d9bedcf411 (bug 1419226)
2017-11-27 17:27:27 +02:00
Mantaroh Yoshinaga
6434544134 Bug 1419226 - Part 1.Change observing target window of MozAfterPaint. r=mconley
Previous code, print preview waits for content window's MozAfterPaint. However
gecko prevents send MozAfterPaint to content window[1]. So this code will not
work correctly. However, software timer of firing MozAfterPaint ran this code.[2]
This patch will
  * Change the observing content window to chrome window.
  * Add timer of MozAfterPaint event in order to ensure this event even if display
    list invalidation doesn't invalidate. Gecko create this timer in nsPresContext
    previously[2], but this bug will remove it

[1] https://searchfox.org/mozilla-central/rev/919dce54f43356c22d6ff6b81c07ef412b1bf933/layout/base/nsPresContext.cpp#2452
[2] https://searchfox.org/mozilla-central/rev/919dce54f43356c22d6ff6b81c07ef412b1bf933/layout/base/nsPresContext.cpp#3466-3472

MozReview-Commit-ID: GcuKPjn0qhc
2017-11-27 09:33:53 +09:00
Mark Banner
e47ccbfec3 Bug 1411368 - Automatically fix no-multi-spaces issues raised when using ESLint 4. r=mossop
MozReview-Commit-ID: H5YVp3rnzGo
2017-10-26 11:47:01 +01:00
Botond Ballo
473f8337a1 Bug 1340415 - Ensure main-thread and async autoscrolling do not happen at the same time. r=kats
The two happening at the same time can lead to the APZ autoscroll being
cancelled due to APZ receiving a main-thread scroll offset update.

To achieve this:

  - The content process assumes APZ is handling the autoscroll until
    told otherwise.

  - If the parent process knows APZ won't handle an autoscroll, it
    tells the content process via its response to the Autoscroll:Start
    message. This covers all cases where APZ doesn't handle the
    autoscroll, except the case where APZCTreeManager itself rejects
    the autoscroll and it lives in the compositor process rather than
    the parent process.

  - If APZCTreeManager rejects an autoscroll and it lives in the
    compositor process, it sends an 'autoscroll-rejected-by-apz' message
    to the content process.

MozReview-Commit-ID: L62v4COai6W
2017-10-18 18:18:13 -04:00
Jessica Jong
5142690adc Bug 1406859 - [DateTimePicker] Let the first picker close gracefully before opening a second picker. r=mconley
If we're trying to open a picker while one is already open, we should let the
first one close gracefully, that is, we should consume the popuphidden event,
otherwise the event will be fired when we re-add the listeners.

MozReview-Commit-ID: CGy86le1F4g
2017-10-19 09:14:56 +08: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
Botond Ballo
d8130ffb7c Bug 1393424 - Don't try to autoscroll in Print Preview mode. r=kats
It doesn't work properly anyways due to a more general coordinate-system
problem on the Print Preview page (see bug 1393494).

MozReview-Commit-ID: D4i2H8z5mtW
2017-09-01 13:19:56 -04:00
Chung-Sheng Fu
93a9d33793 Bug 863246 - Move resources that need to be exposed to web content to locations that are marked as contentaccessible r=billm
MozReview-Commit-ID: ArhSHKPYOr8
2017-06-08 17:52:46 +08:00
Kevin Jones
9b657f178a Bug 1332144 - Add browser.find extension API. r=mikedeboer, r=mixedpuppy
Provides access to the browser's internal Find APIs.  Can search,
get range data and rect data on found results, and highlight results.
2017-08-24 18:24:00 -04:00
Henri Sivonen
cd9aafd595 Bug 1048191 - Remove capability to generate entities other than quot, amp, gt, lt and nbsp. r=emk.
MozReview-Commit-ID: CHQQzPHxrus
2017-08-04 12:37:53 +03:00
Botond Ballo
cc96039050 Bug 1105109 - Notify content when APZ is handling an autoscroll. r=kats
MozReview-Commit-ID: BeuZt30fMpn
2017-07-26 19:32:57 -04:00
Botond Ballo
b246034e3d Bug 1105109 - Have content send the parent process a scroll id and pres shell id as part of the Autoscroll:Start message. r=kats
MozReview-Commit-ID: 5Jnr8jFsSHF
2017-06-19 18:03:42 -04:00
Alastor Wu
b6a34212ba Bug 1274919 - part3 : only send msg if someone is waiting for it. r=jwwang,mikedeboer
Only send the msg "Browser:UnselectedTabHover" when someone requests for the
msg, it can reduce non-necessary communication.

MozReview-Commit-ID: 2mBUMB4AMVo
2017-07-20 15:11:25 +08:00
Alastor Wu
b01abce09e Bug 1274919 - part1 : send the msg "Browser:UnselectedTabHover" when the cursor is hovering over or leaving the unselected tab r=mikedeboer
This msg is used to notify the status whether the cursor is hovering over the
unselected tab or not.

It's used for the media's feature, resuming the background video decoding.

MozReview-Commit-ID: GuAyLNdH10c
2017-07-20 14:13:08 +08:00
Scott Wu
7e2f4bdc38 Bug 1364026 - (Part 2) Check if min and max attributes on input type date are valid date strings. r=mconley
MozReview-Commit-ID: LX6VveJdqer
2017-07-11 13:58:04 +08:00
Scott Wu
84ce8f1092 Bug 1363672 - Add step support to date picker. r=mconley
MozReview-Commit-ID: 62IfiKArN34
2017-05-11 12:16:18 +08:00