Commit Graph

36767 Commits

Author SHA1 Message Date
Carsten "Tomcat" Book
9031c83f32 Merge mozilla-central to autoland 2016-10-26 17:14:27 +02:00
Henry Chang
45d5eda33b Bug 1312323 - Consider the "single encoded value" case and bubble the decoding error up. r=francois.
MozReview-Commit-ID: 1GNFkMQ1JoD
2016-10-26 10:03:49 +08:00
Tomislav Jovanovic
47aa3f8372 bug 1272890 - implement match_about_blank for content scripts r=kmag
MozReview-Commit-ID: 3iZLpUw5LF4

--HG--
extra : rebase_source : d520a13211584af096f68cd0a2cfec022a72e413
2016-10-12 05:48:04 +02:00
Phil Ringnalda
0a5faee022 Merge m-c to autoland 2016-10-25 22:08:13 -07:00
Phil Ringnalda
8cf1367dd8 Merge m-i to m-c, a=merge
MozReview-Commit-ID: FnnOWQ3xKPi
2016-10-25 22:03:31 -07:00
Carsten "Tomcat" Book
31bdfd3ad3 Merge mozilla-central to mozilla-inbound
--HG--
rename : gfx/skia/skia/src/animator/SkCondensedDebug.cpp => gfx/skia/skia/src/animator/SkCondensedDebug.inc
rename : gfx/skia/skia/src/animator/SkCondensedRelease.cpp => gfx/skia/skia/src/animator/SkCondensedRelease.inc
2016-10-25 10:46:44 +02:00
Carsten "Tomcat" Book
59a29b8b1c merge mozilla-inbound to mozilla-central a=merge 2016-10-25 10:31:03 +02:00
Eric Rahm
c15406fea3 Bug 1312143 - Delete toolkit/obsolete. r=John-Galt
This removes the obsolete toolkit directory. A few references to dialogOverlay
have been updated to just used <dialog> directly. The InlineSpellCheckerUI var
has also been moved directly to browser.js and defined as lazy getter.

MozReview-Commit-ID: JZfi0W2wqCL
2016-10-24 18:23:24 -07:00
Wes Kocher
e636b54dfb Backed out changeset 2849f953881f (bug 1311189) for mochitest-5 failures a=backout 2016-10-24 16:49:55 -07:00
Stephen A Pohl
872ca624a7 Bug 1183037: Ensure that autocomplete popups can be displayed again after being dismissed the first time. r=mconley 2016-10-24 11:46:16 -04:00
Carsten "Tomcat" Book
b9e15ec151 Merge mozilla-central to mozilla-inbound 2016-10-24 16:56:37 +02:00
Mike Conley
3030fff48c Bug 1311189 - Put back the separator between form history and datalist entries in the autocomplete popup. r=MattN
MozReview-Commit-ID: 2lRauTr9EQA

--HG--
extra : rebase_source : 5364489af1e9647927756eae09d4512f24f57101
2016-10-19 13:55:06 -04:00
Mark Hammond
35966d2893 Bug 1312642 - PlacesSyncUtils should pass SOURCE_SYNC to PlacesUtils.bookmarks.reorder. r=kitcambridge
MozReview-Commit-ID: 4EsnU7LSWDG

--HG--
extra : rebase_source : 6c82b86c4098e4276e110aa481863c648c67ecc8
2016-10-25 13:47:33 +11:00
Rob Wu
7583495789 Bug 1287007 - Work-around for test failure in test_ext_cookies.html r=billm
There is a timing-sensitive bug in window.create and/or cookies API.
I haven't figured out the exact details, but created a minimal
test case and reported it at bugzil.la/1309637

Without this patch, the test will fail as described in that bug report.

MozReview-Commit-ID: DiJOao8h8Q7

--HG--
extra : rebase_source : 6a24f2570799cf113e544c68ef3d69645991e4a3
2016-10-12 19:13:46 +02:00
Ton
db0e472002 Bug 1309297 - Change "Show Folder" to "Open Folder" (about:profiles) in Windows. r=mossop
--HG--
extra : rebase_source : 9d3c21e25b49f7b112a03ec575840bccafb07d40
2016-10-11 19:36:33 +02:00
Jessica Jong
e732e68921 Bug 1310076 - Add 'datetime-local' to the list of valid types attributes for <input>. r=smaug 2016-10-24 03:35:00 +02:00
Tomislav Jovanovic
1975d67b88 bug 915036 - Implement DownloadSource.adjustChannel callback to support POST requests r=Paolo
MozReview-Commit-ID: 1RplqGhjtn6

--HG--
extra : rebase_source : 72c1300be889a61740cf6eca9c9e21fb979504a7
2016-10-21 15:54:18 +02:00
Ryan VanderMeulen
a57d15ff6a Merge inbound to m-c. a=merge 2016-10-23 13:16:27 -04:00
Valentin Gosu
db9440de51 Bug 1305204 - (Part 2) Backout bug 1275746 a=backout
MozReview-Commit-ID: H8aCKdJzEbR
2016-10-23 14:24:45 +02:00
Valentin Gosu
99164c0eef Bug 1305204 - (Part 1) Backout bug 1275746 a=backout
MozReview-Commit-ID: FtOalze9SdY
2016-10-23 14:24:41 +02:00
Sebastian Hengst
3707bccaf0 Merge mozilla-central to mozilla-inbound. r=merge a=merge 2016-10-22 23:03:08 +02:00
Sebastian Hengst
74dda94ef5 Merge mozilla-central to autoland. r=merge a=merge 2016-10-22 22:59:19 +02:00
Sebastian Hengst
30bb8ae0d4 Backed out changeset cc266f8bc70a (bug 1272890) for frequent failures in test_ext_contentscript_about_blank.html and a cascade of non-webextension tests. r=backout a=backout
MozReview-Commit-ID: 74wvhzI6fky
2016-10-22 22:56:18 +02:00
Ryan VanderMeulen
75888fe1aa Merge autoland to m-c on a CLOSED TREE. a=merge 2016-10-21 17:12:27 -04:00
Ryan VanderMeulen
5c4d7020f2 Merge m-c to inbound. a=merge 2016-10-21 11:08:45 -04:00
Michelangelo De Simone
07411b2cc6 Bug 1310027 - Remove DOM/mobilemessage and related code. r=Ehsan
MozReview-Commit-ID: ENmSuOCdTnA

--HG--
extra : rebase_source : a178eee07034fb2aa1415b64bec1946230fd1c5e
2016-10-17 17:26:51 -07:00
Henry
36fa608182 Bug 1307541 - ProtocolParserProtobuf to init and return update time properly. r=francois.
MozReview-Commit-ID: CmVWVKUeunJ

--HG--
extra : rebase_source : e8cd28a805b892fd26ca9bede3523a04f1bb5686
2016-10-18 14:45:21 +08:00
Tomislav Jovanovic
b20233c434 bug 1272890 - implement match_about_blank for content scripts r=kmag
MozReview-Commit-ID: 3iZLpUw5LF4

--HG--
extra : rebase_source : dad8e344fe1f16fb5fe93d8ad3598330d79167fd
2016-10-12 05:48:04 +02:00
Gregory Szorc
6e2794cb56 Bug 1277359 - Fix syntax error introduced in 87fe724cfc90; r=me 2016-10-21 18:37:02 -07:00
Ralph Giles
fd8841c0d4 Bug 1277359 - Report SSE2 instruction support on linux update pings. r=rstrong
We need to advertise this to the update server to avoid downloading
updates which won't run because of unsupported cpu features on
the recipient's hardware.

MozReview-Commit-ID: H36VXnD3TnW

--HG--
extra : rebase_source : ec382626f96f4f863b9ed44c5aec529d541815b9
2016-10-07 16:25:42 -07:00
Ryan VanderMeulen
23a915d778 Merge m-c to autoland on a CLOSED TREE. a=merge 2016-10-21 17:15:38 -04:00
Thom Chiovoloni
0117e0cf73 Bug 1299978 - Reupload parents of revived bookmarks and buffer folder deletion during sync r=markh,rnewman
MozReview-Commit-ID: BDfp5FffCWh

--HG--
extra : rebase_source : 0caecb27d753577373e150dd770370bd328dbe32
2016-10-05 14:04:50 -04:00
Jared Wein
43af4edf06 Bug 1311450 - Only show the 'touch' padding for the select dropdown when opened via touch. r=mconley,smaug
MozReview-Commit-ID: 521oAj1NzX7

--HG--
extra : rebase_source : c6e72987cfd0c237269ff7f203d47f1e21652e85
2016-10-20 12:45:39 -04:00
Andrew Swan
90b062a959 Bug 1311180 Switch mozAddonManager to frame message managers r=rhelmer
MozReview-Commit-ID: GbX0VRn4HUF

--HG--
extra : rebase_source : a852a68d0c0b07f7844650e41783c577534c4527
extra : source : 5656093771903569104f411742748777ae3585a5
2016-10-11 16:40:24 -07:00
Sumit Tiwari
bd39055a71 Bug 1309249: Add filepath to OS.File.read errors for lz4 decompression;r=Yoric
MozReview-Commit-ID: 3zeRnFYot69

--HG--
extra : rebase_source : 6d702ad8956744ad8dfa0429e0449f1613bb7e17
2016-10-16 11:30:47 -04:00
Sebastian Hengst
429cfcada7 Bug 1298211 - Implement chrome.topSites: Follow-up: Disable test on Android. r=me on a CLOSED TREE to fix xpcshell bustage 2016-10-20 21:00:20 +02:00
Kit Cambridge
bd8b26cc15 Bug 1310554 - Simplify BookmarkSyncUtils.order and use map lookups in Bookmarks.reorder. r=mak
Bug 1293365 fixed the query in `Bookmarks.reorder` to leave missing
entries in place, instead of moving them to the end of the folder. It
also correctly ignores nonexistent children, so we can
remove all the extra logic in `PlacesSyncUtils`.

We can also use a map instead of two linear searches to look up
indices in the `Bookmarks.reorder` sorting function. This reduces the
time to sort an array of 10k children from 30 seconds to less than a
second on my dev machine.

MozReview-Commit-ID: G9vuC12JXq4

--HG--
extra : rebase_source : 402e55b44f43a672d847f1f457bcb3538819e341
2016-10-19 19:06:34 -07:00
Shane Caraveo
6b82481239 Bug 1298211 - Implement chrome.topSites, r=aswan
MozReview-Commit-ID: I043WQoDbrf

--HG--
extra : rebase_source : 2e1e1e8890e1b195bd318d0635e56c73ac838c4f
2016-10-19 13:52:27 -07:00
Dave Townsend
c84765b00c Bug 1311459: Fix unsafe CPOW warnings in toolkit/mozapps/extensions/test/xpinstall. r=rhelmer
MozReview-Commit-ID: BX51ugGD54x

--HG--
extra : rebase_source : 3949a3a0dfbc5966b8db85e4bbf7b33a50733ee2
2016-10-19 11:31:57 -07:00
Rob Wu
c3c9744957 Bug 1287007 - Fix timing issue in test_delay_update_webextension.js r=rhelmer
The onUpdateAvailable listener is asynchronously notified, so the caller
(i.e. the test) cannot assume that a message sent immediately after
triggering an update would trigger the `browser.test.onMessage` listener
that was added in the onUpdateAvailable event handler.

MozReview-Commit-ID: 12n64f5l3RA

--HG--
extra : rebase_source : 6ba7923359786c4ccd7f4d29664a8567e253e0cd
2016-09-24 14:54:53 +02:00
Rob Wu
70ca4c8753 Bug 1287007 - Make window.close in extension pages async r=billm
Test coverage by tabs.onRemoved + window.close() in:
toolkit/components/extensions/test/mochitest/test_ext_tab_teardown.html

MozReview-Commit-ID: 7asg2XGrTaQ

--HG--
extra : rebase_source : 4498725a207e1863bb5a1f0ee58673e6976df1f8
2016-09-13 20:26:18 -07:00
Rob Wu
67b8230b49 Bug 1287007 - Remove .contentWindow from ProxyContext r=billm
MozReview-Commit-ID: ASNigrM07yz

--HG--
extra : rebase_source : e9169090ec8cb1d9822f235faa15516403576dde
2016-09-13 16:02:03 -07:00
Rob Wu
f81e1a59a2 Bug 1287007 - Fix test_ext_management_uninstall_self.js r=bsilverberg
The test logic was broken by design: Two tests uninstall the addon,
but only one uninstall observer was used. Consequently, the second
test resumes the test before the addon was actually uninstalled.

It is probably sheer luck that the test worked before.

MozReview-Commit-ID: DcT48ZQ2bRp

--HG--
extra : rebase_source : 6ab304eab2c306106b5383726fbdf73775c5060a
2016-09-13 13:59:37 -07:00
Johann Hofmann
65574a55ec Bug 1302474 - Add a pref to disable login autofill on insecure forms. r=MattN
MozReview-Commit-ID: Fpz5108WvpR

--HG--
extra : rebase_source : 62b5ad3289dd7ac229bd7270cdc9717ac5695a2c
2016-09-13 12:04:46 +02:00
Rob Wu
ec11370338 Bug 1287007 - Enable proxying of most APIs. r=billm
MozReview-Commit-ID: KrI42XrsVVG

--HG--
extra : rebase_source : 87958230f68c6866b4d62eff1f325f968ec09252
2016-09-12 21:19:53 -07:00
Rob Wu
1c0083af9d Bug 1287007 - Fix timing issue in test_ext_storage.js r=billm
MozReview-Commit-ID: 63Ra7ThuHuf

--HG--
extra : rebase_source : 386c565811fc07934653540905935607f58d7b4d
2016-09-13 00:45:00 -07:00
Rob Wu
0c66504d77 Bug 1287007 - Fix "onclick" in contextMenus, to child. r=billm
Main thing: Making contextMenus implementation webext-oop compatible.

Preparation:

- Add getParentEvent to ChildAPIManager to allow use of remote events.
- Introduce `addon_parent_only` to "allowedContexts" to only generate a
  schema API in the main process.
- Do not fill in `null` for missing keys if the schema declares a key as
  `"optional": "omit-key-if-missing"`. This is needed for the second
  point in the next list.

Drive-by fixes:

- Ensure that the "onclick" handler is erased when a context closes.
- Do not clear the "onclick" handler in `contextMenus.update` if the
  onclick key has been omitted (parity with Chrome).
- Remove some unnecessary `Promise.resolve()`
- Add extensive set of tests that check the behavior of the contextMenus
  APIs with regards to the onclick attribute in various scenarios.

MozReview-Commit-ID: A5f3AUQzU8T

--HG--
extra : rebase_source : 0464a1aa2387343a6f1d0fcd8fbabfdd1a68b1bb
2016-09-12 18:26:03 -07:00
Rob Wu
fcb710d311 Bug 1287007 - Move part of browserAction and pageAction to child r=billm
And remove redundant `Promise.resolve()` because it is the default
for async functions.

setIcon is not supported on Android, so there was no need to change
mobile/android/components/extensions/ext-pageAction.js.

MozReview-Commit-ID: 94ebaJFxLAi

--HG--
extra : rebase_source : 20466181501b264ba33fc8ab61fdf2bed20f9eef
2016-09-11 04:18:35 -07:00
Rob Wu
095763db5a Bug 1287007 - Set parent cloneScope to child cloneScope r=billm
This is only to help with migration. This change allows all APIs to
behave identical regardless of whether the API is proxied.

Change cloneScope to be a getter because cloneScope is
`this.contentWindow`, which may be nulled when the context navigates away
(but stays in the bfcache).

Any API that is not proxied must have an identical clone scope to make
sure that properties such as toJSON (in the native messaging
stringifier) and ArrayBuffer (in webRequest as requestBody) are visible
to the caller.

MozReview-Commit-ID: 9aT3SUBieHK

--HG--
extra : rebase_source : f5e4eef52100e42b6fcdc3a43fa7676e7fc3dabc
2016-09-11 03:10:21 -07:00
Rob Wu
03c9fa02f3 Bug 1287007 - Track message manager / browser swaps r=billm
Neither the message manager nor the XUL browser is guaranteed to be
constant during a ProxyContext's lifetime.

Add a new class to follow the `<browser>` belonging to the current
docshell and update the ProxyContext properties as needed.
NOTE: The `BrowserDocshellFollower` class assumes that docshells are
swapped using `newBrowser.swapDocShells(oldBrowser)`. If this
assumption turns out to be false, then the tracker will lose track of
the `<browser>`. See bugzil.la/1301837 for more details.

Also, renamed `messageManager` to `currentMessageManager` because the
`messageManager` property is overwritten by the `setContentWindow` hack
in WannabeChildAPIManager in ExtensionChild.jsm.

browser/components/extensions/test/browser/browser_ext_currentWindow.js
provides test coverage for this feature once the `test` API goes through
a ChildAPIManager instead of directly through a WannabeChildAPIManager.
Why? Because that test calls `test.onMessage.addListener` in the script
that is loaded in a popup page. Popups are loaded in two stages: First
the content is preloaded in a `<browser>`, and then when the popup is
shown a new `<browser>` is created and the docshells are swapped.
When the script runs while the popup script is being preloaded, the
`ParentAPIManager` receives the IPC message with the target set to the
`<browser>` used for preloading. When the API response is ready,
`target.messageManager.sendAsyncMessage` is called. Meanwhile the
docshells have been swapped, the message manager is gone and this fails.
With this patch, the message manager is correctly tracked and this test
passes.

MozReview-Commit-ID: C5Z0ZJRXKyw

--HG--
extra : rebase_source : 63e6c408d0e7f58dca81810771810cf6fe7b5d5b
2016-09-09 23:04:04 -07:00