Commit Graph
275 Commits
Author SHA1 Message Date
Michael Layzell a9f2d67568 Bug 1345733 - Increase timeout for large allocation tests, r=smaug 2017-09-26 11:15:50 -04:00
Masatoshi Kimura ab77b9afbb Bug 1398445 - Remove window._content. r=mystor,qdot
MozReview-Commit-ID: 13KovslzGnM
2017-09-09 10:47:48 +09:00
Andrew McCreight ed0e2f0913 Bug 1186409 - Use Cu.getGlobalForObject when importing properties off a JSM global. r=kmag
With JSM global sharing, the object returned by Cu.import() is a
NonSyntacticVariablesObject, rather than a global. Various code tries
to use properties from a JSM global via an import.

Cu.importGlobalProperties can also be used in some places.

MozReview-Commit-ID: HudCXO2GKN0
2017-06-23 13:51:14 -07:00
Michael Layzell 0230475b84 Bug 1394596 - Support window.open(undefined, undefined, "noopener") in the child process, r=smaug 2017-08-29 13:17:48 -04:00
Stone Shih 744eec94bc Bug 1351148 Part4: Revise those test cases that have some tasks have to be processed before or after the synthesized key events. r=smaug.
Make sure input events are processed before or after the dependent tasks.

MozReview-Commit-ID: 8KfZnT2wjJR
2017-06-07 14:28:16 +08:00
Stone Shih 5e5cea7619 Backed out changeset de4929e39b7e (bug 1351148) 2017-08-11 15:19:30 +08:00
Stone Shih 263fd4d632 Bug 1351148 Part4: Revise those test cases that have some tasks have to be processed before or after the synthesized key events. r=smaug.
Make sure input events are processed before or after the dependent tasks.

MozReview-Commit-ID: 8KfZnT2wjJR
2017-06-07 14:28:16 +08:00
Andrew Sutherland 0e5395f278 Bug 1350637 - Part 10: Update LocalStorage e10s tests for change to PBackground. r=janv
The e10s tests were written assuming a world where ContentTask.spawn and
LocalStorage were both PContent.  Also, that Quantum DOM labeling wasn't
something to worry about.  These assumptions no longer held, resulting in
the test intermittently failing if all changes hadn't propagated via
PBackground to the tab under test by the time the ContentTask.spawn
state retrieval call made it to the tab's main thread.

This has been corrected by using "storage" events where already in use and
polling where not in use.  Plase see the added comments for more details.
2017-08-07 04:14:17 -04:00
Masatoshi Kimura acfaf6cffe Bug 1149830 - Remove nsIStackFrame::language. r=bz,mccr8
MozReview-Commit-ID: LxTiLFzNJ9Y
2017-08-03 15:50:07 +09:00
Kyle Machulis 9ac74778dd Bug 1279218 - Rename HTMLSharedObjectElement to HTMLEmbedElement; r=bz
MozReview-Commit-ID: KkvRkFXAX30
2017-07-28 21:35:43 -07:00
Carsten "Tomcat" Book 4c1b3192ca Backed out changeset 5198322f7a62 (bug 1351148) 2017-07-28 09:20:20 +02:00
Stone Shih 34554b5597 Bug 1351148 Part4: Revise those test cases that have some tasks have to be processed before or after the synthesized key events. r=smaug.
Make sure input events are processed before or after the dependent tasks.

MozReview-Commit-ID: 8KfZnT2wjJR
2017-06-07 14:28:16 +08:00
Florian Quèze 745e6b5103 Bug 1374282 - hand cleanup for the script generated patch to remove Task.jsm calls, r=Mossop. 2017-06-22 12:51:42 +02:00
Florian Quèze d0406d270c Bug 1374282 - script generated patch to remove Task.jsm calls, r=Mossop. 2017-06-22 12:51:42 +02:00
Edgar Chen 871e4504c2 Bug 1236512 - Part 3: Set docShellIsActive to false when browser window is fully covered by another application; r=mconley
MozReview-Commit-ID: DLsmWp1h8pa
2017-06-05 14:56:00 +08:00
Carsten "Tomcat" Book 472feeff02 Backed out changeset f9147bef9fc6 (bug 1236512) 2017-06-20 14:30:34 +02:00
Edgar Chen db4f88e477 Bug 1236512 - Part 3: Set docShellIsActive to false when browser window is fully covered by another application; r=mconley
MozReview-Commit-ID: DLsmWp1h8pa
2017-06-05 14:56:00 +08:00
Paolo Amadini 489326239e Bug 1242505 - Detect unhandled rejections of native Promises in browser-chrome tests. r=Mossop
The browser-chrome test suite now detects and reports unhandled rejections of native Promises, in addition to those created by Promise.jsm. The whitelisting mechanism is updated to use primarily the PromiseTestUtils.expectUncaughtRejection function. Tests will fail if a rejection that is not whitelisted occurs, or if a whitelisted rejection does not occur anymore.

MozReview-Commit-ID: 1beGB5GG8Ty
2017-06-18 08:05:06 +01:00
Andrew Sutherland 91bee582ca Bug 1345421 - Part 2: Ensure mOriginsHavingData is up-to-date via flushing. r=baku
The intermittent failure appears to have been due to mOriginsHavingData
only being updated when the db thread flushes.  The db thread has a
hard-coded 5 second flush interval.  It's likely that e10s startup was
previously so slow that we were assured of having a flush happen by the
time our fresh process created its parent actor.

We correct this by reliably ensuring a flush before spinning up the
process to check preload state.  We also ensure a flush at the start of
the test for our check that there was no preload in the initial cases.
We were actually more vulnerable in that case, I believe, but as a
browser chrome test, there were no other tests that would have used
content localStorage.

We additionally ensure that the content process has received and
populated mOriginsHavingData by having the tab opening process wait for
about:blank to load in the process before actually opening our origin.
Prior to this change we were depending on orderings that aren't
guaranteed.
2017-06-12 04:52:21 -04:00
Andrew Sutherland 911766ab5e Bug 1345421 - Part 1: Clean up mechanism used to create fresh processes. r=baku
Bug 1345990 introduced a "forceNewProcess" argument in
BrowserTestUtils.openNewForegroundTab.  By switching to this we can
stop bloating the process count pref to try and produce equivalent
results.  To minimize test churn and because it doesn't really hurt to
double-check, the code that asserts that our tabs are each in different
processes and related book-keeping infrastructure have been left intact.

We also set a preference to disable preallocated processes in the interest
of maximizing test consistency and minimizing breakage.  It's conceivable
that a preallocated process might end up creating its StorageDBParent
actor prior to when we want, breaking things.  By ensuring the process
isn't created until we want it, we avoid a lot of brittleness.
2017-06-12 03:17:17 -04:00
Michael Layzell 8a0a082af2 Bug 1371349 - Request an even longer timeout for browser_noopener.js, r=smaug
MozReview-Commit-ID: 7YhR1duEIJr
2017-06-13 12:30:33 -04:00
Michael Layzell a0d383b165 Bug 1371100 - Check userContextId in the content process instead of in the chrome process, r=smaug
This is necessary because we asynchronously send the updated UserContextId back
from the child to the parent process, and we would occasionally lose the race on
infrastructure causing us to see the non-updated version.

With this change we explicitly ask the content process, which is not racey.

MozReview-Commit-ID: LODNi1YmBI8
2017-06-08 13:42:14 -04:00
Michael Layzell 9bcd289dd1 Bug 1365032 - Part 2: Add a test for propagating properties of windows across window.open, r=smaug
MozReview-Commit-ID: i7cW9rd0eO
2017-06-07 12:55:07 -04:00
Kris Maglione e5aca6859e Bug 1322235: Part 6 - Replace AddonPolicyService with a stub implementation in ExtensionPolicyService. r=mixedpuppy,zombie
This replaces the JS policy service stubs with a pure C++ version which
directly makes policy decisions based on active WebExtensionPolicy objects.

This is the first step in a larger refactoring, which will remove the
ExtensionManagement module entirely, and replace the current add-on policy
service with direct, non-virtual access to native WebExtensionPolicy objects.

It will also be followed by related changes to migrate the content script and
extension page matching to native code, based on the existing MatchPattern and
WebExtensionPolicy bindings.

MozReview-Commit-ID: 2MpbmXZGiPZ
2017-06-03 17:12:14 -07:00
Joel Maher d1f0b3328d Bug 1368364 - backout bug 1242505 as it causes browser/modules/ intermittent failures. r=paolo 2017-06-03 10:34:14 +02:00
Paolo Amadini e2ac328f74 Bug 1242505 - Part 3 - Detect unhandled rejections of native Promises in browser-chrome tests. r=Mossop
The browser-chrome test suite now detects and reports unhandled rejections of native Promises, in addition to those created by Promise.jsm. The whitelisting mechanism is updated to use primarily the PromiseTestUtils.expectUncaughtRejection function. Tests will fail if a rejection that is not whitelisted occurs, or if a whitelisted rejection does not occur anymore.

MozReview-Commit-ID: 1beGB5GG8Ty
2017-05-28 11:46:45 +01:00
Sebastian Hengst d3e7375d07 Backed out changeset 8d53be05afc5 (bug 1242505) 2017-05-28 11:31:12 +02:00
Paolo Amadini 0c75b3612c Bug 1242505 - Part 3 - Detect unhandled rejections of native Promises in browser-chrome tests. r=Mossop
The browser-chrome test suite now detects and reports unhandled rejections of native Promises, in addition to those created by Promise.jsm. The whitelisting mechanism is updated to use primarily the PromiseTestUtils.expectUncaughtRejection function. Tests will fail if a rejection that is not whitelisted occurs, or if a whitelisted rejection does not occur anymore.

MozReview-Commit-ID: 1beGB5GG8Ty
2017-05-25 15:00:35 +01:00
Masayuki Nakano db7735d2b2 Bug 1339543 part 2 eKeyPress event should have edit commands for all editor types when it's dispatched to a remote process r=smaug
When eKeyPress event is dispatched from TabParent to a remote process, it
should store edit command for all editor types.  Then, copied
WidgetKeyboardEvent in the remote process doesn't need to request the edit
commands when its ExecuteEditCommands() is called.

Note that this patch also changes a automated test, browser_bug1316330.js,
that uses nsIDOMWindowUtils.dispatchDOMEventViaPresShell() to dispatch
repeated keyboard events in the tab.  However, it should use synthesizeKey()
to emulate everything of native keyboard events and the API can dispatch
repeated keyboard events too.  (And the test has a bug.  It tries to wait 0.5
sec when every keydown or keypress event.  However, it fails since startTime
is never initialized.  This patch fixes this bug too.)

MozReview-Commit-ID: IYhyxqH3Ch8
2017-05-19 17:24:20 +09:00
Bob Owen fa35e8115b Bug 1351358 Part 8: Check that reload doesn't cause new process when large allocation browser in tab group. r=mystor 2017-05-18 12:08:58 +01:00
Christoph Kerschbaumer 5452a95b49 Bug 1362993 - Rewrite gBrowser.addTab() to use BrowserTestUtils.addTab(). r=florian 2017-05-15 21:49:50 +02:00
Mike Conley 08e90b1806 Bug 1336763 - Update browser_beforeunload_between_chrome_content.js to use ContentTask. r=jessica
By using ContentTask, we get a Promise that resolves once we've heard confirmation from
the content process that the ContentTask function has completed running. This means we
can be certain that browser_beforeunload_between_chrome_content.js has had the beforeunload
event handlers added before attempting to unload the page.

MozReview-Commit-ID: DhoTsOZ4BNk
2017-04-27 12:46:59 -04:00
Mike Conley 8edbff2b54 Bug 1336763 - Regression tests that exercise nsITabParent's hasBeforeUnload attribute. r=Ehsan
MozReview-Commit-ID: 5prqteICE7M
2017-04-14 18:32:37 -04:00
Andrea Marchesini 5b11b585fb Bug 1357473 - Update Console to the latest spec - part 7 - test updated, r=bgrins 2017-04-20 13:52:43 +02:00
Andrea Marchesini 94b9d42abb Bug 1357473 - Update Console to the latest spec - part 3 - Console.groupEnd(), r=bgrins, r=nchevobbe 2017-04-18 10:04:00 +02:00
Florian Queze d3c36892fa Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Sebastian Hengst 42670ceca0 Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout 2017-04-14 23:39:22 +02:00
Florian Queze 9b4f73599f Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Michael Layzell 1af41b0c0b Bug 1347983 - Part 2: Add a test to ensure that forms submitted from a large-allocation page behave correctly, r=smaug
MozReview-Commit-ID: Af44H11AFMf
2017-03-16 14:32:30 -04:00
Michelangelo De Simone 1d0cfa59bf Bug 1341928 - Tag the Geolocation test suite. r=jdm
MozReview-Commit-ID: 9bNXMQNsL1a
2017-02-22 15:49:59 -08:00
Michelangelo De Simone 1dbb4368db Bug 1072859 - Disable Geolocation on non-secure origins. r=jdm
MozReview-Commit-ID: KnHOb0aN4nE
2017-03-08 16:45:44 -08:00
Sebastian Hengst 90b3b93efb Backed out changeset 8b1c50cdb50c (bug 1072859) for failing devtools/client/responsive.html/test/browser/browser_permission_doorhanger.js. r=backout a=merge
MozReview-Commit-ID: LaknhYl9fEw
2017-03-09 00:46:17 +01:00
Michelangelo De Simone 13ce3fb3c0 Bug 1072859 - Disable Geolocation on non-secure origins. r=jdm
MozReview-Commit-ID: KnHOb0aN4nE
2017-03-06 14:10:13 -08:00
Kris Maglione a1c3a9c808 Bug 1314361 - Part 3: Stop using origin attributes for add-on ID in console filtering. r=baku 2017-02-26 13:13:45 -08:00
Andrew Sutherland e86570ccd8 Bug 1341161 - Handle "dom.ipc.keepProcessesAlive.web" pref not existing, fixing permaorange on aurora. r=baku 2017-02-20 22:19:16 -05:00
Andrew Sutherland a0adbc3dd1 Bug 1285898 - [e10s-multi] LocalStorage e10s Test. r=baku 2017-02-07 04:05:07 -05:00
Michael Layzell 8453fd2c60 Bug 1338241 - Part 4: Add tests for dragging browsers into new windows, r=smaug
MozReview-Commit-ID: XwwrAbeyhy
2017-02-17 12:01:41 -05:00
Michael Layzell e4431d5605 Bug 1338241 - Part 2: Simplify the in large allocation process logic, r=smaug
MozReview-Commit-ID: 6aF2wlLgy42
2017-02-17 12:00:45 -05:00
Michael Layzell f6a530a94c Bug 1339153 - Part 2: Add a test to ensure that view-source pages are not loaded as though they have a Large-Allocation header, r=smaug
MozReview-Commit-ID: CDYNC6UDScJ
2017-02-13 14:42:24 -05:00
Jessica Jong 1653fdc0ea Bug 1316330 - Cancel delayed keypress events if last keydown was canceled. r=smaug 2017-02-03 05:16:00 -05:00