Commit Graph

554696 Commits

Author SHA1 Message Date
steveck-chung
337903a6e7 Bug 1371113 - Part 3: Add mochitest for credit card doorhanger. r=lchang
MozReview-Commit-ID: A8dawwdJrV2

--HG--
extra : rebase_source : 42eab85f76f8e539a2c9f7a7de345e2fcd139c1b
2017-08-23 19:24:31 +08:00
steveck-chung
a4082ff92b Bug 1371113 - Part 2:Show doorhanger and save/disable credit card. r=lchang
MozReview-Commit-ID: EcAL3ANrrGb

--HG--
extra : rebase_source : 2b6ca63dfd47409e06491dd9988f734420849f32
2017-08-09 15:43:28 +08:00
steveck-chung
5880b7fad7 Bug 1371113 - Add credit card doorhanger. r=lchang
MozReview-Commit-ID: 6qIDgmfLNJC

--HG--
extra : rebase_source : 2603de69a897a327f0b30dc4e07027351db2a2de
2017-08-02 16:16:42 +08:00
Masayuki Nakano
1c17ef6f96 Bug 1393816 - part2: Selection::SetBaseAndExtent() should use mCachedRange if it's available r=smaug
Similar to Selection::Collapse(), if mCachedRange is available,
Selection::SetBaseAndExtent() should use it rather than creating new nsRange
instance.

Then, it can reduce the allocation cost and may reduce some other cost, e.g.,
adding it to mutation observer.

MozReview-Commit-ID: InQQusw2KMc

--HG--
extra : rebase_source : 967f0d4ad2b7bc706e417af547bbbb21e5f54306
2017-08-26 00:12:38 +09:00
Masayuki Nakano
5c2c570f9b Bug 1393816 - part1: Cache a range until new range is created in Selection r=smaug
When setting value of <input type="text">, nsTextEditorState removes all
ranges of normal selection first.  Then, TextEditor sets the value.  Finally,
TextEditor collapses the selection at the end of the text.

In bug 1386471, we got that there are some problems to remove the call of
Selection::RemoveAllRanges() in nsTextEditorState.  Therefore, we need another
approach to improve Selection::Collapse().

The approach of this patch is, when removing all ranges from normal selection,
Selection can cache an nsRange instance if there is an instance which is not
referenced from other than the Selection (i.e., it'll be removed when
Selection::Clear() is called).  Then, Selection::Collapse() can reuse it.  With
this fix, Selection::Collapse() can reduce allocation cost and may reduce some
other cost like adding it to mutation observer.

However, keeping nsRange instance may cause increasing mutation observer's cost
since nsRange will be adjusted its start node/offset and end node/offset with
mutation observer to guarantee that the range is always valid.  So, we can
cache such range only when the caller (or its callee) will set selection range
later.  Therefore, this patch adds Selection::RemoveAllRangesTemporarily()
and make only nsTextEditorState::SetValue() and
ContentEventHandler::OnSelectionEvent() use it.

MozReview-Commit-ID: FjWrbz4S1ld

--HG--
extra : rebase_source : 83677640525e0b1a84bdd7fce63ff4704b9cc22b
2017-08-25 19:21:39 +09:00
JW Wang
470f887d6d Bug 1393369. P4 - remove MediaSourceResource::GetCurrentPrincipal(). r=gerald
MozReview-Commit-ID: J96wBGLBQ45

--HG--
extra : rebase_source : 269edf22f54b0a81331c7b3c8b264a350cac1a91
extra : source : daddcd406a1f61cae957ba941247d602a1f7d3bf
2017-08-24 17:13:03 +08:00
JW Wang
17c492ee07 Bug 1393369. P3 - remove unused code. r=gerald
MozReview-Commit-ID: IFxx8AEdDju

--HG--
extra : rebase_source : 83be99a6fd1514d1ffff469418cde3a2ac38b935
extra : source : b13cdacfa389d5ef6b349e1e030e2bdff2b92f98
2017-08-24 17:04:59 +08:00
JW Wang
db3e1718f7 Bug 1393369. P2 - remove MediaResource::GetCurrentPrincipal(). r=gerald
MozReview-Commit-ID: 9as5ya2xXdL

--HG--
extra : rebase_source : 7141cec4f3e9c38253b85e71d3b5efe5a5d7dddd
extra : source : 9d9f1de4db95a353040f7c7c484e7d9d79f275fa
2017-08-24 17:01:08 +08:00
JW Wang
59d7107e86 Bug 1393369. P1 - virtualize MediaDecoder::GetCurrentPrincipal() so the sub-classes know how to calculate the current principal. r=gerald
MozReview-Commit-ID: EOUtPE4hfgO

--HG--
extra : rebase_source : d15166e373fdd3a8490e2c794215aeb2551a7397
extra : source : 5f627ea709d24c8b7c5ddd0115524ef734378e66
2017-08-24 16:58:06 +08:00
Jing-wei Wu
0dc15e318d Bug 1391177 - Part 9: Change indicator height in tabs tray page to 4dp. r=nechen,walkingice
MozReview-Commit-ID: JWzkvs0xJEo

--HG--
extra : rebase_source : 5220b635279ec8187751e819402f41db94c65d4f
2017-08-22 14:12:59 +08:00
Jing-wei Wu
352d2d1c0e Bug 1391177 - Part 8: Adjust layout for menu icons on toolbar. r=nechen,walkingice
MozReview-Commit-ID: 46l5Uw3zhO5

--HG--
extra : rebase_source : 71875cbd67ff3f3d674a4020481b3f9f81bd6b1d
2017-08-28 09:20:19 +08:00
Jing-wei Wu
fec51f2213 Bug 1391177 - Part 7: TabCounter refinements. r=nechen,walkingice
1. Ratio of one digit is changed from 0.7 to 0.5.
2. Decorate text with 'sans-serif-medium' & 'bold'.
3. Change border thinkness from 2.5dp to 2.3dp.

MozReview-Commit-ID: 9ghdkBAFx9r

--HG--
extra : rebase_source : cfb825233ff34729aba5bbf2fd6c6b8583a9c9cb
2017-08-21 18:31:09 +08:00
Jing-wei Wu
1abc892fb7 Bug 1391177 - Part 6: Change the primary blue from #00A2FE to #0A84FF. r=nechen,walkingice
MozReview-Commit-ID: CnUuCtGLAU5

--HG--
extra : rebase_source : e9aad4db9a938296a2bd421263248ee04c0dddc1
extra : intermediate-source : 80481e5fc6301733ad6ccb33a8b3cefe7d971ceb
extra : source : 4eccaa8a53b455b63be544cbfefff46379ac7c75
2017-08-14 14:41:58 +08:00
Jing-wei Wu
5d1e0e73ed Bug 1391177 - Part 5: Remove vertical dividers in tabs tray page. r=nechen,walkingice
MozReview-Commit-ID: 3QXKlmJmg7R

--HG--
extra : rebase_source : 5d33a5b3e139e32c6f71ecfecd810b3a3af5816a
extra : intermediate-source : 720407bcd509fefb65dfa5e0c90999b22615917d
extra : source : 119c08e61355e37ec9f0764a5f75f92cf1f11418
2017-08-14 14:11:14 +08:00
Jing-wei Wu
501afe48ba Bug 1391177 - Part 4: Change text selection color to primary color + 30% alpha. r=nechen,walkingice
MozReview-Commit-ID: Gm7nGDZeWyA

--HG--
extra : rebase_source : 24d5a9dc4ffe7b1d29e045c178ac7efc708ae4d5
extra : intermediate-source : 3c9d54bf3f19ff4af3cae776bddfa17370a5ca78
extra : source : 43c6c11b2fa6bb5b53a63b1b62c216ac82981314
2017-08-14 14:05:24 +08:00
Jing-wei Wu
8467324208 Bug 1391177 - Part 3: Update icons for mobile photon. r=nechen,walkingice
Update a few icons received from designer and remove mdpi images.

MozReview-Commit-ID: 87Hc3GqtZm9

--HG--
rename : mobile/android/app/src/main/res/drawable-hdpi/home_tab_menu_strip.9.png => mobile/android/app/src/photon/res/drawable-hdpi/home_tab_menu_strip.9.png
rename : mobile/android/app/src/main/res/drawable-hdpi/tab_indicator_background.9.png => mobile/android/app/src/photon/res/drawable-hdpi/tab_indicator_background.9.png
rename : mobile/android/app/src/main/res/drawable-hdpi/tab_indicator_selected.9.png => mobile/android/app/src/photon/res/drawable-hdpi/tab_indicator_selected.9.png
rename : mobile/android/app/src/main/res/drawable-hdpi/tab_indicator_selected_focused.9.png => mobile/android/app/src/photon/res/drawable-hdpi/tab_indicator_selected_focused.9.png
extra : rebase_source : cd193c88e3650f134190d3e55843396a0b3f8b5f
extra : source : 31ed050ebe02273ea1e75341634bf32065d117f9
2017-08-25 15:05:23 +08:00
Jing-wei Wu
b569b8cde2 Bug 1391177 - Part 2: Change text yes/no in search suggestion prompt to capitals. r=nechen,walkingice
MozReview-Commit-ID: LTiVMsPdO88

--HG--
extra : rebase_source : 1dc6c135b27aa717f94d13d324f24d0199f690ea
extra : intermediate-source : b7685ff3c2221da093dec2c0b5bd57dbfa704d5c
extra : source : 0b66e4a3c93bdf6a753907bc07b0b13494db32b4
2017-08-14 15:07:22 +08:00
Jing-wei Wu
6fafdf0bbc Bug 1391177 - Part 1: Change URL text(except domain) color in toolbar from #B2B2B2 to #737373. r=nechen,walkingice
MozReview-Commit-ID: dK4hDxx9iv

--HG--
extra : rebase_source : eb5e191b27a567db9a44e1394ec44bb37d247c35
extra : source : aca501b3f1ad86fa10c5580c0d02f9f82550004f
2017-08-17 16:13:54 +08:00
Ed Lee
c45c98d3f5 Bug 1392384 - Add Photon styles, section ordering and bug fixes to Activity Stream. r=dmose
--HG--
extra : rebase_source : 8ab0b0d985094fa80f71cc388dd862d4c078bb36
2017-08-25 03:37:52 -07:00
Masayuki Nakano
5e251e26e0 Bug 1393348 - part3: Converting SelectionType to index of Selection array in nsFrameSelection should use array instead of switch statement r=smaug
GetIndexFromSelectionType() in nsFrameSelection.cpp or
nsFrameSelection::GetSelection() appears in profile of attachment 8848015.  So,
it should not use switch statement due to really hot path.

With the previous patch, we can make it use array to retrieve the index from
SelectionType with static_cast<int8_t>.

MozReview-Commit-ID: 8jvIF5buTyT

--HG--
extra : rebase_source : ccb9c855caa6688e45097f67de3160860339d281
2017-08-24 20:01:20 +09:00
Masayuki Nakano
3bd4299525 Bug 1393348 - part2: nsISelectionController::SELECTION_* should be sequential integer values r=smaug
nsISelectionController::SELECTION_* are declared as bit-mask.  However, no
methods of nsISelectionController treat them as bit-mask and these
values need a switch statement in nsFrameSelection to convert SelectionType to
array index of nsFrameSelection::mDOMSelections because it's too big to create
an array to do it.  Additionally, this conversion appears profile of
attachment 8848015.

So, now, we should declare these values as sequential integer values.

However, only nsTextFrame uses these values as bit-mask.  Therefore, this patch
adds new type, SelectionTypeMask and creates new inline method,
ToSelectionTypeMask(SelectionType), to retrieve mask value for a SelectionType.

MozReview-Commit-ID: 5Za8mA6iu4

--HG--
extra : rebase_source : 86617c1f5fa23166458f4353cb834f9e7c5b131b
2017-08-24 19:14:04 +09:00
Masayuki Nakano
da1455e4b2 Bug 1393348 - part1: nsTextEditorState should use nsTextInputSelectionImpl::GetSelection(SelectionType) instead of nsTextInputSelectionImpl::GetSelection(RawSelectionType, nsISelection**) r=m_kato
nsTextEditorState stores selection controller as
RefPtr<nsTextInputSelectionImpl> mSelCon.  However, some methods still use
nsTextInputSelectionImpl::GetSelection(RawSelectionType, nsISelection**) which
is a virtual method overriding nsISelectionController.

So, instead, we should make it use
nsTextInputSelectionImpl::GetSelection(SelectionType).

MozReview-Commit-ID: Cvxa85LegsO

--HG--
extra : rebase_source : f8618fb9b4b2a1d3a02b4ce49906c8b995766e3f
2017-08-24 16:19:28 +09:00
Evan Tseng
6ca7e030d1 Bug 1393354 - Update the color code of in-content link's normal, hover, and active stages to match Photon visual spec. r=mconley
MozReview-Commit-ID: Ltj7Clw4StH

--HG--
extra : rebase_source : 30a1b3f068b5045d1e7d9b14ee290d42a99ba83c
2017-08-25 18:35:33 +08:00
Phil Ringnalda
ee5cb40783 Merge m-c to autoland
MozReview-Commit-ID: H7Fc0xGzj49
2017-08-27 17:33:49 -07:00
Phil Ringnalda
f144cb08b9 Merge m-i to m-c, a=merge
MozReview-Commit-ID: AX10UmzAEqg
2017-08-27 17:31:55 -07:00
Phil Ringnalda
f6a8febe29 Merge autoland to m-c, a=merge
MozReview-Commit-ID: IS1hqTsOs9q
2017-08-27 17:30:51 -07:00
ffxbld
18c16ebf81 No bug, Automated HPKP preload list update from host bld-linux64-spot-301 - a=hpkp-update 2017-08-27 10:15:50 -07:00
ffxbld
d4ecdb7fe4 No bug, Automated HSTS preload list update from host bld-linux64-spot-301 - a=hsts-update 2017-08-27 10:15:46 -07:00
Phil Ringnalda
e6458e1fee Merge m-i to m-c, a=merge
MozReview-Commit-ID: AYBlGJan6UL
2017-08-26 18:18:02 -07:00
Phil Ringnalda
e300bc2504 Merge autoland to m-c, a=merge
MozReview-Commit-ID: BFVS6hRAxIb
2017-08-26 18:12:15 -07:00
Aki Sasaki
8e6740ad55 bug 1394130 - 2 locales per chunk to avoid signing timeouts. r=bustage a=release DONTBUILD
MozReview-Commit-ID: 36iGm6Rxtda

--HG--
extra : histedit_source : b10c8c259960ccfd11205f230839bb45a5ffc4f2
2017-08-26 14:23:30 -07:00
Zibi Braniecki
625fb0084a Bug 1393848 - Move search-plugin resource entry to browser's content jar.mn. r=Pike
MozReview-Commit-ID: JJD222TkR8a

--HG--
extra : rebase_source : 9e6fb7e165fda08b497849ec660c802cf2311449
2017-08-25 10:00:17 -07:00
Nicholas Nethercote
c7df832636 Bug 1393642 - Remove nsIAtom/nsIAtomService usage from script in editor/. r=masayuki.
nsIHTMLEditor has several scriptable methods (addDefaultProperty(),
removeDefaultProperty(), etc.) that have nsIAtom parameters. We're in the
process of deCOMtaminating nsIAtom (bug 1392883) so these methods need to be
changed.

This patch does the following.

- It changes those methods to take an AString instead of an nsIAtom.

- For each existing method, it adds to HTMLEditor a new C++ method of the same
  name that takes an nsIAtom parameter.

- It updates TextEditorTest.cpp to use strings instead of atoms, in order to
  keep using the XPIDL methods.

- It updates test_bug1140105.html to pass strings instead of atoms to
  getInlineProperty(). This removes the use of nsIAtomService.

--HG--
extra : rebase_source : e005c3b5a08207b3d5d5fb55c47c8bc475b33453
2017-08-25 15:40:45 +10:00
Tooru Fujisawa
edfe01e5ed Bug 1393160 - Detect visibility of the drag event target and fail if hidden. r=smaug 2017-08-27 21:03:31 +09:00
Till Schneidereit
f16fb7241c Bug 1342050 - Shrink Promise instances from 8 to 4 slots by moving debug information to an external object. r=arai
The debug info object is only allocated if, when the Promise is created, either async stacks are enabled or the Promise is created in a debuggee compartment.

MozReview-Commit-ID: 2Ct6QkSeNmA
2017-08-27 12:27:10 +02:00
Phil Ringnalda
5e0cb1d330 Merge m-c to m-i
MozReview-Commit-ID: 3TTO51aTTST
2017-08-26 18:20:19 -07:00
Phil Ringnalda
6e0931231e Backed out changeset eca521df662f (bug 1388221) for browser_library_downloads.js, browser_library_infoBox.js and browser_library_search.js failures on OS X
MozReview-Commit-ID: CrYUAKCFCMK
2017-08-26 17:34:08 -07:00
Jeff Muizelaar
1dcc5366ff Bug 1387550 - Support tiled drawing of blob images in Gecko.
Tiling will be used when we need an image that's larger than
the max texture size.
2017-08-26 17:31:25 -04:00
Zibi Braniecki
b818d73197 Bug 1377911 - Move the override chrome entries from language manifests to product manifests. r=Pike a=merge
MozReview-Commit-ID: 7VgO2ui9yH5

--HG--
extra : source : 8396a848ae256af62f3f67779d69c8434d378c23
2017-08-24 16:21:48 -07:00
Zibi Braniecki
1d6f6f19e8 Bug 1377911 - Do not strip localized override entries when repackaging. r=glandium,Pike
MozReview-Commit-ID: vKPJcxzh4T

--HG--
extra : source : 0c0bbead5d73c4ea3db4e5178a9b27883879d744
2017-08-24 18:08:26 -07:00
Wes Kocher
68149d6a59 Merge inbound to central, a=merge
MozReview-Commit-ID: 3N9jinnrmjb
2017-08-25 16:21:57 -07:00
L10n Bumper Bot
a1c1b36bd1 no bug - Bumping Fennec l10n changesets r=release a=l10n-bump
vi -> default
2017-08-25 15:00:40 -07:00
Wes Kocher
a9e27dfc6e Merge autoland to central, a=merge
MozReview-Commit-ID: KkDgwqt55WQ
2017-08-25 14:20:56 -07:00
Ryan VanderMeulen
4a6e771437 Bug 1332144 - Fix no-extra-semi ESLint failure in ext-find.js. r=me 2017-08-25 15:39:39 -04:00
Michael Layzell
e8a43bfd07 Bug 1393912 - Register the pending input event annotator on the main thread, r=smaug 2017-08-25 15:31:54 -04:00
Ryan VanderMeulen
89e125b817 Backed out changeset 121e4d470c11 (bug 1391703) for breaking periodic HSTS/HPKP updates. 2017-08-25 10:16:27 -04:00
Sebastian Hengst
6fd5b9e1ca merge mozilla-central to autoland. r=merge a=merge 2017-08-25 13:19:59 +02:00
Sebastian Hengst
31302b9cec merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 5armhVE9Jui
2017-08-25 13:12:04 +02:00
Cervantes Yu
7d0d416f10 Bug 1390143 - Generate the parent minidump synchronously to keep parent process's stack when creating paired minidumps. r=gsvelto
Bug 1360308 offloads IO operations from the main thread when we create paired minidumps.
This breaks the symmetry of paired minidumps: the thread stacks of the parent minidump
doesn't correspond to the thread stacks in the child minidumps and renders the parent
stack useless. This patch moves generation of the parent minidump back to the main
thread to keep the context of the parent process when creating paired minidumps. Child
minidump is still created asynchronously.

MozReview-Commit-ID: 9RmBAuXMPSX
2017-08-25 11:12:34 +08:00
Ryan VanderMeulen
22d133ea9e Merge m-c to inbound. a=merge 2017-08-24 20:21:30 -04:00