Remove remaining references to LLVM, and make sure comments refer to the backend...
[WebKit-https.git] / Tools / ChangeLog
1 2016-02-18  Filip Pizlo  <fpizlo@apple.com>
2
3         Remove remaining references to LLVM, and make sure comments refer to the backend as "B3" not "LLVM"
4         https://bugs.webkit.org/show_bug.cgi?id=154383
5
6         Reviewed by Saam Barati.
7
8         * Scripts/run-jsc-stress-tests:
9
10 2016-02-17  Filip Pizlo  <fpizlo@apple.com>
11
12         Remove LLVM dependencies from WebKit
13         https://bugs.webkit.org/show_bug.cgi?id=154323
14
15         Reviewed by Antti Koivisto and Benjamin Poulain.
16
17         * Scripts/copy-webkitlibraries-to-product-directory:
18         (isContentOfFileEqualToString):
19         (fileContains): Deleted.
20         (buildLLVM): Deleted.
21         (symlinkLLVMLibrariesIfNeeded): Deleted.
22
23 2016-02-16  Sam Weinig  <sam@webkit.org>
24
25         Add an ensure function on HashMap that takes a key and a function to make the lazy value initialization idiom easier
26         https://bugs.webkit.org/show_bug.cgi?id=134857
27
28         Reviewed by Geoffrey Garen.
29
30         * TestWebKitAPI/Tests/WTF/HashMap.cpp:
31         Add tests for HashMap::ensure.
32
33 2016-02-17  Nan Wang  <n_wang@apple.com>
34
35         AX: Implement sentence related text marker functions using TextIterator
36         https://bugs.webkit.org/show_bug.cgi?id=154312
37
38         Reviewed by Chris Fleizach.
39
40         * DumpRenderTree/AccessibilityUIElement.cpp:
41         (nextParagraphEndTextMarkerForTextMarkerCallback):
42         (sentenceTextMarkerRangeForTextMarkerCallback):
43         (previousSentenceStartTextMarkerForTextMarkerCallback):
44         (nextSentenceEndTextMarkerForTextMarkerCallback):
45         (setSelectedVisibleTextRangeCallback):
46         (AccessibilityUIElement::nextParagraphEndTextMarkerForTextMarker):
47         (AccessibilityUIElement::sentenceTextMarkerRangeForTextMarker):
48         (AccessibilityUIElement::previousSentenceStartTextMarkerForTextMarker):
49         (AccessibilityUIElement::nextSentenceEndTextMarkerForTextMarker):
50         (AccessibilityUIElement::getJSClass):
51         * DumpRenderTree/AccessibilityUIElement.h:
52         * DumpRenderTree/ios/AccessibilityUIElementIOS.mm:
53         (AccessibilityUIElement::nextParagraphEndTextMarkerForTextMarker):
54         (AccessibilityUIElement::sentenceTextMarkerRangeForTextMarker):
55         (AccessibilityUIElement::previousSentenceStartTextMarkerForTextMarker):
56         (AccessibilityUIElement::nextSentenceEndTextMarkerForTextMarker):
57         * DumpRenderTree/mac/AccessibilityUIElementMac.mm:
58         (AccessibilityUIElement::nextParagraphEndTextMarkerForTextMarker):
59         (AccessibilityUIElement::sentenceTextMarkerRangeForTextMarker):
60         (AccessibilityUIElement::previousSentenceStartTextMarkerForTextMarker):
61         (AccessibilityUIElement::nextSentenceEndTextMarkerForTextMarker):
62         (AccessibilityUIElement::supportedActions):
63         * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp:
64         (WTR::AccessibilityUIElement::paragraphTextMarkerRangeForTextMarker):
65         (WTR::AccessibilityUIElement::nextParagraphEndTextMarkerForTextMarker):
66         (WTR::AccessibilityUIElement::previousParagraphStartTextMarkerForTextMarker):
67         (WTR::AccessibilityUIElement::sentenceTextMarkerRangeForTextMarker):
68         (WTR::AccessibilityUIElement::nextSentenceEndTextMarkerForTextMarker):
69         (WTR::AccessibilityUIElement::previousSentenceStartTextMarkerForTextMarker):
70         * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h:
71         * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl:
72         * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm:
73         (WTR::AccessibilityUIElement::previousParagraphStartTextMarkerForTextMarker):
74         (WTR::AccessibilityUIElement::sentenceTextMarkerRangeForTextMarker):
75         (WTR::AccessibilityUIElement::nextSentenceEndTextMarkerForTextMarker):
76         (WTR::AccessibilityUIElement::previousSentenceStartTextMarkerForTextMarker):
77         (WTR::AccessibilityUIElement::mathPostscriptsDescription):
78         * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm:
79         (WTR::AccessibilityUIElement::nextParagraphEndTextMarkerForTextMarker):
80         (WTR::AccessibilityUIElement::sentenceTextMarkerRangeForTextMarker):
81         (WTR::AccessibilityUIElement::previousSentenceStartTextMarkerForTextMarker):
82         (WTR::AccessibilityUIElement::nextSentenceEndTextMarkerForTextMarker):
83         (WTR::_convertMathMultiscriptPairsToString):
84
85 2016-02-15  Brent Fulgham  <bfulgham@apple.com>
86
87         [Mac] Gather some rudimentary statistics during resource load 
88         https://bugs.webkit.org/show_bug.cgi?id=153575
89         <rdar://problem/24075254>
90
91         Reviewed by Brady Eidson.
92
93         * MiniBrowser/mac/SettingsController.h:
94         * MiniBrowser/mac/SettingsController.m:
95         (-[SettingsController _populateMenu]): Add menu item for new debug flag.
96         (-[SettingsController toggleResourceLoadStatisticsEnabled:]): Added.
97         (-[SettingsController resourceLoadStatisticsEnabled]): Added.
98         * MiniBrowser/mac/WK1BrowserWindowController.m:
99         (-[WK1BrowserWindowController didChangeSettings]): React to changes in
100         users's desire to track resource load statistics.
101
102 2016-02-15  Csaba Osztrogonác  <ossy@webkit.org>
103
104         [EFL] Update Tools/efl/install-dependencies
105         https://bugs.webkit.org/show_bug.cgi?id=154239
106
107         Reviewed by Michael Catanzaro.
108
109         * efl/install-dependencies:
110
111 2016-02-15  Alex Christensen  <achristensen@webkit.org>
112
113         Fix internal Windows build of projects built after WebKit
114         https://bugs.webkit.org/show_bug.cgi?id=154249
115         rdar://problem/24644805
116
117         Reviewed by Chris Dumez.
118
119         * DumpRenderTree/PlatformWin.cmake:
120         * MiniBrowser/win/CMakeLists.txt:
121         Don't include DerivedSources/WebKit/Interfaces to make MiniBrowser and DumpRenderTree
122         more like projects built internally after WebKit.  They should only need to use what
123         is in ForwardingHeaders/WebKit.
124
125 2016-02-12  Nan Wang  <n_wang@apple.com>
126
127         AX: Implement paragraph related text marker functions using TextIterator
128         https://bugs.webkit.org/show_bug.cgi?id=154098
129         <rdar://problem/24269675>
130
131         Reviewed by Chris Fleizach.
132
133         * DumpRenderTree/AccessibilityUIElement.cpp:
134         (nextWordEndTextMarkerForTextMarkerCallback):
135         (paragraphTextMarkerRangeForTextMarkerCallback):
136         (previousParagraphStartTextMarkerForTextMarkerCallback):
137         (nextParagraphEndTextMarkerForTextMarkerCallback):
138         (setSelectedVisibleTextRangeCallback):
139         (AccessibilityUIElement::nextWordEndTextMarkerForTextMarker):
140         (AccessibilityUIElement::paragraphTextMarkerRangeForTextMarker):
141         (AccessibilityUIElement::previousParagraphStartTextMarkerForTextMarker):
142         (AccessibilityUIElement::nextParagraphEndTextMarkerForTextMarker):
143         (AccessibilityUIElement::getJSClass):
144         * DumpRenderTree/AccessibilityUIElement.h:
145         * DumpRenderTree/ios/AccessibilityUIElementIOS.mm:
146         (AccessibilityUIElement::nextWordEndTextMarkerForTextMarker):
147         (AccessibilityUIElement::paragraphTextMarkerRangeForTextMarker):
148         (AccessibilityUIElement::previousParagraphStartTextMarkerForTextMarker):
149         (AccessibilityUIElement::nextParagraphEndTextMarkerForTextMarker):
150         * DumpRenderTree/mac/AccessibilityUIElementMac.mm:
151         (AccessibilityUIElement::nextWordEndTextMarkerForTextMarker):
152         (AccessibilityUIElement::paragraphTextMarkerRangeForTextMarker):
153         (AccessibilityUIElement::previousParagraphStartTextMarkerForTextMarker):
154         (AccessibilityUIElement::nextParagraphEndTextMarkerForTextMarker):
155         (AccessibilityUIElement::supportedActions):
156         * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp:
157         (WTR::AccessibilityUIElement::rightWordTextMarkerRangeForTextMarker):
158         (WTR::AccessibilityUIElement::previousWordStartTextMarkerForTextMarker):
159         (WTR::AccessibilityUIElement::nextWordEndTextMarkerForTextMarker):
160         (WTR::AccessibilityUIElement::paragraphTextMarkerRangeForTextMarker):
161         (WTR::AccessibilityUIElement::nextParagraphEndTextMarkerForTextMarker):
162         (WTR::AccessibilityUIElement::previousParagraphStartTextMarkerForTextMarker):
163         * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h:
164         * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl:
165         * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm:
166         (WTR::AccessibilityUIElement::nextWordEndTextMarkerForTextMarker):
167         (WTR::AccessibilityUIElement::paragraphTextMarkerRangeForTextMarker):
168         (WTR::AccessibilityUIElement::nextParagraphEndTextMarkerForTextMarker):
169         (WTR::AccessibilityUIElement::previousParagraphStartTextMarkerForTextMarker):
170         (WTR::AccessibilityUIElement::mathPostscriptsDescription):
171         * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm:
172         (WTR::AccessibilityUIElement::nextWordEndTextMarkerForTextMarker):
173         (WTR::AccessibilityUIElement::paragraphTextMarkerRangeForTextMarker):
174         (WTR::AccessibilityUIElement::previousParagraphStartTextMarkerForTextMarker):
175         (WTR::AccessibilityUIElement::nextParagraphEndTextMarkerForTextMarker):
176         (WTR::_convertMathMultiscriptPairsToString):
177
178 2016-02-12  Jason Marcell  <jmarcell@apple.com>
179
180         Open source bot watcher's dashboard fails assertion in BuildbotQueue.prototype.compareIterationsByRevisions
181         https://bugs.webkit.org/show_bug.cgi?id=154180
182
183         Reviewed by Alexey Proskuryakov.
184
185         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Dashboard.js: Remove reference to Internal
186         repository.
187
188 2016-02-12  Jer Noble  <jer.noble@apple.com>
189
190         [Mac] Adopt MediaResourceLoader (instead of CachedResourceLoader) in WebCoreNSURLSession.
191         https://bugs.webkit.org/show_bug.cgi?id=154136
192
193         Reviewed by Alex Christensen.
194
195         Use a MediaResourceLoader instead of a CachedResourceLoader for WebCoreNSURLSession.
196
197         Drive-by fix: generate USE and ENABLE macros for TestWebKitAPI by adding FEATURE_DEFINES
198         to GCC_PREPROCESSOR_DEFINES.
199
200         * TestWebKitAPI/Configurations/Base.xcconfig:
201         * TestWebKitAPI/Tests/WebCore/WebCoreNSURLSession.mm:
202         (TestWebKitAPI::WebCoreNSURLSessionTest::SetUp):
203         (TestWebKitAPI::WebCoreNSURLSessionTest::TearDown):
204         (TestWebKitAPI::TEST_F):
205
206 2016-02-11  Dana Burkart  <dburkart@apple.com>
207
208         Large logs can bring down the webkit master
209         https://bugs.webkit.org/show_bug.cgi?id=122112
210
211         Reviewed by Lucas Forschler.
212
213         Implement the suggested fix of throwing away stdout / stderr.
214
215         * BuildSlaveSupport/build.webkit.org-config/master.cfg:
216         (RunWebKit1LeakTests):
217
218 2016-02-10  Jason Marcell  <jmarcell@apple.com>
219
220         Remove calls to parseInt in order to work with non-integer revisions
221         https://bugs.webkit.org/show_bug.cgi?id=153820
222
223         Reviewed by Daniel Bates.
224
225         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotIteration.js:
226         (BuildbotIteration.prototype.sourceStampChanges): Remove calls to parseInt in order to work with non-integer
227         revisions.
228         (BuildbotIteration.prototype._parseData): Ditto.
229         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotQueue.js:
230         (BuildbotQueue.prototype.update): Ditto.
231         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/MockBuildbotQueueView.js:
232         (MockBuildbotQueueView.prototype._latestProductiveIteration): Change integers to strings in test code.
233         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/MockTrac.js:
234         (MockTrac.prototype.get oldestRecordedRevisionNumber): Ditto.
235         (MockTrac.prototype.get latestRecordedRevisionNumber): Ditto.
236         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/tests.js: Ditto.
237
238 2016-02-10  Jason Marcell  <jmarcell@apple.com>
239
240         Teach dashboard code to compare non-integer revisions
241         https://bugs.webkit.org/show_bug.cgi?id=152345
242
243         Reviewed by Daniel Bates.
244
245         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotQueue.js:
246         (BuildbotQueue.prototype.compareIterationsByRevisions): Compare non-integer revisions.
247         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotQueueView.js:
248         (BuildbotQueueView.prototype._appendPendingRevisionCount): Use Trac.indexOfRevision in order to compare non-integer
249         revisions. Also uses new Trac.commitsOnBranchLaterThanRevision method.
250         (BuildbotQueueView.prototype._popoverLinesForCommitRange): Ditto.
251         (BuildbotQueueView.prototype._presentPopoverForPendingCommits): Use Trac.indexOfRevision in order to compare non-integer
252         revisions. Also uses new Trac.nextRevision method to calculate a revision range.
253         (BuildbotQueueView.prototype._revisionContentWithPopoverForIteration): Ditto.
254         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Trac.js:
255         (Trac.prototype._commitsOnBranch): Renamed this to indicate that it should be a private method used by the latter two new
256         methods.
257         (Trac.prototype.commitsOnBranchLaterThanRevision): Finds revisions on a branch later than the specified revision.
258         (Trac.prototype.commitsOnBranchInRevisionRange): Finds revisions on a branch within a specified range.
259         (Trac.prototype.nextRevision): Finds the next revision after a given revision on a specific branch.
260         (Trac.prototype.indexOfRevision): Finds the index of a given revision within the recordedCommits array.
261         (Trac.prototype.commitsOnBranch): Deleted. Renamed to _commitsOnBranch.
262         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/tests.js: Added unit tests.
263
264 2016-02-09  Nan Wang  <n_wang@apple.com>
265
266         AX: Implement word related text marker functions using TextIterator
267         https://bugs.webkit.org/show_bug.cgi?id=153939
268         <rdar://problem/24269605>
269
270         Reviewed by Chris Fleizach.
271
272         * DumpRenderTree/AccessibilityUIElement.cpp:
273         (endTextMarkerCallback):
274         (leftWordTextMarkerRangeForTextMarkerCallback):
275         (rightWordTextMarkerRangeForTextMarkerCallback):
276         (previousWordStartTextMarkerForTextMarkerCallback):
277         (nextWordEndTextMarkerForTextMarkerCallback):
278         (setSelectedVisibleTextRangeCallback):
279         (AccessibilityUIElement::setSelectedVisibleTextRange):
280         (AccessibilityUIElement::leftWordTextMarkerRangeForTextMarker):
281         (AccessibilityUIElement::rightWordTextMarkerRangeForTextMarker):
282         (AccessibilityUIElement::previousWordStartTextMarkerForTextMarker):
283         (AccessibilityUIElement::nextWordEndTextMarkerForTextMarker):
284         (AccessibilityUIElement::getJSClass):
285         * DumpRenderTree/AccessibilityUIElement.h:
286         * DumpRenderTree/ios/AccessibilityUIElementIOS.mm:
287         (AccessibilityUIElement::setSelectedVisibleTextRange):
288         (AccessibilityUIElement::leftWordTextMarkerRangeForTextMarker):
289         (AccessibilityUIElement::rightWordTextMarkerRangeForTextMarker):
290         (AccessibilityUIElement::previousWordStartTextMarkerForTextMarker):
291         (AccessibilityUIElement::nextWordEndTextMarkerForTextMarker):
292         * DumpRenderTree/mac/AccessibilityUIElementMac.mm:
293         (AccessibilityUIElement::setSelectedVisibleTextRange):
294         (AccessibilityUIElement::leftWordTextMarkerRangeForTextMarker):
295         (AccessibilityUIElement::rightWordTextMarkerRangeForTextMarker):
296         (AccessibilityUIElement::previousWordStartTextMarkerForTextMarker):
297         (AccessibilityUIElement::nextWordEndTextMarkerForTextMarker):
298         (AccessibilityUIElement::supportedActions):
299         * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp:
300         (WTR::AccessibilityUIElement::setBoolAttributeValue):
301         (WTR::AccessibilityUIElement::leftWordTextMarkerRangeForTextMarker):
302         (WTR::AccessibilityUIElement::rightWordTextMarkerRangeForTextMarker):
303         (WTR::AccessibilityUIElement::previousWordStartTextMarkerForTextMarker):
304         (WTR::AccessibilityUIElement::nextWordEndTextMarkerForTextMarker):
305         * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h:
306         * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl:
307         * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm:
308         (WTR::AccessibilityUIElement::endTextMarker):
309         (WTR::AccessibilityUIElement::leftWordTextMarkerRangeForTextMarker):
310         (WTR::AccessibilityUIElement::rightWordTextMarkerRangeForTextMarker):
311         (WTR::AccessibilityUIElement::previousWordStartTextMarkerForTextMarker):
312         (WTR::AccessibilityUIElement::nextWordEndTextMarkerForTextMarker):
313         (WTR::AccessibilityUIElement::mathPostscriptsDescription):
314         * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm:
315         (WTR::AccessibilityUIElement::endTextMarker):
316         (WTR::AccessibilityUIElement::leftWordTextMarkerRangeForTextMarker):
317         (WTR::AccessibilityUIElement::rightWordTextMarkerRangeForTextMarker):
318         (WTR::AccessibilityUIElement::previousWordStartTextMarkerForTextMarker):
319         (WTR::AccessibilityUIElement::nextWordEndTextMarkerForTextMarker):
320         (WTR::_convertMathMultiscriptPairsToString):
321
322 2016-02-09  Csaba Osztrogonác  <ossy@webkit.org>
323
324         [EFL] Remove eail related cruft after r195725
325         https://bugs.webkit.org/show_bug.cgi?id=154030
326
327         Reviewed by Alex Christensen.
328
329         * efl/jhbuildrc:
330
331 2016-02-09  Csaba Osztrogonác  <ossy@webkit.org>
332
333         [EFL] Remove LLVM related cruft after r196077
334         https://bugs.webkit.org/show_bug.cgi?id=154031
335
336         Reviewed by Alex Christensen.
337
338         * efl/jhbuild.modules:
339         * efl/patches/llvm-elf-add-stackmaps-arm64.patch: Removed.
340         * efl/patches/llvm-elf-allow-fde-references-outside-the-2gb-range-arm64.patch: Removed.
341         * efl/patches/llvm-version-arm64.patch: Removed.
342
343 2016-02-05  Aakash Jain  <aakash_jain@apple.com>
344
345         tests fail if display sleeps while run-webkit-tests is running
346         https://bugs.webkit.org/show_bug.cgi?id=153919
347
348         Reviewed by Alexey Proskuryakov.
349
350         * DumpRenderTree/mac/LayoutTestHelper.m:
351         (addDisplaySleepAssertion): Add the assertion so that the display doesn't turn off.
352         (releaseDisplaySleepAssertion): Release the DisplaySleep Assertion.
353         (simpleSignalHandler): Release the DisplaySleepAssertion in case of any iterrupt.
354
355 2016-02-05  Alex Christensen  <achristensen@webkit.org>
356
357         Fix iOS API tests after r196082
358         https://bugs.webkit.org/show_bug.cgi?id=153900
359
360         Reviewed by Jer Noble.
361
362         * TestWebKitAPI/Tests/WebCore/WebCoreNSURLSession.mm:
363         (TestWebKitAPI::WebCoreNSURLSessionTest::SetUp):
364         [WebView initialize] doesn't call JSC::initializeThreading on iOS.
365
366 2016-02-04  Jason Marcell  <jmarcell@apple.com>
367
368         The status message for passing combined builder queues should say "all builds succeeded" when expanded.
369         https://bugs.webkit.org/show_bug.cgi?id=153882
370
371         Reviewed by Alexey Proskuryakov.
372
373         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotCombinedQueueView.js:
374         (BuildbotCombinedQueueView.prototype.update): Set status to "all builds succeeded" for combined builder queues
375         when expanded.
376
377 2016-02-03  Filip Pizlo  <fpizlo@apple.com>
378
379         run-jsc-stress-tests should be better at telling you details about test failures
380         https://bugs.webkit.org/show_bug.cgi?id=153845
381
382         Reviewed by Geoffrey Garen.
383
384         Here's an example of the contents of results/resultsByFamily, one of the new files that this
385         generates, for some local testing I'm doing.  Notice how it groups families of tests together.
386
387         You won't see this unless you cat results/resultsByFamily.
388
389         regress.yaml/Regress/radar-24289839.js:
390             regress.yaml/Regress/radar-24289839.js.default: PASS
391             regress.yaml/Regress/radar-24289839.js.ftl: PASS
392             regress.yaml/Regress/radar-24289839.js.ftl-no-cjit: FAIL
393             regress.yaml/Regress/radar-24289839.js.ftl-eager-no-cjit: FAIL
394         
395         regress.yaml/Regress/radar-24290639.js:
396             regress.yaml/Regress/radar-24290639.js.default: PASS
397             regress.yaml/Regress/radar-24290639.js.ftl: PASS
398             regress.yaml/Regress/radar-24290639.js.ftl-no-cjit: PASS
399             regress.yaml/Regress/radar-24290639.js.ftl-eager-no-cjit: FAIL
400         
401         regress.yaml/Regress/radar-24290670.js: FAILED
402         
403         * Scripts/run-jsc-stress-tests:
404
405 2016-02-03  Carlos Garcia Campos  <cgarcia@igalia.com>
406
407         [WTR] Crash in EventSendingController::contextClick() when context menu event is not handled
408         https://bugs.webkit.org/show_bug.cgi?id=153835
409
410         Reviewed by Martin Robinson.
411
412         WKBundlePageCopyContextMenuAtPointInWindow() returns nullptr when
413         the context menu event is not handled, but we are using the
414         returned value without null checking it.
415
416         * WebKitTestRunner/InjectedBundle/EventSendingController.cpp:
417         (WTR::EventSendingController::contextClick):
418
419 2016-02-03  Jason Marcell  <jmarcell@apple.com>
420
421         Format revisions for display according to repository type
422         https://bugs.webkit.org/show_bug.cgi?id=153818
423
424         Reviewed by Alexey Proskuryakov.
425
426         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotQueueView.js:
427         (BuildbotQueueView.prototype._popoverLinesForCommitRange): Use new _formatRevisionForDisplay to display revisions according
428         to repository type.
429         (BuildbotQueueView.prototype._revisionContentWithPopoverForIteration): Ditto.
430         (BuildbotQueueView.prototype._formatRevisionForDisplay): Formats revisions for display according to repository type.
431         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/tests.js: Added unit tests to test new
432         _formatRevisionForDisplay function.
433
434 2016-02-03  Aakash Jain  <aakash_jain@apple.com>
435
436         Logs/CoreSimulator filling up OS disk on WebKit testers
437         https://bugs.webkit.org/show_bug.cgi?id=153853
438         <rdar://problem/24496003>
439
440         Reviewed by Alexey Proskuryakov.
441
442         * Scripts/webkitpy/port/ios.py:
443         (IOSSimulatorPort.clean_up_test_run): Delete Logs during cleanup.
444
445 2016-02-03  Brian Burg  <bburg@apple.com>
446
447         git-add-reviewer should work when run from a subdirectory within the repository
448         https://bugs.webkit.org/show_bug.cgi?id=153842
449
450         Reviewed by David Kilzer.
451
452         There are two problems that needed to be fixed:
453
454          - We can't assume .git is in $PWD/.git
455          - We can't specify absolute paths to `git commit`
456
457         Fix these problems using the helpers in VCSUtils that were added to
458         fix this same issue for prepare-changeCogs.
459
460         * Scripts/VCSUtils.pm: Export gitDirectory()
461         * Scripts/git-add-reviewer:
462         (nonInteractive): Cache gitDirectory() result.
463         (addReviewer):
464         (commit):
465         (changeLogsForCommit): Make paths relative.
466
467 2016-02-03  Jer Noble  <jer.noble@apple.com>
468
469         Yet another Yosemite build fix.
470
471         * TestWebKitAPI/Tests/WebCore/WebCoreNSURLSession.mm:
472
473 2016-02-03  Jer Noble  <jer.noble@apple.com>
474
475         iOS build fix after Yosemite build fix broke iOS build.
476
477         * TestWebKitAPI/Tests/WebCore/WebCoreNSURLSession.mm:
478
479 2016-02-03  Jer Noble  <jer.noble@apple.com>
480
481         Yosemite build fix; hide the entire WebCoreNSURLSessionDataTask class from Yosemite and prior.
482
483         * TestWebKitAPI/Tests/WebCore/WebCoreNSURLSession.mm:
484
485 2016-02-03  Joonghun Park  <jh718.park@samsung.com>
486
487         [Tools] Remove $additionalCMakeArgs variable because without this variable --cmakeargs options works well
488         https://bugs.webkit.org/show_bug.cgi?id=153827
489
490         Reviewed by Michael Catanzaro.
491
492         When an array is passed to subroutines as argument in perl,
493         a list containing its element is returned from the array.
494         Currently @$ arguments are being passed, then it is going to be one list
495         including all the elements not only from @ but also from $.
496         As a result, --cmakeargs option's value is included in @cmakeArgs
497         at generateBuildSystemFromCMakeProject subroutine,
498         so $additionalCMakeArgs doesn't needed anymore.
499
500         * Scripts/webkitdirs.pm:
501         (generateBuildSystemFromCMakeProject):
502
503 2016-02-03  Jer Noble  <jer.noble@apple.com>
504
505         [Mac] Wrap a resource and resource loader in a NSURLSession-like object for use by lower level frameworks
506         https://bugs.webkit.org/show_bug.cgi?id=153669
507
508         Reviewed by Alex Christensen.
509
510         Add an API test for WebCoreNSURLSession, testing that it behaves like a regulare NSURLSession, including
511         calling appropriate NSURLSessionDelegate callbacks.
512
513         Drive-by fix: Add a FeatureDefines.xcconfig to TestWebKitAPI.  Without this, the ENABLE macros in WebCore
514         header files will not match the one used when compiling WebCore, leading to strange crashes and weird
515         inconsistencies when calling, e.g., inline methods.
516
517         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig: Added.
518         * TestWebKitAPI/Configurations/TestWebKitAPI.xcconfig:
519         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
520         * TestWebKitAPI/Tests/WebCore/WebCoreNSURLSession.mm: Added.
521         (-[TestNSURLSessionLoaderDelegate webView:didCommitLoadForFrame:]):
522         (-[TestNSURLSessionDataDelegate URLSession:task:didCompleteWithError:]):
523         (-[TestNSURLSessionDataDelegate URLSession:dataTask:didReceiveResponse:completionHandler:]):
524         (-[TestNSURLSessionDataDelegate URLSession:dataTask:didReceiveData:]):
525         (TestWebKitAPI::WebCoreNSURLSessionTest::SetUp):
526         (TestWebKitAPI::WebCoreNSURLSessionTest::TearDown):
527         (TestWebKitAPI::TEST_F):
528
529 2016-02-03  Konstantin Tokarev  <annulen@yandex.ru>
530
531         [webkitdirs] Clarify logic behind is{PortName} functions.
532         https://bugs.webkit.org/show_bug.cgi?id=153554
533
534         Reviewed by Michael Catanzaro.
535
536         * Scripts/webkitdirs.pm:
537         (prohibitUnknownPort): This function makes determinePortName()
538         failure fatal.
539         (determinePortName): Added new function which decides which port are
540         we building based on command line switches and platform defaults.
541         (portName): Added getter for determined $portName.
542         (isEfl): Modified to use portName().
543         (isGtk): Ditto.
544         (isWinCairo): Ditto.
545         (isAppleMacWebKit): Ditto.
546         (isAppleWinWebKit): Ditto.
547         (isIOSWebKit): Ditto.
548         (cmakeBasedPortName): Return portName() with capitalized first letter.
549         (determineIsEfl): Deleted.
550         (determineIsGtk): Deleted.
551         (determineIsWinCairo): Deleted.
552
553         * Scripts/build-jsc: Call prohibitUnknownPort().
554         * Scripts/run-minibrowser: Ditto.
555         * Scripts/webkitperl/FeatureList.pm: Ditto.
556         * Scripts/update-webkit: Call determinePortName() instead of
557         determineIsWinCairo().
558
559 2016-02-02  Dan Bernstein  <mitz@apple.com>
560
561         Better fix for Layout Test fast/parser/external-entities-in-xslt.xml is flaky on El Capitan (but fails most of the time)
562         https://bugs.webkit.org/show_bug.cgi?id=153683
563
564         Reviewed by Darin Adler.
565
566         * Scripts/webkitpy/port/driver.py:
567         (Driver._setup_environ_for_driver): Reverted change from r196013. DUMPRENDERTREE_TEMP is not
568           used by any code in the Web Content process. If that ever changed, we should send it over
569           as a bundle parameter.
570
571         * Scripts/webkitpy/port/ios.py:
572         (IOSSimulatorPort.setup_environ_for_server): Reverted change from r196013.
573
574         * Scripts/webkitpy/port/mac.py:
575         (MacPort.setup_environ_for_server): Ditto.
576
577         * WebKitTestRunner/InjectedBundle/ios/InjectedBundleIOS.mm:
578         (WTR::InjectedBundle::platformInitialize): Set XML_CATALOG_FILES in the Web Process
579           environment. This is early enough that libxml2 has not been initialized yet.
580
581         * WebKitTestRunner/InjectedBundle/mac/InjectedBundleMac.mm:
582         (WTR::InjectedBundle::platformInitialize): Ditto.
583
584 2016-02-02  Dan Bernstein  <mitz@apple.com>
585
586         Layout Test fast/parser/external-entities-in-xslt.xml is flaky on El Capitan (but fails most of the time)
587         https://bugs.webkit.org/show_bug.cgi?id=153683
588
589         Reviewed by Alexey Proskuryakov.
590
591         Ensure that XML_CATALOG_FILES is set in the Web Content service’s environment as well.
592
593         * Scripts/webkitpy/port/driver.py:
594         (Driver._setup_environ_for_driver): Also set __XPC_DUMPRENDERTREE_TEMP.
595         * Scripts/webkitpy/port/ios.py:
596         (IOSSimulatorPort.setup_environ_for_server): Set __XPC_XML_CATALOG_FILES.
597         * Scripts/webkitpy/port/mac.py:
598         (MacPort.setup_environ_for_server): Ditto.
599
600 2016-01-29 Grzegorz Czajkowski  <g.czajkowski@samsung.com>
601
602         [EFL] Virtual Keyboard overlaps MiniBrowser's WebView
603         https://bugs.webkit.org/show_bug.cgi?id=153009
604
605         Reviewed by Gyuyoung Kim.
606
607         On mobile, virtual keyboard represented by ecore_imf module appears on
608         the top of application layer usually covering bottom part of the screen.
609         If the web page contains the editable content on the bottom of the page
610         it will be overlapped by keyboard which prevents user from seeing the
611         typed text.
612
613         Pack MiniBrowser layout into conformant widget to allow EFL to guess
614         the space that will be required by the keyboard, finally resizing it
615         to the desired size. As a result, webview gets resized and scrolled
616         into focused elements which makes the editable elements visible while
617         typing.
618
619         More details about elm_conformant widger can be found at:
620         https://docs.enlightenment.org/elementary/1.15.0/group__Conformant.html
621         https://docs.enlightenment.org/elementary/1.15.0/conformant_example.html
622
623         * MiniBrowser/efl/main.c:
624         (window_create): pack a box into conformant widget.
625
626 2016-02-02  Alejandro G. Castro  <alex@igalia.com>
627
628         [GTK][EFL] Upgrade OpenWebRTC dependency
629         https://bugs.webkit.org/show_bug.cgi?id=153489
630
631         Reviewed by Philippe Normand.
632
633         * Scripts/run-gtk-tests:
634         (TestRunner): Avoid running the mediastream API test.
635         * Scripts/webkitperl/FeatureList.pm: Stop compiling mediastream by
636         default for gtk and efl.
637         * gtk/jhbuild-webrtc.modules: Added modules files with
638         dependencies required to compile and test the mediastream.
639
640 2016-02-01  Jason Marcell  <jmarcell@apple.com>
641
642         Add code to parse the git branches out of the Trac RSS feed
643         https://bugs.webkit.org/show_bug.cgi?id=153624
644
645         Reviewed by Daniel Bates.
646
647         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Trac.js:
648         (Trac.prototype.commitsOnBranch): Update filter to check for Git branches.
649         (Trac.prototype._convertCommitInfoElementToObject): Parse Git branches from the Trac RSS feed. Also changed "branchName" to
650         "branches" and updated the code to work with an array instead of a string.
651         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/MockTrac.js:
652         (MockTrac): Refactored example commits out into a constant, MockTrac.EXAMPLE_TRAC_COMMITS.
653         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/test-fixture-git-trac-rss.xml: Added. Test
654         fixture that contains XML with a Git branch.
655         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/tests.js: Added unit test to test parsing Git
656         branches from Trac RSS feed. Also updated code to work with the new MockTrac.EXAMPLE_TRAC_COMMITS constant.
657
658 2016-02-01  Brady Eidson  <beidson@apple.com>
659
660         Add command line flag to DRT to output the number of tests completed in server mode.
661         https://bugs.webkit.org/show_bug.cgi?id=153750
662
663         Reviewed by Darin Adler.
664
665         * DumpRenderTree/mac/DumpRenderTree.mm:
666         (initializeGlobalsFromCommandLineOptions):
667         (runTestingServerLoop):
668
669 2016-02-01  Jason Marcell  <jmarcell@apple.com>
670
671         Improvements to botwatcher's dashboard unit tests.
672         https://bugs.webkit.org/show_bug.cgi?id=153621
673
674         Reviewed by Darin Adler.
675
676         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/PopoverTracker.js:
677         (PopoverTracker): Retain a reference to the PopoverTracker so that we can make assertions about it in the unit tests.
678         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/MockTrac.js:
679         (MockTrac): Changing revision 33019 to be on a different branch so that _appendPendingRevisionCount and
680         _popoverLinesForCommitRange have to traverse commits from different branches.
681         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/tests.js: Changing equal to strictEqual
682         in unit test for _appendPendingRevisionCount. Also added assertions for Popover in test for
683         _revisionContentWithPopoverForIteration.
684
685 2016-02-01  Jason Marcell  <jmarcell@apple.com>
686
687         Refactor to add event listeners and start periodic updates for all trac instances.
688         https://bugs.webkit.org/show_bug.cgi?id=153609
689
690         Reviewed by Darin Adler.
691
692         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotQueueView.js:
693         (BuildbotQueueView): Adding event listeners for all trac instances.
694         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Main.js: Starting periodic updates
695         for all trac instances.
696
697 2016-01-31  Darin Adler  <darin@apple.com>
698
699         Replace CaseFoldingHash with ASCIICaseInsensitiveHash
700         https://bugs.webkit.org/show_bug.cgi?id=153639
701
702         Reviewed by Filip Pizlo.
703
704         * Scripts/do-webcore-rename: Use script to do this rename.
705
706 2016-01-30  Commit Queue  <commit-queue@webkit.org>
707
708         Unreviewed, rolling out r195911.
709         https://bugs.webkit.org/show_bug.cgi?id=153723
710
711         Caused frequent assertion failures on bots (Requested by ap on
712         #webkit).
713
714         Reverted changeset:
715
716         "Replace CaseFoldingHash with ASCIICaseInsensitiveHash"
717         https://bugs.webkit.org/show_bug.cgi?id=153639
718         http://trac.webkit.org/changeset/195911
719
720 2016-01-30  Darin Adler  <darin@apple.com>
721
722         Replace CaseFoldingHash with ASCIICaseInsensitiveHash
723         https://bugs.webkit.org/show_bug.cgi?id=153639
724
725         Reviewed by Filip Pizlo.
726
727         * Scripts/do-webcore-rename: Use script to do this rename.
728
729 2016-01-30  Ryosuke Niwa  <rniwa@webkit.org>
730
731         TouchList should be retargeted
732         https://bugs.webkit.org/show_bug.cgi?id=149592
733
734         Reviewed by Antti Koivisto.
735
736         Added touchDownAtPoint and liftUpAtPoint to UIScriptController so that we can test touch events with
737         multiple touch targets on iOS. fast/shadow-dom/touch-event-ios.html uses this new testing feature.
738
739         * WebKitTestRunner/UIScriptContext/Bindings/UIScriptController.idl:
740         * WebKitTestRunner/UIScriptContext/UIScriptController.cpp:
741         (WTR::UIScriptController::touchDownAtPoint): Added.
742         (WTR::UIScriptController::liftUpAtPoint): Added.
743         * WebKitTestRunner/UIScriptContext/UIScriptController.h:
744         * WebKitTestRunner/ios/HIDEventGenerator.h:
745         * WebKitTestRunner/ios/HIDEventGenerator.mm:
746         (-[HIDEventGenerator touchDown:touchCount:completionBlock:]): Added. Sends touch down and waits.
747         (-[HIDEventGenerator liftUp:touchCount:completionBlock:]): Ditto for lift up.
748         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
749         (WTR::UIScriptController::touchDownAtPoint): Added.
750         (WTR::UIScriptController::liftUpAtPoint): Added.
751
752 2016-01-30  Yusuke Suzuki  <utatane.tea@gmail.com>
753
754         Enable SamplingProfiler on POSIX environment
755         https://bugs.webkit.org/show_bug.cgi?id=153584
756
757         Reviewed by Michael Saboff.
758
759         * Scripts/run-jsc-stress-tests:
760
761 2016-01-29  Nikos Andronikos  <nikos.andronikos-webkit@cisra.canon.com.au>
762
763         update-webkit-dependency fails to fetch updates through firewall on Windows
764         https://bugs.webkit.org/show_bug.cgi?id=153619
765
766         Reviewed by Myles C. Maxfield.
767
768         On Windows, when a firewall is present we need to read proxy settings
769         from environment variables.
770
771         This patch relies on the following environment variables being set:
772         HTTP_PROXY
773         HTTPS_PROXY
774
775         * Scripts/update-webkit-dependency:
776
777 2016-01-28  Dan Bernstein  <mitz@apple.com>
778
779         [Cocoa] Use the non-Development variants of XPC services for development
780         https://bugs.webkit.org/show_bug.cgi?id=152545
781
782         Reviewed by Darin Adler.
783
784         * Scripts/webkitdirs.pm:
785         (setUpGuardMallocIfNeeded): Ensure that libgmalloc is loaded into XPC services as well.
786
787         * Scripts/webkitpy/port/driver.py:
788         (Driver._setup_environ_for_driver): Ensure that the DYLD_LIBRARY_PATH and ASAN_OPTIONS are
789           set in the XPC services as well.
790
791         * Scripts/webkitpy/port/ios.py:
792         (IOSSimulatorPort.setup_environ_for_server): Ensure that malloc stack logging for leaks and
793           Guard Malloc are enabled in XPC services as well.
794
795         * Scripts/webkitpy/port/mac.py:
796         (MacPort.setup_environ_for_server): Ditto.
797
798 2016-01-28  Csaba Osztrogonác  <ossy@webkit.org>
799
800         Unreviewed buildfix after r195743.
801
802         * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:
803         (WTR::AccessibilityUIElement::isPressActionSupported):
804
805 2016-01-12  Jer Noble  <jer.noble@apple.com>
806
807         Custom protocol loading through AVFoundation does not support byte-range requests.
808         https://bugs.webkit.org/show_bug.cgi?id=152919
809         <rdar://problem/23664657>
810
811         Reviewed by Alex Christensen.
812
813         Add tests for new ParsedContntRange class.
814
815         * TestWebKitAPI/PlatformWin.cmake:
816         * TestWebKitAPI/TestWebKitAPI.vcxproj/TestWebKitAPI.vcxproj:
817         * TestWebKitAPI/TestWebKitAPI.vcxproj/TestWebKitAPI.vcxproj.filters:
818         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
819         * TestWebKitAPI/Tests/WebCore/ParsedContentRange.cpp: Added.
820         (TestWebKitAPI::TEST):
821
822 2016-01-28  Konstantin Tokarev  <annulen@yandex.ru>
823
824         Use isAnyWindows() instead of isCygwin() || isWindows() in Perl scripts.
825         https://bugs.webkit.org/show_bug.cgi?id=153594
826
827         Reviewed by Alex Christensen.
828
829         * Scripts/webkitdirs.pm:
830         (determineNumberOfCPUs):
831         (jscPath):
832         (checkFrameworks):
833         (setupCygwinEnv):
834         (wrapperPrefixIfNeeded):
835         (cmakeGeneratedBuildfile):
836         (generateBuildSystemFromCMakeProject):
837         * Scripts/webkitperl/features.pm:
838         (libraryContainsSymbol):
839
840 2016-01-28  Chris Dumez  <cdumez@apple.com>
841
842         Unreviewed, rolling out r195742.
843
844         Broke EWS
845
846         Reverted changeset:
847
848         "[webkitdirs] Clarify logic behind is{PortName} functions."
849         https://bugs.webkit.org/show_bug.cgi?id=153554
850         http://trac.webkit.org/changeset/195742
851
852 2016-01-28  Darin Adler  <darin@apple.com>
853
854         Remove equalIgnoringCase since all callers really wanted equalIgnoringASCIICase
855         https://bugs.webkit.org/show_bug.cgi?id=153411
856
857         Reviewed by Ryosuke Niwa.
858
859         * Scripts/do-webcore-rename: Removed rename of equalIgnoringCase since we
860         have removed the function instead.
861
862         * TestWebKitAPI/Tests/WTF/StringImpl.cpp:
863         (TestWebKitAPI::TEST): Updated test since nullptr is now ambiguous since we
864         added overloads for const char*.
865
866         * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:
867         (WTR::AccessibilityUIElement::isPressActionSupported): Use equalLettersIgnoringASCIICase.
868         (WTR::AccessibilityUIElement::hasPopup): Ditto.
869         * WebKitTestRunner/cocoa/CrashReporterInfo.mm:
870         (WTR::testPathFromURL): Ditto.
871
872 2016-01-28  Konstantin Tokarev  <annulen@yandex.ru>
873
874         [webkitdirs] Clarify logic behind is{PortName} functions.
875         https://bugs.webkit.org/show_bug.cgi?id=153554
876
877         Reviewed by Darin Adler.
878
879         * Scripts/webkitdirs.pm:
880         (determinePortName): Added new function which decides which port are
881         we building based on command line switches and platform defaults.
882         (portName): Added getter for determined $portName.
883         (isEfl): Modified to use portName().
884         (isGtk): Ditto.
885         (isWinCairo): Ditto.
886         (isAppleMacWebKit): Ditto.
887         (isAppleWinWebKit): Ditto.
888         (isIOSWebKit): Ditto.
889         (cmakeBasedPortName): Code replaced with portName() call.
890         (determineIsEfl): Deleted.
891         (determineIsGtk): Deleted.
892         (determineIsWinCairo): Deleted.
893
894 2016-01-28  Konstantin Tokarev  <annulen@yandex.ru>
895
896         [webkitdirs] Don't pass cmakeBasedPortName around.
897         https://bugs.webkit.org/show_bug.cgi?id=153589
898
899         Reviewed by Darin Adler.
900
901         It should be local function of webkitdirs.pm instead.
902
903         * Scripts/build-jsc: Don't pass cmakeBasedPortName to
904         buildCMakeProjectOrExit().
905         * Scripts/build-webkit: Don't pass cmakeBasedPortName to
906         buildCMakeProjectOrExit() and generateBuildSystemFromCMakeProject().
907         * Scripts/run-efl-tests: Don't pass cmakeBasedPortName to
908         generateBuildSystemFromCMakeProject().
909         * Scripts/webkitdirs.pm: Don't export cmakeBasedPortName.
910         (generateBuildSystemFromCMakeProject): Removed $port argument as we
911         can get it from cmakeBasedPortName().
912         (buildCMakeProjectOrExit): Ditto.
913
914 2016-01-28  Gwang Yoon Hwang  <yoon@igalia.com>
915
916         [GStreamer] Clean up includes and headers related with GStreamerGL
917         https://bugs.webkit.org/show_bug.cgi?id=153590
918
919         Reviewed by Philippe Normand.
920
921         * Scripts/webkitpy/style/checker.py: Skips
922         include_order check for MediaPlayerPrivateGStreamerBase.cpp
923         Removes VideoSinkGStreamer1.cpp which doesn't exist anymore.
924
925 2016-01-27  Krzysztof Czech  <k.czech@samsung.com>
926
927         [EFL] Remove unused accessibility related code
928         https://bugs.webkit.org/show_bug.cgi?id=153543
929
930         Reviewed by Darin Adler.
931
932         Removed reference to EAIL library.
933         It not going to be support anymore. There have been changes in
934         EFL/Elementary in terms of the accessibility and we should
935         follow those.
936
937         * efl/jhbuild-optional.modules:
938
939 2016-01-27  Daniel Bates  <dabates@apple.com>
940
941         Remove WebKitSystemInterface for iOS SDK < 9
942         https://bugs.webkit.org/show_bug.cgi?id=153570
943
944         Reviewed by Andy Estes.
945
946         * Scripts/copy-webkitlibraries-to-product-directory:
947
948 2016-01-27  Jason Marcell  <jmarcell@apple.com>
949
950         Fix bugs caused by incorrect usage of "branch" vs. "branchName".
951         https://bugs.webkit.org/show_bug.cgi?id=153330
952
953         Reviewed by Daniel Bates.
954
955         In an earlier patch we started using the name "branch" to indicate a branch object, whereas
956         "branchName" implies that the variable or property in question is simply a string. We fixed some
957         inconsistencies regarding this issue in 152982 but further bugs and inconsistencies were recently
958         spotted in BuildbotQueueView.js.
959
960         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotQueueView.js:
961         (BuildbotQueueView.prototype._popoverLinesForCommitRange): Change branchName to branch in method signature.
962         Changed branchName to branch.name in call to commitsOnBranch.
963         (BuildbotQueueView.prototype._presentPopoverForPendingCommits): Change branch.name to branch in call to
964         _popoverLinesForCommitRange.
965         (BuildbotQueueView.prototype._presentPopoverForRevisionRange): Changed context.branchName to context.branch.name.
966         (BuildbotQueueView.prototype._revisionContentWithPopoverForIteration): Changed branch.name to branch.
967         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/tests.js: Added tests to verify
968         fix.
969
970 2016-01-27  Ryosuke Niwa  <rniwa@webkit.org>
971
972         Add API to access closed shadowRoot in InjectedBundle
973         https://bugs.webkit.org/show_bug.cgi?id=153533
974
975         Reviewed by Antti Koivisto.
976
977         Added WebKit2 API test for WKBundleScriptWorldMakeAllShadowRootsOpen.
978
979         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
980         * TestWebKitAPI/Tests/WebKit2/InjectedBundleMakeAllShadowRootsOpen.cpp: Added.
981         (TestWebKitAPI::runJavaScriptAlert):
982         (TestWebKitAPI::TEST):
983         * TestWebKitAPI/Tests/WebKit2/InjectedBundleMakrAllShadowRootOpen_Bundle.cpp: Added.
984         (TestWebKitAPI::InjectedBundleMakrAllShadowRootOpenTest::InjectedBundleMakrAllShadowRootOpenTest):
985         (TestWebKitAPI::InjectedBundleMakrAllShadowRootOpenTest::initialize):
986
987 2016-01-27  Jason Marcell  <jmarcell@apple.com>
988
989         Refactor logic for parsing Trac revisions into its own function and add logic for parsing git hashes.
990         https://bugs.webkit.org/show_bug.cgi?id=153332
991
992         Reviewed by Alexey Proskuryakov.
993
994         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Trac.js:
995         (Trac.prototype._xmlTimelineURL): Uses new function.
996         (Trac.prototype._parseRevisionFromURL): Added. Pulled out logic for parsing revisions from a URL. Also added
997         logic for parsing git hashes.
998         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/tests.js: Added tests for
999         Trac._parseRevisionFromURL.
1000
1001 2016-01-27  Alexey Proskuryakov  <ap@apple.com>
1002
1003         Remove Mavericks from the flakiness dashboard
1004         https://bugs.webkit.org/show_bug.cgi?id=153521
1005
1006         Reviewed by Dan Bernstein.
1007
1008         * TestResultServer/static-dashboards/builders.jsonp:
1009         * TestResultServer/static-dashboards/flakiness_dashboard.js:
1010
1011 2016-01-27  Alexey Proskuryakov  <ap@apple.com>
1012
1013         Remove ENABLE_CURRENTSRC
1014         https://bugs.webkit.org/show_bug.cgi?id=153545
1015
1016         Reviewed by Simon Fraser.
1017
1018         * Scripts/webkitperl/FeatureList.pm:
1019
1020 2016-01-26  Jason Marcell  <jmarcell@apple.com>
1021
1022         Sort incoming commits via date instead of revision number.
1023         https://bugs.webkit.org/show_bug.cgi?id=153467
1024
1025         Reviewed by Alexey Proskuryakov.
1026
1027         Future Trac instances may use Git or other revision control systems where we cannnot rely on the revision number
1028         for sorting revisions. Instead we use the commit date to sort revisions chronologically.
1029
1030         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Trac.js:
1031         (Trac.prototype._loaded): Sort via date instead of revision number.
1032         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/MockTrac.js:
1033         (MockTrac): Fix up the mock data to look more like real-world data.
1034         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/test-fixture-trac-rss.xml: Added.
1035         Fake RSS feed that adds three more commits.
1036         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/tests.js: Added unit tests to test
1037         Trac._loaded().
1038
1039 2016-01-26  I-Ting Liu  <iting_liu@apple.com>
1040
1041         Add a test for WebKit::stringMatchesWildcardString.
1042         https://bugs.webkit.org/show_bug.cgi?id=153090
1043
1044         Reviewed by Darin Adler.
1045
1046         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1047         Add the file to the project.
1048
1049         * TestWebKitAPI/Tests/WebKit2/mac/StringUtilities.mm: Added.
1050         (TestWebKitAPI::TEST):
1051         Test that a string matches another string that may contain wildcard characters.
1052
1053 2016-01-26  Konstantin Tokarev  <annulen@yandex.ru>
1054
1055         [webkitdirs] Removed check for bison, gperf, and flex.
1056         https://bugs.webkit.org/show_bug.cgi?id=153496
1057
1058         Reviewed by Alex Christensen.
1059
1060         This prerequisites are checked in WebKitCommon.cmake and don't
1061         have to be in $PATH.
1062
1063         * Scripts/webkitdirs.pm:
1064         (checkRequiredSystemConfig):
1065
1066 2016-01-26  Konstantin Tokarev  <annulen@yandex.ru>
1067
1068         [webkitdirs] isCMakeBuild should be true by default
1069         https://bugs.webkit.org/show_bug.cgi?id=153497
1070
1071         Reviewed by Michael Catanzaro.
1072
1073         * Scripts/webkitdirs.pm:
1074         (isCMakeBuild):
1075
1076 2016-01-26  Daniel Bates  <dabates@apple.com>
1077
1078         Add WebKitSystemInterface for iOS 9.2
1079         https://bugs.webkit.org/show_bug.cgi?id=153355
1080
1081         Rubber-stamped by David Kilzer.
1082
1083         * Scripts/copy-webkitlibraries-to-product-directory:
1084
1085 2016-01-26  Daniel Bates  <dabates@apple.com>
1086
1087         WebKitTestRunner: Credential cache is not cleared between tests
1088         https://bugs.webkit.org/show_bug.cgi?id=153407
1089         <rdar://problem/24280834>
1090
1091         Reviewed by Alexey Proskuryakov.
1092
1093         * WebKitTestRunner/TestController.cpp:
1094         (WTR::TestController::resetStateToConsistentValues): Call WKContextClearCachedCredentials()
1095         to clear cached credentials.
1096
1097 2016-01-26  Carlos Alberto Lopez Perez  <clopez@igalia.com>
1098
1099         kill-old-processes: allow to specify on the environment of the bot a list of process that should be killed.
1100         https://bugs.webkit.org/show_bug.cgi?id=153483
1101
1102         Reviewed by Csaba Osztrogonác.
1103
1104         * BuildSlaveSupport/kill-old-processes:
1105         (main): Allow to specify extra tasks to kill via the environment variable WEBKITBOT_TASKSTOKILL
1106
1107 2016-01-25  Simon Fraser  <simon.fraser@apple.com>
1108
1109         Give the layout test results file a <title> showing the date and time the tests were run
1110         https://bugs.webkit.org/show_bug.cgi?id=153187
1111
1112         Reviewed by Darin Adler.
1113         
1114         Include a 'date' property in the JSON with the date and time the tests completed.
1115
1116         * Scripts/webkitpy/layout_tests/models/test_run_results.py:
1117         (summarize_results):
1118
1119 2016-01-25  Commit Queue  <commit-queue@webkit.org>
1120
1121         Unreviewed, rolling out r195543.
1122         https://bugs.webkit.org/show_bug.cgi?id=153451
1123
1124         regressed performance of test bots by ~6% (Requested by dydz
1125         on #webkit).
1126
1127         Reverted changeset:
1128
1129         "WebKitTestRunner: Credential cache is not cleared between
1130         tests"
1131         https://bugs.webkit.org/show_bug.cgi?id=153407
1132         http://trac.webkit.org/changeset/195543
1133
1134 2016-01-25  Aakash Jain  <aakash_jain@apple.com>
1135
1136         Failing to upload to flakiness dashboard should not be a hard error
1137         https://bugs.webkit.org/show_bug.cgi?id=153444
1138         <rdar://problem/22146294>
1139
1140         Reviewed by Alexey Proskuryakov.
1141
1142         * Scripts/webkitpy/layout_tests/controllers/manager.py:
1143         (Manager._upload_json_files): If JSON file is not generated, do not try to upload it.
1144
1145 2016-01-25  Daniel Bates  <dabates@apple.com>
1146
1147         WebKitTestRunner: Credential cache is not cleared between tests
1148         https://bugs.webkit.org/show_bug.cgi?id=153407
1149         <rdar://problem/24280834>
1150
1151         Reviewed by Brady Eidson.
1152
1153         * WebKitTestRunner/TestController.cpp:
1154         (WTR::TestController::resetStateToConsistentValues): Reset testing network session
1155         to clear cached credentials.
1156
1157 2016-01-24  Dan Bernstein  <mitz@apple.com>
1158
1159         Added project.xcworkspace and xcuserdata to this project’s svn:ignore.
1160
1161         * LayoutTestRelay/LayoutTestRelay.xcodeproj: Added property svn:ignore.
1162
1163 2016-01-22  Enrica Casucci  <enrica@apple.com>
1164
1165         Unreviewed build fix after http://trac.webkit.org/changeset/195474.
1166
1167         * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
1168         (WTR::TestController::platformCreateWebView):
1169
1170 2016-01-22  Tim Horton  <timothy_horton@apple.com>
1171
1172         Add a test for iOS arrow-key repeat
1173         https://bugs.webkit.org/show_bug.cgi?id=152857
1174         <rdar://problem/24017380>
1175
1176         Reviewed by Darin Adler.
1177
1178         * WebKitTestRunner/UIScriptContext/Bindings/UIScriptController.idl:
1179         * WebKitTestRunner/UIScriptContext/UIScriptController.cpp:
1180         (WTR::UIScriptController::keyUpUsingHardwareKeyboard):
1181         (WTR::UIScriptController::keyDownUsingHardwareKeyboard):
1182         * WebKitTestRunner/UIScriptContext/UIScriptController.h:
1183         * WebKitTestRunner/ios/HIDEventGenerator.h:
1184         * WebKitTestRunner/ios/HIDEventGenerator.mm:
1185         (-[HIDEventGenerator keyPress:completionBlock:]):
1186         (-[HIDEventGenerator keyDown:completionBlock:]):
1187         (-[HIDEventGenerator keyUp:completionBlock:]):
1188         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
1189         (WTR::UIScriptController::typeCharacterUsingHardwareKeyboard):
1190         (WTR::UIScriptController::keyDownUsingHardwareKeyboard):
1191         (WTR::UIScriptController::keyUpUsingHardwareKeyboard):
1192         Make it possible to independently send keyUp/keyDown, instead of just paired.
1193
1194 2016-01-22  Tim Horton  <timothy_horton@apple.com>
1195
1196         Reproducible "Unhanded web process message 'WebUserContentController:AddUserScripts'" and friends
1197         https://bugs.webkit.org/show_bug.cgi?id=153193
1198         <rdar://problem/24222034>
1199
1200         Reviewed by Darin Adler.
1201
1202         * TestWebKitAPI/Tests/WebKit2Cocoa/UserContentController.mm:
1203         (webViewForScriptMessageHandlerMultipleHandlerRemovalTest):
1204         (TEST):
1205         Add a test that exhibits the problems we're fixing here.
1206         Before, it would both log and assert in debug, and crash in release.
1207         Now it runs happily to completion.
1208
1209 2016-01-22  Enrica Casucci  <enrica@apple.com>
1210
1211         Add support for testing data detection.
1212         https://bugs.webkit.org/show_bug.cgi?id=153360
1213
1214         Reviewed by Tim Horton.
1215
1216         Adding a new testing option (useDataDetection) to turn on
1217         data detection when running the a test.
1218
1219         * WebKitTestRunner/TestController.cpp:
1220         (WTR::updateTestOptionsFromTestHeader):
1221         * WebKitTestRunner/TestOptions.h:
1222         * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
1223         (WTR::TestController::platformCreateWebView):
1224
1225 2016-01-21  Simon Fraser  <simon.fraser@apple.com>
1226
1227         Fix the lldb WebCoreLayoutUnitProvider to not dynamically look up the LayoutUnit denominator
1228         https://bugs.webkit.org/show_bug.cgi?id=153334
1229
1230         Reviewed by Zalan Bujtas.
1231         
1232         Evaluating expressions in the LayoutUnit summary provider seems to cause
1233         re-entrancy problems in lldb python bindings, so just hardcode the LayoutUnit
1234         denominator to 64.
1235
1236         * lldb/lldb_webkit.py:
1237         (WebCoreLayoutUnitProvider.to_string):
1238
1239 2016-01-21  Filip Pizlo  <fpizlo@apple.com>
1240
1241         display-profiler-output should be able to display code blocks sorted by machine counts
1242         https://bugs.webkit.org/show_bug.cgi?id=153298
1243
1244         Reviewed by Oliver Hunt.
1245
1246         * Scripts/display-profiler-output:
1247
1248 2016-01-21  Julien Isorce  <j.isorce@samsung.com>
1249
1250         Ensure to use compatible liborc version with wanted gstreamer version
1251         https://bugs.webkit.org/show_bug.cgi?id=153276
1252
1253         For example gst-plugins-base-1.4.4 fails to build with liborc-0.4.24.
1254         The user may have a very recent liborc installed on his system.
1255
1256         Reviewed by Philippe Normand.
1257
1258         * efl/jhbuild.modules: add liborc-0.4.17 and make it a gst dependency.
1259         * gtk/jhbuild.modules: add liborc-0.4.17 and make it a gst depencendy.
1260
1261 2016-01-21  Nan Wang  <n_wang@apple.com>
1262
1263         AX: [IOS] Implement next/previous text marker functions using TextIterator
1264         https://bugs.webkit.org/show_bug.cgi?id=153292
1265         <rdar://problem/24268243>
1266
1267         Reviewed by Chris Fleizach.
1268
1269         Made text marker tests available on iOS.
1270
1271         * DumpRenderTree/AccessibilityTextMarker.h:
1272         * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
1273         * DumpRenderTree/ios/AccessibilityTextMarkerIOS.mm: Added.
1274         (AccessibilityTextMarker::AccessibilityTextMarker):
1275         (AccessibilityTextMarker::~AccessibilityTextMarker):
1276         (AccessibilityTextMarker::isEqual):
1277         (AccessibilityTextMarker::platformTextMarker):
1278         (AccessibilityTextMarkerRange::AccessibilityTextMarkerRange):
1279         (AccessibilityTextMarkerRange::~AccessibilityTextMarkerRange):
1280         (AccessibilityTextMarkerRange::isEqual):
1281         (AccessibilityTextMarkerRange::platformTextMarkerRange):
1282         * DumpRenderTree/ios/AccessibilityUIElementIOS.mm:
1283         (AccessibilityUIElement::pathDescription):
1284         (AccessibilityUIElement::lineTextMarkerRangeForTextMarker):
1285         (AccessibilityUIElement::textMarkerRangeForElement):
1286         (AccessibilityUIElement::selectedTextMarkerRange):
1287         (AccessibilityUIElement::resetSelectedTextMarkerRange):
1288         (AccessibilityUIElement::textMarkerRangeLength):
1289         (AccessibilityUIElement::textMarkerRangeForMarkers):
1290         (AccessibilityUIElement::startTextMarkerForTextMarkerRange):
1291         (AccessibilityUIElement::endTextMarkerForTextMarkerRange):
1292         (AccessibilityUIElement::accessibilityElementForTextMarker):
1293         (AccessibilityUIElement::endTextMarkerForBounds):
1294         (AccessibilityUIElement::startTextMarkerForBounds):
1295         (AccessibilityUIElement::textMarkerForPoint):
1296         (AccessibilityUIElement::previousTextMarker):
1297         (AccessibilityUIElement::nextTextMarker):
1298         (AccessibilityUIElement::stringForTextMarkerRange):
1299         (AccessibilityUIElement::attributedStringForTextMarkerRangeContainsAttribute):
1300         (AccessibilityUIElement::indexForTextMarker):
1301         (AccessibilityUIElement::isTextMarkerValid):
1302         (AccessibilityUIElement::textMarkerForIndex):
1303         (AccessibilityUIElement::startTextMarker):
1304         (AccessibilityUIElement::endTextMarker):
1305         (AccessibilityUIElement::setSelectedVisibleTextRange):
1306         (AccessibilityUIElement::getLinkedUIElements):
1307         * DumpRenderTree/mac/AccessibilityTextMarkerMac.mm:
1308         (AccessibilityTextMarkerRange::platformTextMarkerRange):
1309         * DumpRenderTree/mac/AccessibilityUIElementMac.mm:
1310         (AccessibilityUIElement::removeSelection):
1311         (AccessibilityUIElement::lineTextMarkerRangeForTextMarker):
1312         (AccessibilityUIElement::setSelectedVisibleTextRange):
1313         (AccessibilityUIElement::supportedActions):
1314         * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm:
1315         (WTR::AccessibilityUIElement::textMarkerRangeForElement):
1316         (WTR::AccessibilityUIElement::textMarkerRangeLength):
1317         (WTR::AccessibilityUIElement::previousTextMarker):
1318         (WTR::AccessibilityUIElement::nextTextMarker):
1319         (WTR::AccessibilityUIElement::stringForTextMarkerRange):
1320         (WTR::AccessibilityUIElement::textMarkerRangeForMarkers):
1321         (WTR::AccessibilityUIElement::startTextMarkerForTextMarkerRange):
1322         (WTR::AccessibilityUIElement::endTextMarkerForTextMarkerRange):
1323         (WTR::AccessibilityUIElement::endTextMarkerForBounds):
1324         (WTR::AccessibilityUIElement::accessibilityElementForTextMarker):
1325         (WTR::AccessibilityUIElement::attributedStringForTextMarkerRangeContainsAttribute):
1326
1327 2016-01-20  Filip Pizlo  <fpizlo@apple.com>
1328
1329         Unreviewed, revert accidental unreviewed commit.
1330
1331         * Scripts/display-profiler-output:
1332
1333 2016-01-20  Jason Marcell  <jmarcell@apple.com>
1334
1335         Refactor compareIterations to remove duplicate code.
1336         https://bugs.webkit.org/show_bug.cgi?id=152913
1337
1338         Reviewed by Daniel Bates.
1339
1340         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotQueue.js:
1341         (BuildbotQueue.prototype.compareIterations): Refactored to remove duplicate code.
1342         (BuildbotQueue.prototype.sortIterations): Add binding to call to compareIterations.
1343         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/tests.js: Added tests in order to ensure
1344         the same behavior before and after refactor.
1345
1346 2016-01-20  Dana Burkart  <dburkart@apple.com>
1347
1348         Botwatcher's dashboard should show an 'X' when the build is broken
1349         https://bugs.webkit.org/show_bug.cgi?id=152507
1350
1351         Reviewed by David Kilzer.
1352
1353         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotStaticAnalyzerQueueView.js:
1354         (BuildbotStaticAnalyzerQueueView.prototype.appendStaticAnalyzerQueueStatus):
1355         (BuildbotStaticAnalyzerQueueView.prototype.update):
1356
1357 2016-01-19  Jason Marcell  <jmarcell@apple.com>
1358
1359         Remove assertion from revisionContentForIteration that is causing errors on the dashboard.
1360         https://bugs.webkit.org/show_bug.cgi?id=153262
1361
1362         Reviewed by Alexey Proskuryakov.
1363
1364         Occasionaly some buildbot iterations will not have their "got_revisions" property populated. In
1365         such cases this revisionContentForIteration method does not have any content to return, thus the
1366         assertion fails.
1367
1368         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotQueueView.js:
1369         (BuildbotQueueView.prototype.revisionContentForIteration): Removed assertion that was causing errors.
1370
1371 2016-01-19  Carlos Garcia Campos  <cgarcia@igalia.com>
1372
1373         [GTK] Runtime critical warnings when loading a URL after a session restore
1374         https://bugs.webkit.org/show_bug.cgi?id=153233
1375
1376         Reviewed by Michael Catanzaro.
1377
1378         Add new test case.
1379
1380         * TestWebKitAPI/Tests/WebKit2Gtk/TestBackForwardList.cpp:
1381         (viewLoadChanged):
1382         (testWebKitWebViewNavigationAfterSessionRestore):
1383         (beforeAll):
1384
1385 2016-01-19  Michael Catanzaro  <mcatanzaro@igalia.com>
1386
1387         [GTK] Remove jhbuild-optional.modules
1388         https://bugs.webkit.org/show_bug.cgi?id=152964
1389
1390         Reviewed by Alex Christensen.
1391
1392         * gtk/jhbuild-optional.modules: Removed.
1393         * gtk/jhbuild.modules:
1394
1395 2016-01-19  Carlos Garcia Campos  <cgarcia@igalia.com>
1396
1397         [GTK] Add support to load/save session in MiniBrowser
1398         https://bugs.webkit.org/show_bug.cgi?id=153201
1399
1400         Reviewed by Michael Catanzaro.
1401
1402         It makes it easier to test the new WebView session API.
1403
1404         * MiniBrowser/gtk/BrowserWindow.c:
1405         (browserWindowFinalize): Free the session file path.
1406         (browserWindowSaveSession): Save the current WebView session if
1407         there's a session file path.
1408         (browserWindowDeleteEvent): Call browserWindowSaveSession().
1409         (browser_window_load_session): Try to load the session from the
1410         given file path, otherwise fall back to homepage and keep the
1411         session file to save the session on window close.
1412         * MiniBrowser/gtk/BrowserWindow.h:
1413         * MiniBrowser/gtk/main.c:
1414         (createBrowserWindow): Pass the given session file path when
1415         shouldLoadSession is TRUE.
1416         (main): Only allow to restore/save session when MiniBrowser is
1417         launched without URL arguments.
1418
1419 2016-01-19  Carlos Garcia Campos  <cgarcia@igalia.com>
1420
1421         Unreviewed. Fix GTK+ test /webkit2/WebKitWebView/geolocation-permission-requests after r195075.
1422
1423         Geolocation is no longer allowed for unique origins after r195075.
1424
1425         * TestWebKitAPI/Tests/WebKit2Gtk/TestUIClient.cpp:
1426         (testWebViewGeolocationPermissionRequests):
1427
1428 2016-01-18  Carlos Alberto Lopez Perez  <clopez@igalia.com>
1429
1430         [GTK][EFL] Layout tests abort with PulseAudioSanitizer instance has no attribute '_pa_module_index' when the build is not ready.
1431         https://bugs.webkit.org/show_bug.cgi?id=153216
1432
1433         Reviewed by Michael Catanzaro.
1434
1435         * Scripts/webkitpy/port/pulseaudio_sanitizer.py:
1436         (PulseAudioSanitizer.__init__): initialize _pa_module_index in the constructor.
1437
1438 2016-01-18  Nan Wang  <n_wang@apple.com>
1439
1440         AX: [Mac] Implement next/previous text marker functions using TextIterator
1441         https://bugs.webkit.org/show_bug.cgi?id=152728
1442
1443         Reviewed by Chris Fleizach.
1444
1445         * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm:
1446         (WTR::AccessibilityUIElement::accessibilityElementForTextMarker):
1447
1448 2016-01-18  Csaba Osztrogonác  <ossy@webkit.org>
1449
1450         [cmake] Add testair to the build system
1451         https://bugs.webkit.org/show_bug.cgi?id=153126
1452
1453         Reviewed by Michael Catanzaro.
1454
1455         * Scripts/build-jsc:
1456
1457 2016-01-16  Myles C. Maxfield  <mmaxfield@apple.com>
1458
1459         Remove TextRun::allowsRoundingHacks()
1460         https://bugs.webkit.org/show_bug.cgi?id=153185
1461
1462         Reviewed by Simon Fraser.
1463
1464         * DumpRenderTree/mac/DumpRenderTree.mm:
1465         (resetWebViewToConsistentStateBeforeTesting): Deleted.
1466
1467 2016-01-15  Konstantin Tokarev  <annulen@yandex.ru>
1468
1469         [webkitdirs] Avoid list form of open because it broke WinCairo
1470         https://bugs.webkit.org/show_bug.cgi?id=153106
1471
1472         Reviewed by Alex Christensen.
1473
1474         * Scripts/webkitdirs.pm:
1475         (determineArchitecture):
1476
1477 2016-01-15  Simon Fraser  <simon.fraser@apple.com>
1478
1479         Add kdebug_trace signposts for a few WebCore operations
1480         https://bugs.webkit.org/show_bug.cgi?id=153136
1481         rdar://problem/24208487
1482
1483         Reviewed by Sam Weinig.
1484         
1485         Plist used by kdebug_trace() viewing tools.
1486
1487         * Tracing/SystemTracePoints.plist: Added.
1488
1489 2016-01-14  Konstantin Tokarev  <annulen@yandex.ru>
1490
1491         [webkitdirs] Replaced grep invocation with perl code
1492         https://bugs.webkit.org/show_bug.cgi?id=153106
1493
1494         Reviewed by Alex Christensen.
1495
1496         * Scripts/webkitdirs.pm:
1497         (determineArchitecture):
1498
1499 2016-01-14  Brian Burg  <bburg@apple.com>
1500
1501         prepare-changelog does not read paths containing spaces properly
1502         https://bugs.webkit.org/show_bug.cgi?id=137982
1503
1504         Reviewed by Joseph Pecoraro.
1505
1506         Escape whitespace in filenames before passing the file path to other functions.
1507
1508         * Scripts/prepare-ChangeLog:
1509         (generateFunctionLists): Use the more explicit 3-argument form of 'open'.
1510
1511 2016-01-14  Jason Marcell  <jmarcell@apple.com>
1512
1513         Standardize the usage of "branch" vs. "branchName".
1514         https://bugs.webkit.org/show_bug.cgi?id=152982
1515
1516         Reviewed by Daniel Bates.
1517
1518         In an earlier patch we started using the name "branch" to indicate a branch object, whereas
1519         "branchName" implies that the variable or property in question is simply a string.
1520
1521         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotQueueView.js:
1522         (BuildbotQueueView.prototype._popoverLinesForCommitRange): Change branch to branchName.
1523         (BuildbotQueueView.prototype._presentPopoverForRevisionRange): Change branch to branch.name.
1524         (BuildbotQueueView.prototype._revisionContentWithPopoverForIteration): Change branch to branchName.
1525         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Trac.js:
1526         (Trac.prototype.commitsOnBranch): Change branch to branchName.
1527         (Trac.prototype._convertCommitInfoElementToObject): Ditto.
1528         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/MockTrac.js:
1529         (MockTrac): Ditto.
1530
1531 2016-01-14  Jason Marcell  <jmarcell@apple.com>
1532
1533         Add a unit test to test BuildbotQueueView._appendPendingRevisionCount.
1534         https://bugs.webkit.org/show_bug.cgi?id=152910
1535
1536         Reviewed by Daniel Bates.
1537
1538         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/MockBuildbotQueue.js: Added.
1539         (MockBuildbotQueue): Added. Mock BuildbotQueue object that doesn't need to talk to an actual Buildbot server.
1540         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/MockBuildbotQueueView.js: Added.
1541         (MockBuildbotQueueView): Added. Mock BuildbotQueueView object that returns a pre-specified _latestProductiveIteration without
1542         the need to talk to a real Buildbot server.
1543         (MockBuildbotQueueView.prototype._latestProductiveIteration): Added. Returns a pre-specified _latestProductiveIteration
1544         without the need to talk to a real Buildbot server.
1545         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/MockTrac.js: Added.
1546         (MockTrac): Added. Mock Trac constructor that has pre-populated "recordedCommits" and does not need to talk to a real Trac
1547         server.
1548         (MockTrac.prototype.get oldestRecordedRevisionNumber): Added. Returns a pre-specified revision.
1549         (MockTrac.prototype.get latestRecordedRevisionNumber): Ditto.
1550         (MockTrac.prototype.loadMoreHistoricalData): Added. Overrides the real loadMoreHistoricalData so that we don't waste time
1551         trying to talk to Trac.
1552         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/index.html: Added. Web page container for
1553         QUnit unit tests.
1554         * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/tests.js: Added. QUnit unit tests.
1555
1556 2016-01-14  Nikos Andronikos  <nikos.andronikos-webkit@cisra.canon.com.au>
1557
1558         [CMake][GTK] CMake Error: Could not create named generator Eclipse CDT4 - Ninja
1559         https://bugs.webkit.org/show_bug.cgi?id=132599
1560
1561         Reviewed by Michael Catanzaro.
1562
1563         Check if cmake Ninja generators are installed.
1564
1565         * Scripts/webkitdirs.pm:
1566         (canUseNinjaGenerator):
1567         (canUseEclipseNinjaGenerator):
1568         (generateBuildSystemFromCMakeProject):
1569         (canUseEclipse): Deleted.
1570
1571 2016-01-13  Myles C. Maxfield  <mmaxfield@apple.com>
1572
1573         [Cocoa] Testing with font family name "System Font" is unused
1574         https://bugs.webkit.org/show_bug.cgi?id=153073
1575         <rdar://problem/24091683>
1576
1577         Reviewed by Brent Fulgham.
1578
1579         * DumpRenderTree/mac/DumpRenderTree.mm:
1580         (allowedFontFamilySet): Deleted.
1581         * WebKitTestRunner/InjectedBundle/cocoa/ActivateFontsCocoa.mm:
1582         (WTR::allowedFontFamilySet): Deleted.
1583         * WebKitTestRunner/mac/TestControllerMac.mm:
1584         (WTR::allowedFontFamilySet): Deleted.
1585
1586 2016-01-13  Daniel Bates  <dabates@apple.com>
1587
1588         [XSS Auditor] Add test when XSS payload is in the path portion of the URL
1589         https://bugs.webkit.org/show_bug.cgi?id=152871
1590
1591         Reviewed by Brent Fulgham.
1592
1593         Merged from Blink (patch by Tom Sepez <tsepez@chromium.org>):
1594         <https://src.chromium.org/viewvc/blink?revision=164746&view=revision>
1595
1596         * Scripts/webkitpy/layout_tests/servers/lighttpd.conf:
1597
1598 2016-01-08  Andy Estes  <aestes@apple.com>
1599
1600         [Content Filtering] Lazily load platform frameworks
1601         https://bugs.webkit.org/show_bug.cgi?id=152881
1602         rdar://problem/23270886
1603
1604         Reviewed by Brady Eidson.
1605
1606         Added an API test that verifies that the Parental Controls and Network Extension frameworks are loaded at the
1607         expected times. The test verifies that they are not loaded after creating a WKWebView, loading an HTML string,
1608         loading NSData, loading a file, or loading from a custom protocol. It verifies that Network Extension on Mac/iOS
1609         and Parental Controls on iOS are loaded after an HTTP request. It finally verifies that Parental Controls on Mac
1610         is loaded after an HTTPS request.
1611
1612         To accomplish this, TestProtocol was generalized to allow tests to specify the scheme they wish to use.
1613         Other tests that used TestProtocol were updated to account for this change. TestProtocol was removed from
1614         WebKit2.PreventImageLoadWithAutoResizingTest, which didn't actually need to use it. ContentFiltering tests were
1615         also re-enabled on iOS after mistakenly being disabled by r188892.
1616
1617         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1618         * TestWebKitAPI/Tests/CustomProtocolsSyncXHRTest.mm:
1619         (TestWebKitAPI::TEST):
1620         * TestWebKitAPI/Tests/WebKit2Cocoa/ContentFiltering.h: Added.
1621         * TestWebKitAPI/Tests/WebKit2Cocoa/ContentFiltering.html: Added.
1622         * TestWebKitAPI/Tests/WebKit2Cocoa/ContentFiltering.mm:
1623         (TEST):
1624         (downloadTest):
1625         (-[LazilyLoadPlatformFrameworksController init]):
1626         (-[LazilyLoadPlatformFrameworksController webView]):
1627         (-[LazilyLoadPlatformFrameworksController expectParentalControlsLoaded:networkExtensionLoaded:]):
1628         (-[LazilyLoadPlatformFrameworksController webView:didFinishNavigation:]):
1629         * TestWebKitAPI/Tests/WebKit2Cocoa/ContentFilteringPlugIn.mm:
1630         (-[ContentFilteringPlugIn webProcessPlugIn:didCreateBrowserContextController:]):
1631         (-[ContentFilteringPlugIn observeValueForKeyPath:ofObject:change:context:]):
1632         (-[ContentFilteringPlugIn checkIfPlatformFrameworksAreLoaded:]):
1633         * TestWebKitAPI/Tests/WebKit2ObjC/CustomProtocolsTest.mm:
1634         (TestWebKitAPI::TEST):
1635         * TestWebKitAPI/Tests/WebKit2ObjC/PreventImageLoadWithAutoResizing.mm:
1636         (TestWebKitAPI::TEST): Deleted.
1637         * TestWebKitAPI/cocoa/TestProtocol.h:
1638         * TestWebKitAPI/cocoa/TestProtocol.mm:
1639         (+[TestProtocol registerWithScheme:]):
1640         (+[TestProtocol unregister]):
1641
1642 2016-01-12  Dewei Zhu  <dewei_zhu@apple.com>
1643
1644         Fix the Sunpider converage in slow device.
1645         https://bugs.webkit.org/show_bug.cgi?id=152938
1646         <rdar://problem/22511411>
1647
1648         Reviewed by Ryosuke Niwa.
1649
1650         Updated the patch for RunBenchmark to resume sunspider coverage by removing unused subresources in sub-tests.
1651
1652         * Scripts/webkitpy/benchmark_runner/data/patches/SunSpider.patch:
1653
1654 2016-01-12  Ryosuke Niwa  <rniwa@webkit.org>
1655
1656         Add a build flag for custom element
1657         https://bugs.webkit.org/show_bug.cgi?id=153005
1658
1659         Reviewed by Alex Christensen.
1660
1661         Added --custom-elements option to enable custom elements support.
1662
1663         * Scripts/webkitperl/FeatureList.pm:
1664
1665 2016-01-12  Benjamin Poulain  <bpoulain@apple.com>
1666
1667         [JSC] Add a help message when run-jsc-stress-tests fails
1668         https://bugs.webkit.org/show_bug.cgi?id=153014
1669
1670         Reviewed by Csaba Osztrogonác.
1671
1672         * Scripts/run-jsc-stress-tests:
1673
1674 2016-01-11  Saam barati  <sbarati@apple.com>
1675
1676         run-jsc-stress-tests should try to figure out a JSC path
1677         https://bugs.webkit.org/show_bug.cgi?id=152971
1678
1679         Reviewed by Yusuke Suzuki.
1680
1681         This patch now allows run-jsc-stress-tests to be run
1682         without a "--jsc <jsc-path>" argument. It tries
1683         to take its best guess at a <jsc-path> automagically.
1684         
1685         This makes it much easier to just run run-jsc-stress-tests
1686         with a directory or a yaml file as an argument.
1687         You now just do this:
1688         `run-jsc-stress-tests <path-to-yaml>`
1689         or
1690         `run-jsc-stress-tests <path-to-directory-of-js-files>`
1691         
1692         I wrote this patch because I'd often find myself hacking the 
1693         run-javascriptcore-tests file just to run a particular subset of tests.
1694         Because I always forget the arguments to run-jsc-stress-tests (which means
1695         I always forgot to provide a --jsc argument), I always found it easier to 
1696         just hack on that file instead of calling run-jsc-stress-tests directly.
1697         No longer is this true!
1698
1699         * Scripts/run-jsc-stress-tests:
1700
1701 2016-01-09  Andy Estes  <aestes@apple.com>
1702
1703         [Cocoa] Add SPI to opt out a URL scheme from the memory cache
1704         https://bugs.webkit.org/show_bug.cgi?id=152950
1705         rdar://problem/24066652
1706
1707         Reviewed by Tim Horton.
1708
1709         Added an API test.
1710
1711         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1712         * TestWebKitAPI/Tests/WebKit2Cocoa/AlwaysRevalidatedURLSchemes.mm: Added.
1713         (+[AlwaysRevalidatedURLSchemeProtocol canInitWithRequest:]):
1714         (+[AlwaysRevalidatedURLSchemeProtocol canonicalRequestForRequest:]):
1715         (+[AlwaysRevalidatedURLSchemeProtocol requestIsCacheEquivalent:toRequest:]):
1716         (-[AlwaysRevalidatedURLSchemeProtocol startLoading]):
1717         (-[AlwaysRevalidatedURLSchemeProtocol stopLoading]):
1718         (-[AlwaysRevalidatedURLSchemesDelegate webView:didFinishNavigation:]):
1719         (TEST):
1720
1721 2016-01-11  Commit Queue  <commit-queue@webkit.org>
1722
1723         Unreviewed, rolling out r194866.
1724         https://bugs.webkit.org/show_bug.cgi?id=152986
1725
1726         This change broke the mac build (Requested by ryanhaddad on
1727         #webkit).
1728
1729         Reverted changeset:
1730
1731         "[Cocoa] Add SPI to opt out a URL scheme from the memory
1732         cache"
1733         https://bugs.webkit.org/show_bug.cgi?id=152950
1734         http://trac.webkit.org/changeset/194866
1735
1736 2016-01-11  Andy Estes  <aestes@apple.com>
1737
1738         [Cocoa] Add SPI to opt out a URL scheme from the memory cache
1739         https://bugs.webkit.org/show_bug.cgi?id=152950
1740         rdar://problem/24066652
1741
1742         Reviewed by Tim Horton.
1743
1744         Added an API test.
1745
1746         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1747         * TestWebKitAPI/Tests/WebKit2Cocoa/AlwaysRevalidatedURLSchemes.mm: Added.
1748         (+[AlwaysRevalidatedURLSchemeProtocol canInitWithRequest:]):
1749         (+[AlwaysRevalidatedURLSchemeProtocol canonicalRequestForRequest:]):
1750         (+[AlwaysRevalidatedURLSchemeProtocol requestIsCacheEquivalent:toRequest:]):
1751         (-[AlwaysRevalidatedURLSchemeProtocol startLoading]):
1752         (-[AlwaysRevalidatedURLSchemeProtocol stopLoading]):
1753         (-[AlwaysRevalidatedURLSchemesDelegate webView:didFinishNavigation:]):
1754         (TEST):
1755
1756 2016-01-11  Konstantin Tokarev  <annulen@yandex.ru>
1757
1758         [webkitdirs] Use CMake to determine architecture on isCMakeBuild()
1759         https://bugs.webkit.org/show_bug.cgi?id=152959
1760
1761         Reviewed by Brent Fulgham.
1762
1763         * Scripts/webkitdirs.pm:
1764         (determineArchitecture):
1765
1766 2016-01-11  Michael Catanzaro  <mcatanzaro@igalia.com>
1767
1768         [GTK] W3C CSS2.1 anonymous table tests are failing
1769         https://bugs.webkit.org/show_bug.cgi?id=152455
1770
1771         Reviewed by Mario Sanchez Prada.
1772
1773         Add shared-mime-info to the jhbuild environment, since it affects the results of layout
1774         tests. Add upstream patches to fix detection of XHTML files.
1775
1776         * gtk/jhbuild.modules:
1777         * gtk/patches/shared-mime-info-xht-glob.patch: Added.
1778         * gtk/patches/shared-mime-info-xhtml-magic.patch: Added.
1779
1780 2016-01-10  Saam barati  <sbarati@apple.com>
1781
1782         Implement a sampling profiler
1783         https://bugs.webkit.org/show_bug.cgi?id=151713
1784
1785         Reviewed by Filip Pizlo.
1786
1787         * Scripts/run-jsc-stress-tests:
1788
1789 2016-01-10  Konstantin Tokarev  <annulen@yandex.ru>
1790
1791         [webkitdirs] Try arch and uname commands on non-windows OS
1792         https://bugs.webkit.org/show_bug.cgi?id=152958
1793
1794         Reviewed by Michael Catanzaro.
1795
1796         Right now, determineArchitecture()  uses `arch` and `uname -m`
1797         commands to determine architecture in case of condition (isGtk() ||
1798         isAppleMacWebKit() || isEfl()) is true. This should be !anyWindows()
1799         instead, because this code is applicable to any non-windows OS WebKit
1800         supports (even Haiku which once was supported is moderately
1801         POSIX-compliant and has uname command).
1802
1803         * Scripts/webkitdirs.pm:
1804         (determineArchitecture):
1805
1806 2016-01-08  Aakash Jain  <aakash_jain@apple.com>
1807
1808         run-webkit-tests mis-counts totals when there are other crashes
1809         https://bugs.webkit.org/show_bug.cgi?id=152894
1810         <rdar://problem/24098697>
1811
1812         Reviewed by Alexey Proskuryakov.
1813
1814         * Scripts/webkitpy/layout_tests/models/test_run_results.py:
1815         (TestRunResults.add): Do not update result counters for other crashes.
1816
1817 2016-01-08  Youenn Fablet  <youenn.fablet@crf.canon.fr>
1818
1819         webkit-patch build-and-test should have an option to iterate over new tests
1820         https://bugs.webkit.org/show_bug.cgi?id=143093
1821
1822         Reviewed by Michael Catanzaro.
1823
1824         This patch introduces the --iterate-on-new-tests option to webkit-patch build-and-test.
1825         It allows running run-webkit-tests on modified or new paths in LayoutTests.
1826         Computation of new or modified tests is done by LayoutTestFinder.find_touched_tests
1827         It implements the translation of -expected.* paths to their related tests.
1828         It also implements the removal of skipped tests.
1829
1830         * Scripts/webkitpy/layout_tests/controllers/layout_test_finder.py:
1831         (LayoutTestFinder.find_touched_tests):
1832         * Scripts/webkitpy/layout_tests/controllers/layout_test_finder_unittest.py: Added.
1833         (MockPort):
1834         (MockPort.__init__):
1835         (MockPort.tests):
1836         (LayoutTestFinderTests):
1837         (LayoutTestFinderTests.touched_files):
1838         (LayoutTestFinderTests.test_touched_test):
1839         (LayoutTestFinderTests.test_expected_touched_test):
1840         (LayoutTestFinderTests.test_platform_expected_touched_test):
1841         (LayoutTestFinderTests.test_platform_duplicate_touched_test):
1842         (LayoutTestFinderTests.test_touched_but_skipped_test):
1843         * Scripts/webkitpy/port/base.py:
1844         (Port.potential_test_names_from_expected_file):
1845         * Scripts/webkitpy/tool/commands/download_unittest.py:
1846         (DownloadCommandsTest._default_options):
1847         * Scripts/webkitpy/tool/steps/options.py:
1848         (Options):
1849         * Scripts/webkitpy/tool/steps/runtests.py:
1850         (RunTests.options):
1851         (RunTests.run):
1852         (RunTests):
1853         (RunTests._new_or_modified_tests):
1854         (RunTests._run_webkit_tests):
1855         * Scripts/webkitpy/tool/steps/runtests_unittest.py:
1856         (RunTestsTest.test_webkit_run_unit_tests):
1857         * Scripts/webkitpy/tool/steps/steps_unittest.py:
1858         (StepsTest._step_options):
1859
1860 2016-01-07  Joseph Pecoraro  <pecoraro@apple.com>
1861
1862         prepare-ChangeLog should include radar number
1863         https://bugs.webkit.org/show_bug.cgi?id=152839
1864         <rdar://problem/24093563>
1865
1866         Reviewed by Daniel Bates.
1867
1868         When running `prepare-ChangeLog -b ###`, check for a bugzilla comment that
1869         starts with a "<rdar://problem/####>" URL. If found, include that radar URL
1870         in the ChangeLog description after the bug URL.
1871
1872         * Scripts/prepare-ChangeLog:
1873         (main): Update signatures.
1874         (fetchBugXMLData): XML Data is now used for multiple reasons. Extract this to just get the data.
1875         (fetchBugDescriptionFromBugXMLData): Search data for <short_desc>.
1876         (fetchRadarURLFromBugXMLData): Search comment text for radar URL.
1877         (generateNewChangeLogs): Include radar URL if we found one.
1878
1879         * Scripts/webkitperl/prepare-ChangeLog_unittest/fetchRadarURLFromBugXMLData.pl: Added.
1880         Tests for the radar URL extraction.
1881
1882 2016-01-07  Alexey Proskuryakov  <ap@apple.com>
1883
1884         testRunner.runUIScript crashes while running multiple tests in a row that invokes the same UIScript
1885         https://bugs.webkit.org/show_bug.cgi?id=152390
1886         <rdar://problem/23948321>
1887
1888         Reviewed by Simon Fraser.
1889
1890         Fix two use-after-frees.
1891
1892         1. WKPageCallAfterNextPresentationUpdate's callback has a pointer to TestInvocation,
1893         but we may have already progressed to another test by the time the callback fires,
1894         having destroyed the TestInvocation.
1895         2. UIScriptController is a RefCounted object, but it has a raw pointer to
1896         UIScriptContext which has the same lifetime as a TestInvocation.
1897         As a result, completion blocks of UIScriptController actions would use a destroyed
1898         TestInvocation.
1899
1900         * WebKitTestRunner/TestInvocation.cpp:
1901         (WTR::TestInvocation::~TestInvocation):
1902         (WTR::TestInvocation::url):
1903         (WTR::TestInvocation::didReceiveMessageFromInjectedBundle):
1904         (WTR::TestInvocation::runUISideScriptAfterUpdateCallback):
1905         (WTR::TestInvocation::runUISideScript):
1906         * WebKitTestRunner/TestInvocation.h:
1907         * WebKitTestRunner/UIScriptContext/UIScriptContext.cpp:
1908         (UIScriptContext::UIScriptContext):
1909         (UIScriptContext::~UIScriptContext):
1910         (UIScriptContext::runUIScript):
1911         * WebKitTestRunner/UIScriptContext/UIScriptContext.h:
1912         * WebKitTestRunner/UIScriptContext/UIScriptController.cpp:
1913         (WTR::UIScriptController::UIScriptController):
1914         (WTR::UIScriptController::contextDestroyed):
1915         (WTR::UIScriptController::makeWindowObject):
1916         (WTR::UIScriptController::setWillBeginZoomingCallback):
1917         (WTR::UIScriptController::willBeginZoomingCallback):
1918         (WTR::UIScriptController::setDidEndZoomingCallback):
1919         (WTR::UIScriptController::didEndZoomingCallback):
1920         (WTR::UIScriptController::setDidEndScrollingCallback):
1921         (WTR::UIScriptController::didEndScrollingCallback):
1922         (WTR::UIScriptController::setDidShowKeyboardCallback):
1923         (WTR::UIScriptController::didShowKeyboardCallback):
1924         (WTR::UIScriptController::setDidHideKeyboardCallback):
1925         (WTR::UIScriptController::didHideKeyboardCallback):
1926         (WTR::UIScriptController::uiScriptComplete):
1927         * WebKitTestRunner/UIScriptContext/UIScriptController.h:
1928         (WTR::UIScriptController::create):
1929         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
1930         (WTR::UIScriptController::doAsyncTask):
1931         (WTR::UIScriptController::zoomToScale):
1932         (WTR::UIScriptController::singleTapAtPoint):
1933         (WTR::UIScriptController::doubleTapAtPoint):
1934         (WTR::UIScriptController::typeCharacterUsingHardwareKeyboard):
1935         (WTR::UIScriptController::contentVisibleRect):
1936         (WTR::UIScriptController::platformSetWillBeginZoomingCallback):
1937         (WTR::UIScriptController::platformSetDidEndZoomingCallback):
1938         (WTR::UIScriptController::platformSetDidShowKeyboardCallback):
1939         (WTR::UIScriptController::platformSetDidHideKeyboardCallback):
1940         (WTR::UIScriptController::platformSetDidEndScrollingCallback):
1941         * WebKitTestRunner/mac/UIScriptControllerMac.mm:
1942         (WTR::UIScriptController::doAsyncTask):
1943
1944 2016-01-07  Youenn Fablet  <youenn.fablet@crf.canon.fr>
1945
1946         [buildbot] clean-build script should remove untracked files and revert local changes too
1947         https://bugs.webkit.org/show_bug.cgi?id=142400
1948
1949         Reviewed by Ryosuke Niwa.
1950
1951         This patch cleans the WebKit folder by reverting tracked files changes and deleting SCM untracked files, including SCM ignored files.
1952         A helper routine SCM.discard_untracked_files is added for that purpose.
1953
1954         * BuildSlaveSupport/clean-build:
1955         (main): Making call to Scripts/clean-webkit
1956         * Scripts/clean-webkit: Added.
1957         (main): Revert changes and delete untracked files.
1958         * Scripts/webkitpy/common/checkout/scm/scm.py:
1959         (SCM.discard_untracked_files): Helper function to discard untracked files or folders found by SCM.
1960         * Scripts/webkitpy/common/checkout/scm/scm_unittest.py:
1961         (SCMTest._shared_test_discard_untracked_files):
1962         (test_discard_untracked_files): Tests that untracked file and untracked folder get discarded correctly.
1963
1964 2016-01-06  Simon Fraser  <simon.fraser@apple.com>
1965
1966         Add a setting and preferences to enable display-list drawing. Does nothing yet.
1967         https://bugs.webkit.org/show_bug.cgi?id=152807
1968
1969         Reviewed by Zalan Bujtas.
1970         
1971         Add an item to the Settings menu to toggle display-list drawing.
1972
1973         * MiniBrowser/mac/SettingsController.h:
1974         * MiniBrowser/mac/SettingsController.m:
1975         (-[SettingsController _populateMenu]):
1976         (-[SettingsController validateMenuItem:]):
1977         (-[SettingsController toggleDisplayListDrawingEnabled:]):
1978         (-[SettingsController displayListDrawingEnabled]):
1979         * MiniBrowser/mac/WK2BrowserWindowController.m:
1980         (-[WK2BrowserWindowController didChangeSettings]):
1981
1982 2016-01-06  Youenn Fablet  <youenn.fablet@crf.canon.fr>
1983
1984         Python SCM should be able to retrieve untracked files - Add GIT support
1985         https://bugs.webkit.org/show_bug.cgi?id=143135
1986
1987         Reviewed by Michael Catanzaro.
1988
1989         * Scripts/webkitpy/common/checkout/scm/git.py:
1990         (Git.untracked_files): Adding support for git.
1991         * Scripts/webkitpy/common/checkout/scm/scm_unittest.py:
1992         (GitTest.setUp):
1993         (GitTest.test_untracked_files): Adding test.
1994
1995 2016-01-05  Mark Lam  <mark.lam@apple.com>
1996
1997         Rename badly named JSC_timeout env var to JSCTEST_timeout.
1998         https://bugs.webkit.org/show_bug.cgi?id=152748
1999
2000         Reviewed by Geoffrey Garen.
2001
2002         Now that we validate JSC options, the badly named JSC_timeout env var causes the
2003         bots to have a bad time.
2004
2005         * Scripts/run-javascriptcore-tests:
2006         * Scripts/run-jsc-stress-tests:
2007
2008 2016-01-04  Carlos Garcia Campos  <cgarcia@igalia.com>
2009
2010         [GTK] Allow to save and restore session
2011         https://bugs.webkit.org/show_bug.cgi?id=115600
2012
2013         Reviewed by Michael Catanzaro.
2014
2015         Add test case to check the new session API.
2016
2017         * TestWebKitAPI/Tests/WebKit2Gtk/TestBackForwardList.cpp:
2018         (testWebKitWebViewSessionState):
2019         (testWebKitWebViewSessionStateWithFormData):
2020         (beforeAll):
2021
2022 2016-01-04  Csaba Osztrogonác  <ossy@webkit.org>
2023
2024         [EFL] Bump EFL version to 1.16.1
2025         https://bugs.webkit.org/show_bug.cgi?id=152688
2026
2027         Reviewed by Gyuyoung Kim.
2028
2029         * efl/jhbuild.modules:
2030
2031 2016-01-04  Aakash Jain  <aakash_jain@apple.com>
2032
2033         error running layout tests on iOS simulator on latest build
2034         https://bugs.webkit.org/show_bug.cgi?id=152719
2035         <rdar://problem/24009549>
2036
2037         Reviewed by Alexey Proskuryakov.
2038
2039         * Scripts/webkitpy/xcode/simulator.py:
2040         (Simulator.wait_until_device_is_booted): Ensure that simulator device is in booted state
2041           before running simctl spawn command.
2042
2043 2016-01-03  Michael Catanzaro  <mcatanzaro@igalia.com>
2044
2045         Unreviewed, move Frédéric Wang to committers list
2046
2047         He seems to be on the contributors list by accident. He has been landing his own commits for
2048         about two years now.
2049
2050         * Scripts/webkitpy/common/config/contributors.json:
2051
2052 2016-01-03  Michael Catanzaro  <mcatanzaro@igalia.com>
2053
2054         Unreviewed, move Sebastian Dröge to committers list harder
2055
2056         He accidentally added himself to the reviewers list because the file is confusing. Then I
2057         accidentially moved him to the contributors list because the file is confusing, even though
2058         I knew the contributors list existed in this file and was attempting to add him to the
2059         committers list. Really move him to the committers list now.
2060
2061         * Scripts/webkitpy/common/config/contributors.json:
2062
2063 2016-01-02  Youenn Fablet  <youenn.fablet@crf.canon.fr>
2064
2065         Python SCM should be able to retrieve untracked files - Add SVN support
2066         https://bugs.webkit.org/show_bug.cgi?id=152546
2067
2068         Reviewed by Michael Catanzaro.
2069
2070         * Scripts/webkitpy/common/checkout/scm/scm_unittest.py:
2071         (test_untracked_files): Activating test for SVN.
2072         * Scripts/webkitpy/common/checkout/scm/svn.py:
2073         (SVN.untracked_files): Implementing untracked files retrieval for SVN.
2074
2075 2015-12-31  Andy Estes  <aestes@apple.com>
2076
2077         Replace WTF::move with WTFMove
2078         https://bugs.webkit.org/show_bug.cgi?id=152601
2079
2080         Reviewed by Brady Eidson.
2081
2082         * DumpRenderTree/TestRunner.h:
2083         (TestRunner::setAllowedHosts):
2084         * DumpRenderTree/win/DRTDataObject.cpp:
2085         (DRTDataObject::SetData):
2086         * TestWebKitAPI/Tests/WTF/Deque.cpp:
2087         (TestWebKitAPI::TEST):
2088         * TestWebKitAPI/Tests/WTF/HashMap.cpp:
2089         (TestWebKitAPI::TEST):
2090         * TestWebKitAPI/Tests/WTF/HashSet.cpp:
2091         (TestWebKitAPI::TEST):
2092         * TestWebKitAPI/Tests/WTF/NakedPtr.cpp:
2093         (TestWebKitAPI::TEST):
2094         * TestWebKitAPI/Tests/WTF/Ref.cpp:
2095         (TestWebKitAPI::passWithRef):
2096         (TestWebKitAPI::TEST):
2097         * TestWebKitAPI/Tests/WTF/RefPtr.cpp:
2098         (TestWebKitAPI::TEST):
2099         * TestWebKitAPI/Tests/WTF/Vector.cpp:
2100         (TestWebKitAPI::TEST):
2101         * TestWebKitAPI/Tests/WTF/WTFString.cpp:
2102         (TestWebKitAPI::TEST):
2103         * TestWebKitAPI/Tests/WTF/ns/RetainPtr.mm:
2104         (TestWebKitAPI::TEST):
2105         * TestWebKitAPI/Tests/WebCore/CalculationValue.cpp:
2106         (TestWebKitAPI::createTestValue):
2107         (TestWebKitAPI::TEST):
2108         * TestWebKitAPI/Tests/WebCore/ContentExtensions.cpp:
2109         (TestWebKitAPI::InMemoryCompiledContentExtension::createFromFilter):
2110         (TestWebKitAPI::InMemoryCompiledContentExtension::create):
2111         (TestWebKitAPI::InMemoryCompiledContentExtension::InMemoryCompiledContentExtension):
2112         (TestWebKitAPI::createNFAs):
2113         (TestWebKitAPI::TEST_F):
2114         * TestWebKitAPI/Tests/WebCore/DFACombiner.cpp:
2115         (TestWebKitAPI::combine):
2116         * TestWebKitAPI/Tests/WebCore/DFAHelpers.h:
2117         (TestWebKitAPI::createNFAs):
2118         * TestWebKitAPI/Tests/WebKit2/cocoa/WeakObjCPtr.mm:
2119         (TEST):
2120         * TestWebKitAPI/Tests/WebKit2Gtk/WebProcessTest.cpp:
2121         (WebProcessTest::add):
2122
2123 2016-01-01  Michael Catanzaro  <mcatanzaro@igalia.com>
2124
2125         [SOUP] REGRESSION(r192761): Broke resource URIs for applications that use g_resource_load in a web extension
2126         https://bugs.webkit.org/show_bug.cgi?id=152634
2127
2128         Reviewed by Carlos Garcia Campos.
2129
2130         * TestWebKitAPI/Tests/WebKit2Gtk/TestLoaderClient.cpp:
2131         (testLoadFromGResource): Added test.
2132         (beforeAll):
2133         * TestWebKitAPI/Tests/WebKit2Gtk/WebExtensionTest.cpp:
2134         (registerGResource): Added.
2135         (webkit_web_extension_initialize_with_user_data): Load the test gresource.
2136         * TestWebKitAPI/Tests/WebKit2Gtk/resources/boring.html: Added.
2137         * TestWebKitAPI/Tests/WebKit2Gtk/resources/webkit2gtk-tests.gresource.xml: Add an HTML file.
2138
2139 2015-12-31  David Kilzer  <ddkilzer@apple.com>
2140
2141         REGRESSION (r194470): Fix warnings uncovered by migrating to WTF_MOVE
2142         <https://bugs.webkit.org/show_bug.cgi?id=152601>
2143
2144         Ignore unknown pragmas on older clangs.  Fixes the following
2145         build failure:
2146
2147             Tools/TestWebKitAPI/Tests/WTF/NakedPtr.cpp:184:34: error: unknown warning group '-Wself-move', ignored [-Werror,-Wunknown-pragmas]
2148             #pragma clang diagnostic ignored "-Wself-move"
2149                                              ^
2150             1 error generated.
2151
2152         * TestWebKitAPI/Tests/WTF/NakedPtr.cpp:
2153         (TestWebKitAPI::TEST):
2154         * TestWebKitAPI/Tests/WTF/RefPtr.cpp:
2155         (TestWebKitAPI::TEST):
2156
2157 2015-12-31  Andy Estes  <aestes@apple.com>
2158
2159         Update the style checker to advise using WTFMove() instead of WTF::move()
2160         https://bugs.webkit.org/show_bug.cgi?id=152601
2161
2162         Reviewed by Daniel Bates.
2163
2164         * Scripts/webkitpy/style/checkers/cpp.py:
2165         (check_wtf_move):
2166         * Scripts/webkitpy/style/checkers/cpp_unittest.py:
2167         (WebKitStyleTest.test_wtf_move):
2168
2169 2015-12-31  Andy Estes  <aestes@apple.com>
2170
2171         Fix warnings uncovered by migrating to WTF_MOVE
2172         https://bugs.webkit.org/show_bug.cgi?id=152601
2173
2174         Reviewed by Daniel Bates.
2175
2176         Ignored -Wself-move warnings in these two API tests. It's useful to test that these classes properly handle
2177         self-move, even if doing so would trigger a warning.
2178
2179         * TestWebKitAPI/Tests/WTF/NakedPtr.cpp:
2180         (TestWebKitAPI::TEST):
2181         * TestWebKitAPI/Tests/WTF/RefPtr.cpp:
2182         (TestWebKitAPI::TEST):
2183
2184 2015-12-31  Martin Robinson  <mrobinson@igalia.com>
2185
2186         [GTK] The install-dependencies script has a syntax error
2187         https://bugs.webkit.org/show_bug.cgi?id=152613
2188
2189         Reviewed by Michael Catanzaro.
2190
2191         * gtk/install-dependencies: Add the missing 'then.'
2192
2193 2015-12-30  Philippe Normand  <pnormand@igalia.com>
2194
2195         [Mac][GTK] Jhbuild support for OSX
2196         https://bugs.webkit.org/show_bug.cgi?id=150799
2197
2198         Reviewed by Michael Catanzaro.
2199
2200         * gtk/install-dependencies: Install dependencies on OSX with Homebrew.
2201         * gtk/jhbuild.modules: Moved platform-specific build settings in condition tags.
2202         * gtk/patches/foxbntconfig-fix-osx-cache.diff: Added.
2203         * gtk/jhbuildrc: GTK+ makeargs clean-up, the 3.0.12 hack is no longer needed.
2204
2205 2015-12-28  Michael Catanzaro  <mcatanzaro@igalia.com>
2206
2207         Unreviewed, move Sebastian Dröge to committers list
2208
2209         He accidentally added himself to the reviewers list because the file is confusing.
2210
2211         * Scripts/webkitpy/common/config/contributors.json:
2212
2213 2015-12-24  Simon Fraser  <simon.fraser@apple.com>
2214
2215         Remove the unused #define _USE_MATH_DEFINES
2216         https://bugs.webkit.org/show_bug.cgi?id=152034
2217
2218         Reviewed by Tim Horton.
2219         
2220         Update this test to use piDouble from MathExtras.h, and
2221         std::numeric_limits<>.
2222
2223         * TestWebKitAPI/Tests/WTF/MediaTime.cpp:
2224
2225 2015-12-24  Youenn Fablet  <youenn.fablet@crf.canon.fr>
2226
2227         Python SCM should be able to retrieve untracked files - Generic changes
2228         https://bugs.webkit.org/show_bug.cgi?id=152536
2229
2230         Reviewed by Brent Fulgham.
2231
2232         This patch introduces SCM.untracked_files to retrieve a list of untracked files.
2233         No support is yet added to GIT and SVN specific implementations.
2234
2235         * Scripts/webkitpy/common/checkout/scm/scm.py:
2236         (SCM.untracked_files):
2237         * Scripts/webkitpy/common/checkout/scm/scm_unittest.py:
2238         (SCMTest._shared_test_untracked_files):
2239
2240 2015-12-23  Dewei Zhu  <dewei_zhu@apple.com>
2241
2242         SVN checkout used by RunBenchmark should be non-interactive
2243         https://bugs.webkit.org/show_bug.cgi?id=152542
2244
2245         Reviewed by Ryosuke Niwa.
2246
2247         RunBenchmark should not require user interaction while running.
2248
2249         * Scripts/webkitpy/benchmark_runner/benchmark_builder.py:
2250         (BenchmarkBuilder._checkout_with_subversion):
2251
2252 2015-12-23  Brent Fulgham  <bfulgham@apple.com>
2253
2254         Web Inspector: add support for running protocol-test.js tests on Windows
2255         https://bugs.webkit.org/show_bug.cgi?id=148037
2256         <rdar://problem/22292237>
2257
2258         Reviewed by Simon Fraser.
2259
2260         * DumpRenderTree/win/TestRunnerWin.cpp:
2261         (TestRunner::inspectorTestStubURL): Provide implementation.
2262
2263 2015-12-23  Eric Carlson  <eric.carlson@apple.com>
2264
2265         [MediaStream] MediaDeviceInfo.label must be empty in some situations
2266         https://bugs.webkit.org/show_bug.cgi?id=152000
2267
2268         Reviewed by Brent Fulgham.
2269
2270         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
2271         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
2272         (WTR::InjectedBundle::setUserMediaPermission):
2273         (WTR::InjectedBundle::setUserMediaPermissionForOrigin): New.
2274         * WebKitTestRunner/InjectedBundle/InjectedBundle.h:
2275
2276         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
2277         (WTR::TestRunner::setUserMediaPermissionForOrigin): New.
2278         * WebKitTestRunner/InjectedBundle/TestRunner.h:
2279
2280         * WebKitTestRunner/TestController.cpp:
2281         (WTR::TestController::setUserMediaPermissionForOrigin):
2282         (WTR::TestController::handleCheckOfUserMediaPermissionForOrigin): Add NULL check.
2283         (WTR::TestController::decidePolicyForUserMediaPermissionRequestIfPossible): Don't add 
2284           persistent permission for origin, that can be done from script now.
2285         * WebKitTestRunner/TestController.h:
2286
2287         * WebKitTestRunner/TestInvocation.cpp:
2288         (WTR::TestInvocation::didReceiveMessageFromInjectedBundle): Add support for
2289           SetUserMediaPermissionForOrigin.
2290
2291 2015-12-23  Brent Fulgham  <bfulgham@apple.com>
2292
2293         [Win] Unreviewed build fix: Recognize Windows 10 variants.
2294
2295         * Scripts/webkitpy/common/system/platforminfo.py:
2296         (PlatformInfo._determine_win_version):
2297
2298 2015-12-23  Chris Aljoudi <chris@chrismatic.io> and Alex Christensen <achristensen@webkit.org>
2299
2300         Content blockers should be able to promote http to https
2301         https://bugs.webkit.org/show_bug.cgi?id=148966
2302
2303         Reviewed by Benjamin Poulain.
2304
2305         * TestWebKitAPI/Tests/WebCore/ContentExtensions.cpp:
2306         (WebCore::ContentExtensions::operator<<):
2307         (TestWebKitAPI::TEST_F):
2308
2309 2015-12-22  Hunseop Jeong  <hs85.jeong@samsung.com>
2310
2311         [EFL] MiniBrowser should be able to choose the offline-web-application-cache option
2312         https://bugs.webkit.org/show_bug.cgi?id=152516
2313
2314         Reviewed by Gyuyoung Kim.
2315
2316         * MiniBrowser/efl/main.c:
2317
2318 2015-12-22  Brent Fulgham  <bfulgham@apple.com>
2319
2320         Unreviewed: Add John Wilander as a contributor.
2321
2322         * Scripts/webkitpy/common/config/contributors.json:
2323
2324 2015-12-22  Chris Fleizach  <cfleizach@apple.com>
2325
2326         [WK2] Looping in testcase: fast/dom/Window/property-access-on-cached-window-after-frame-removed.html
2327         https://bugs.webkit.org/show_bug.cgi?id=152482
2328
2329         Reviewed by Brent Fulgham.
2330
2331         vertical/horizontalScrollbar returns an accessibility element. That element can also be queried
2332         for the same property. On WK2, the element returned will not be valid, but is still present and
2333         that can lead to looping.
2334
2335         * DumpRenderTree/mac/AccessibilityUIElementMac.mm:
2336         (AccessibilityUIElement::horizontalScrollbar):
2337         (AccessibilityUIElement::verticalScrollbar):
2338         * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm:
2339         (WTR::AccessibilityUIElement::horizontalScrollbar):
2340         (WTR::AccessibilityUIElement::verticalScrollbar):
2341
2342 2015-12-22  Xabier Rodriguez Calvar  <calvaris@igalia.com>
2343
2344         Unreviewed.
2345
2346         * Scripts/webkitpy/common/config/contributors.json: Marking myself as reviewer.
2347
2348 2015-12-21  Hunseop Jeong  <hs85.jeong@samsung.com>
2349
2350         [EFL] test_ewk2_context failed after r192808
2351         https://bugs.webkit.org/show_bug.cgi?id=151846
2352
2353         Reviewed by Gyuyoung Kim.
2354
2355         Used the added ewk_context_web_process_count_limit_set api
2356         instead of the deprecated ewk_context_process_model_set.
2357
2358         * MiniBrowser/efl/main.c:
2359         (elm_main):
2360
2361 2015-12-21  Michael Catanzaro  <mcatanzaro@igalia.com>
2362
2363         Unreviewed, move myself to reviewer list.
2364
2365         * Scripts/webkitpy/common/config/contributors.json:
2366
2367 2015-12-21  Aakash Jain  <aakash_jain@apple.com>
2368
2369         Unreviewed, add myself to the committers list.
2370
2371         * Scripts/webkitpy/common/config/contributors.json:
2372
2373 2015-12-21  Michael Catanzaro  <mcatanzaro@igalia.com>
2374
2375         [GTK] jquery.min.js violates DFSG
2376         https://bugs.webkit.org/show_bug.cgi?id=152428
2377
2378         Reviewed by Joseph Pecoraro.
2379
2380         Stop distributing Source/WebInspectorUI/Tools. It is not needed in tarballs. This brings us
2381         into compliance with DFSG by removing a bundled, minified copy of jQuery from our tarball.
2382
2383         * gtk/manifest.txt.in:
2384
2385 2015-12-19  Dan Bernstein  <mitz@apple.com>
2386
2387         [Mac] WebKit contains dead source code for OS X Mavericks and earlier
2388         https://bugs.webkit.org/show_bug.cgi?id=152462
2389
2390         Reviewed by Alexey Proskuryakov.
2391
2392         - Removed definitions of MACOSX_DEPLOYMENT_TARGET and WEBKIT_SYSTEM_INTERFACE_LIBRARY for
2393           OS X 10.9:
2394
2395         * DumpRenderTree/mac/Configurations/DebugRelease.xcconfig:
2396         * LayoutTestRelay/Configurations/DebugRelease.xcconfig:
2397         * MiniBrowser/Configurations/DebugRelease.xcconfig:
2398         * TestWebKitAPI/Configurations/DebugRelease.xcconfig:
2399         * WebKitTestRunner/Configurations/DebugRelease.xcconfig:
2400
2401         - Simplified expressions involving __MAC_OS_X_VERSION_MIN_REQUIRED and removed code that was
2402           never getting compiled:
2403
2404         * DumpRenderTree/mac/TextInputController.m:
2405         * MiniBrowser/mac/BrowserWindowController.m:
2406         * TestWebKitAPI/Tests/mac/AttributedString.mm:
2407         * WebKitTestRunner/mac/EventSenderProxy.mm:
2408
2409 2015-12-18  Michael Catanzaro  <mcatanzaro@igalia.com>
2410
2411         Unreviewed, add WebKitGTK+ Bugzilla email to committers list
2412
2413         This is to make it easy to CC it on Bugzilla.
2414
2415         * Scripts/webkitpy/common/config/contributors.json:
2416
2417 2015-12-18  Aakash Jain  <aakash_jain@apple.com>
2418
2419         Pasteboard get messed up after running kill-old-processes
2420         https://bugs.webkit.org/show_bug.cgi?id=152426
2421
2422         Reviewed by Alexey Proskuryakov.
2423
2424         * BuildSlaveSupport/kill-old-processes:
2425         (main): Do not kill pasteboard anymore.
2426
2427 2015-12-17  Aakash Jain  <aakash_jain@apple.com>
2428
2429         run-webkit-tests shouldn't start multiple iOS simulators while only running one test
2430         https://bugs.webkit.org/show_bug.cgi?id=152157
2431         <rdar://problem/23851817>
2432
2433         Reviewed by Alexey Proskuryakov.
2434
2435         * Scripts/webkitpy/layout_tests/controllers/layout_test_runner.py:
2436         (LayoutTestRunner.get_worker_count): Calculate required number of workers.
2437         * Scripts/webkitpy/layout_tests/controllers/manager.py:
2438         (Manager._get_test_inputs): Common method to calculate test_inputs.
2439         (Manager._update_worker_count): Calculate and update required number of workers.
2440
2441 2015-12-16  Aakash Jain  <aakash_jain@apple.com>
2442
2443         run-webkit-tests fails to delete Simulator device during cleanup
2444         https://bugs.webkit.org/show_bug.cgi?id=152363
2445
2446         Reviewed by Alexey Proskuryakov.
2447
2448         * Scripts/webkitpy/xcode/simulator.py:
2449         (Simulator.delete_device): Ensure that device is Shutdown before deleting it.
2450
2451 2015-12-16  Tim Horton  <timothy_horton@apple.com>
2452
2453         [mac-wk2] fast/events force click tests crashing
2454         https://bugs.webkit.org/show_bug.cgi?id=152339
2455
2456         Reviewed by Beth Dakin.
2457
2458         * WebKitTestRunner/mac/EventSenderProxy.mm:
2459         (-[EventSenderSyntheticEvent initPressureEventAtLocation:globalLocation:stage:pressure:stageTransition:phase:time:eventNumber:window:]):
2460         Set the NSEvent's _type member in addition to overriding -type,
2461         because there are assertions in touch event handling code that depend on it.
2462
2463 2015-12-16  Youenn Fablet  <youenn.fablet@crf.canon.fr>
2464
2465         Enforce temporarily bots to sync WebKit and WPT testharness.js
2466         https://bugs.webkit.org/show_bug.cgi?id=152334
2467
2468         Reviewed by Darin Adler.
2469
2470         * Scripts/webkitpy/layout_tests/servers/web_platform_test_server.py:
2471         (WebPlatformTestServer._copy_webkit_test_files): Temporarily overwrite wpt testharness.js with WebKit testharness.js.
2472
2473 2015-12-16  Youenn Fablet  <youenn.fablet@crf.canon.fr>
2474
2475         [Fetch API] Add fetch API compile time flag
2476         https://bugs.webkit.org/show_bug.cgi?id=152254
2477
2478         Reviewed by Darin Adler.
2479
2480         * Scripts/webkitperl/FeatureList.pm:
2481
2482 2015-12-16  Xabier Rodriguez Calvar  <calvaris@igalia.com>
2483
2484         Unreviewed.
2485
2486         Added files that have impact in building Streams API to the watchlist.
2487
2488         * Scripts/webkitpy/common/config/watchlist:
2489
2490 2015-12-16  Xabier Rodriguez Calvar  <calvaris@igalia.com>
2491
2492         Unreviewed.
2493
2494         Added imported tests to Streams API watchlist.
2495
2496         * Scripts/webkitpy/common/config/watchlist:
2497
2498 2015-12-16  Youenn Fablet  <youenn.fablet@crf.canon.fr>
2499
2500         Remove default copy of wpt testharness.js when launching wpt server
2501         https://bugs.webkit.org/show_bug.cgi?id=152298
2502
2503         Reviewed by Darin Adler.
2504
2505         * Scripts/webkitpy/layout_tests/servers/web_platform_test_server.py:
2506         (WebPlatformTestServer._copy_webkit_test_files): Deleted default copy of WebKit testharness.js to WPT.
2507
2508 2015-12-15  David Kilzer  <ddkilzer@apple.com>
2509
2510         REGRESSION (r192375): DumpRenderTree.app exits immediately with no error
2511         <http://webkit.org/b/152314>
2512
2513         Reviewed by Daniel Bates.
2514
2515         The change to DumpRenderTreeMain.mm in r192375 caused the iOS
2516         code path to exit immediately when calling main().
2517         Unfortunately, DumpRenderTreeMain.mm was used for both
2518         DumpRenderTree command-line binary and DumpRenderTree.app, which
2519         meant that the app would exit immediately with no error code
2520         when run!
2521
2522         The workaround is to introduce a separate source file called
2523         DumpRenderTreeAppMain.mm, similar to what WebKitTestRunner
2524         already does.
2525
2526         * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj: Add
2527         DumpRenderTreeAppMain.mm to the project.  Make it the only
2528         compiled source for the DumpRenderTree.app target.
2529         * DumpRenderTree/ios/DumpRenderTreeAppMain.mm: Copied from Tools/DumpRenderTree/mac/DumpRenderTreeMain.mm.
2530         (main): Call DumpRenderTreeMain() on iOS.  Assert on OS X in
2531         case someone tries mistakenly to use the app.
2532         * DumpRenderTree/mac/Configurations/DumpRenderTree.xcconfig:
2533         Link to JavaScriptCore.framework on iOS for the assert.
2534         * DumpRenderTree/mac/Configurations/DumpRenderTreeApp.xcconfig:
2535         Link to JavaScriptCore.framework on OS X for the assert.  Remove
2536         unneeded EXCLUDED_SOURCE_FILE_NAMES setting.
2537         * DumpRenderTree/mac/DumpRenderTreeMain.mm:
2538         (main): Add assert for iOS so that a crash occurs if someone
2539         tries to run the wrong command.
2540
2541 2015-12-14  Tim Horton  <timothy_horton@apple.com>
2542
2543         Frequent crash under -[WKPDFView web_setMinimumSize:]_block_invoke
2544         https://bugs.webkit.org/show_bug.cgi?id=152266
2545         <rdar://problem/22092676>
2546
2547         Reviewed by Simon Fraser.
2548
2549         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2550         * TestWebKitAPI/Tests/WebKit2Cocoa/WKPDFViewResizeCrash.mm: Added.
2551         Add a test that crashed before this change, and doesn't crash after.
2552
2553 2015-12-14  Chris Fleizach  <cfleizach@apple.com>
2554
2555         AX: iOS: Text field variations do not have the correct traits
2556         https://bugs.webkit.org/show_bug.cgi?id=152237
2557
2558         Reviewed by Mario Sanchez Prada.
2559
2560         Add iOS calls for determing if an object is a search field or a text area.
2561
2562         * DumpRenderTree/AccessibilityUIElement.cpp:
2563         (getIsSearchFieldCallback):
2564         (getIsTextAreaCallback):
2565         (stringForSelectionCallback):
2566         (AccessibilityUIElement::getJSClass):
2567         * DumpRenderTree/AccessibilityUIElement.h:
2568         * DumpRenderTree/ios/AccessibilityUIElementIOS.mm:
2569         (AccessibilityUIElement::identifier):
2570         (AccessibilityUIElement::isTextArea):
2571         (AccessibilityUIElement::isSearchField):
2572         (AccessibilityUIElement::traits):
2573         * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp:
2574         (WTR::AccessibilityUIElement::scrollPageRight):
2575         (WTR::AccessibilityUIElement::hasContainedByFieldsetTrait):
2576         (WTR::AccessibilityUIElement::fieldsetAncestorElement):
2577         (WTR::AccessibilityUIElement::isSearchField):
2578         (WTR::AccessibilityUIElement::isTextArea):
2579         * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h:
2580         * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl:
2581         * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm:
2582         (WTR::AccessibilityUIElement::fieldsetAncestorElement):
2583         (WTR::AccessibilityUIElement::isTextArea):
2584         (WTR::AccessibilityUIElement::isSearchField):
2585         (WTR::AccessibilityUIElement::rowCount):
2586
2587 2015-12-14  Carlos Alberto Lopez Perez  <clopez@igalia.com>
2588
2589         [GTK] [JHBuild] package libtool-bin is now required on Debian systems.
2590         https://bugs.webkit.org/show_bug.cgi?id=152252
2591
2592         Reviewed by Sergio Villar Senin.
2593
2594         * gtk/install-dependencies: Add libtool-bin to the list of packages required
2595         for building the JHBuild on Debian systems.
2596
2597 2015-12-11  Joseph Pecoraro  <pecoraro@apple.com>
2598
2599         check-for-inappropriate-objc-class-names should check all class names, not just externally visible ones
2600         https://bugs.webkit.org/show_bug.cgi?id=152156
2601
2602         Reviewed by Dan Bernstein.
2603
2604         Our frameworks should appropriately prefix all ObjC classes,
2605         not just external symbols.
2606
2607         * Scripts/check-for-inappropriate-objc-class-names:
2608         Remove the -g switch to check all ObjC class names.
2609
2610 2015-12-10  Eric Carlson  <eric.carlson@apple.com>
2611
2612         [MediaStream] Expose media capture devices persistent permissions to WebCore
2613         https://bugs.webkit.org/show_bug.cgi?id=152087
2614
2615         Add support for the new user media permission checker page UI client method.
2616
2617         Reviewed by Chris Dumez.
2618
2619         * WebKitTestRunner/TestController.cpp:
2620         (WTR::decidePolicyForUserMediaPermissionRequest):
2621         (WTR::checkUserMediaPermissionForOrigin):
2622         (WTR::TestController::createOtherPage): Add checkUserMediaPermissionForOrigin.
2623         (WTR::TestController::createWebViewWithOptions): Ditto.
2624         (WTR::TestController::resetStateToConsistentValues): Clear m_userMediaOriginPermissions.
2625         (WTR::originUserVisibleName): New, create a string for the origin.
2626         (WTR::TestController::handleCheckOfUserMediaPermissionForOrigin): Set the WKUserMediaPermissionCheckRef
2627           according to the state of the origin permission map.
2628         (WTR::TestController::handleUserMediaPermissionRequest): Remember both the origin and the
2629           request so we can update the origin permission map in decidePolicyForUserMediaPermissionRequestIfPossible.
2630         (WTR::TestController::decidePolicyForUserMediaPermissionRequestIfPossible): Update the
2631           origin permission map.
2632         * WebKitTestRunner/TestController.h:
2633
2634 2015-12-10  Alex Christensen  <achristensen@webkit.org>
2635
2636         REGRESSION (r192796) WKBundlePageResourceLoadClient should be able to setHTTPBody in willSendRequestForFrame
2637         https://bugs.webkit.org/show_bug.cgi?id=152022
2638         rdar://problem/23763584
2639
2640         Reviewed by Darin Adler.
2641
2642         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
2643         * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
2644         (WTR::InjectedBundlePage::willSendRequestForFrame):
2645         * WebKitTestRunner/InjectedBundle/TestRunner.h:
2646         (WTR::TestRunner::setWillSendRequestReturnsNull):
2647         (WTR::TestRunner::willSendRequestReturnsNullOnRedirect):
2648         (WTR::TestRunner::setWillSendRequestReturnsNullOnRedirect):
2649         (WTR::TestRunner::setWillSendRequestAddsHTTPBody):
2650         (WTR::TestRunner::willSendRequestHTTPBody):
2651         Added setWillSendRequestAddsHTTPBody that uses new SPI for testing.
2652
2653 2015-12-10  Aakash Jain  <aakash_jain@apple.com>
2654
2655         Remove additional simulator checks before running layout-tests
2656         https://bugs.webkit.org/show_bug.cgi?id=152146
2657
2658         Reviewed by Darin Adler.
2659
2660         * Scripts/webkitpy/port/ios.py:
2661         (IOSSimulatorPort.check_sys_deps): Removed additional simulators verifications.
2662         * Scripts/webkitpy/xcode/simulator.py:
2663         (Simulator._boot_and_shutdown_simulator_device): Deleted.
2664         (Simulator.check_simulator_device_and_erase_if_needed): Deleted.
2665
2666 2015-12-09  Aakash Jain  <aakash_jain@apple.com>
2667
2668         Run atleast one simulator even if max process limit is low
2669         https://bugs.webkit.org/show_bug.cgi?id=152081
2670         <rdar://problem/23819694>
2671
2672         Reviewed by Alexey Proskuryakov.
2673
2674 2015-12-09  Mario Sanchez Prada  <mario@endlessm.com>
2675
2676         [GTK] Crash in WebProcess when loading large content with custom URI schemes
2677         https://bugs.webkit.org/show_bug.cgi?id=144262
2678
2679         Reviewed by Carlos Garcia Campos.
2680
2681         Added new unit test to check the additional scenarios we now
2682         handle for custom URI schemes.
2683
2684         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebContext.cpp:
2685         (generateHTMLContent): New helper function to generate big enough content.
2686         (testWebContextURIScheme): New unit test.
2687
2688 2015-12-09  Ryuan Choi  <ryuan.choi@navercorp.com>
2689
2690         [EFL] Fix unhandled web process message when launching MiniBrowser
2691         https://bugs.webkit.org/show_bug.cgi?id=152048
2692
2693         Reviewed by Gyuyoung Kim.
2694
2695         * TestWebKitAPI/Tests/WebKit2/CoordinatedGraphics/WKViewUserViewportToContents.cpp:
2696         (TestWebKitAPI::TEST):
2697
2698 2015-12-09  Carlos Garcia Campos  <cgarcia@igalia.com>
2699
2700         [GTK] Add API to handle beforeunload events
2701         https://bugs.webkit.org/show_bug.cgi?id=139090
2702
2703         Reviewed by Gustavo Noronha Silva.
2704
2705         * MiniBrowser/gtk/BrowserWindow.c:
2706         (browserWindowConstructed):
2707         (browserWindowDeleteEvent):
2708         (browser_window_class_init):
2709         Handle delete-event to prevent the window from being closed when
2710         the page has beforeunload handlers. Use
2711         webkit_web_view_try_close() when the window is requested to be
2712         closed.
2713         * TestWebKitAPI/Tests/WebKit2Gtk/TestUIClient.cpp:
2714         (testWebViewJavaScriptDialogs):
2715         Add a test case for the WEBKIT_SCRIPT_DIALOG_BEFORE_UNLOAD_CONFIRM
2716         script dialog type.
2717
2718 2015-12-09  Mario Sanchez Prada  <mario@endlessm.com>
2719
2720         Refactored initialization code in LoadTrackingTest.
2721
2722         Rubber-stamped by Carlos Garcia Campos.
2723
2724         Small refactoring to make sure that the state of a LoadTrackingTest
2725         gets properly reset before loading new web content.
2726
2727         * TestWebKitAPI/gtk/WebKit2Gtk/LoadTrackingTest.h:
2728         * TestWebKitAPI/gtk/WebKit2Gtk/LoadTrackingTest.cpp:
2729         (LoadTrackingTest::reset): New, refactored code from *load*() and go*()
2730         functions and reset the remaining local variables.
2731         (LoadTrackingTest::loadURI): Call reset();
2732         (LoadTrackingTest::loadHtml): Ditto.
2733         (LoadTrackingTest::loadPlainText): Ditto.
2734         (LoadTrackingTest::loadBytes): Ditto.
2735         (LoadTrackingTest::loadRequest): Ditto.
2736         (LoadTrackingTest::reload): Ditto.
2737         (LoadTrackingTest::goBack): Ditto.
2738         (LoadTrackingTest::goForward): Ditto.
2739
2740 2015-12-09  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
2741
2742         [EFL] REGRESSION(r193616): WKPreferences test has been failed since r193616
2743         https://bugs.webkit.org/show_bug.cgi?id=151942
2744
2745         Reviewed by Darin Adler.
2746
2747         * MiniBrowser/efl/main.c:
2748         (window_create): Enable offline web application cache feature on MiniBrowser.
2749         (elm_main):
2750
2751 2015-12-08  Aakash Jain  <aakash_jain@apple.com>
2752
2753         https://bugs.webkit.org/show_bug.cgi?id=151243
2754         <rdar://problem/22955197>
2755
2756         Reviewed by Alexey Proskuryakov.
2757
2758         * LayoutTestRelay/LayoutTestRelay/main.m:
2759         (getTestingSimDevice): Use separate testing device for each worker.
2760         * Scripts/webkitpy/layout_tests/controllers/manager.py:
2761         (Manager.run): Perform cleanup even if setup fails.
2762         * Scripts/webkitpy/port/ios.py:
2763         (IOSSimulatorPort.default_child_processes): Calculate number of simulators to use.
2764         (IOSSimulatorPort.child_processes): Gets the number of simulators from options variable.
2765         (IOSSimulatorPort.setup_test_run): Handle mulitple simulators.
2766         (IOSSimulatorPort._quit_ios_simulator): Same
2767         (IOSSimulatorPort.clean_up_test_run): Same
2768         (IOSSimulatorPort.check_sys_deps): Same
2769         (IOSSimulatorPort.testing_device): Same
2770         (IOSSimulatorPort.reset_preferences): Same
2771         (IOSSimulatorPort.get_simulator_path): Return simulator path.
2772         (IOSSimulatorPort._createSimulatorApp): Create the copy of simulator app.
2773         * Scripts/webkitpy/xcode/simulator.py:
2774         (Device.delete): Delete the simulator device.
2775         (Simulator.delete_device): Same
2776         (Simulator.wait_until_device_is_booted): Wait for device booting.
2777
2778 2015-12-08  Ryuan Choi  <ryuan.choi@navercorp.com>
2779
2780         [EFL] Add API to provide preferences before creating ewk_view
2781         https://bugs.webkit.org/show_bug.cgi?id=151587
2782
2783         Reviewed by Gyuyoung Kim.
2784
2785         * MiniBrowser/efl/main.c:
2786         (on_key_down):
2787         (quit):
2788         (window_create):
2789         Moved settings related code to configuration() not to update settings
2790         whenever ewk_view is created.
2791         (configuration):
2792         (elm_main):
2793
2794 2015-12-08  Carlos Garcia Campos  <cgarcia@igalia.com>
2795
2796         Unreviewed. Fix GTK+ API tests after r193639.
2797
2798         The new jhbuild version needs some more variables ot be present in
2799         the builtin dict, even if they are set to None.
2800
2801         * jhbuild/jhbuildutils.py:
2802         (enter_jhbuild_environment_if_available):
2803
2804 2015-12-07  Gustavo Noronha Silva  <gns@gnome.org>
2805
2806         [GTK] Notify WebCore when notification is clicked
2807         https://bugs.webkit.org/show_bug.cgi?id=151951
2808
2809         Reviewed by Carlos Garcia Campos.
2810
2811         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebView.cpp:
2812         (testWebViewNotification): test the new API.
2813
2814 2015-12-07  Michael Catanzaro  <mcatanzaro@igalia.com>
2815
2816         'jhbuild build' should fail immediately when building any module fails
2817         https://bugs.webkit.org/show_bug.cgi?id=145697
2818
2819         Reviewed by Carlos Garcia Campos.
2820
2821         * efl/jhbuildrc: Update jhbuildrc to account for the removal of the use_lib64 option.
2822         * gtk/jhbuildrc: Update jhbuildrc to account for the removal of the use_lib64 option.
2823         Everything is placed under lib instead of lib64 now.
2824         * jhbuild/jhbuild-wrapper: Update jhbuild to the latest upstream commit, and pass
2825         --exit-on-error when running 'jhbuild build'.
2826         * jhbuild/jhbuildrc_common.py:
2827         (init): Don't override PKG_CONFIG_PATH, CMAKE_PREFIX_PATH, or CMAKE_LIBRARY_PATH. Modern
2828         jhbuild should be able to handle these for us without breaking things....
2829
2830 2015-12-07  Xabier Rodriguez Calvar  <calvaris@igalia.com>
2831
2832         Add support to import w3c tests from a repository with a different root that the main repo dir
2833         https://bugs.webkit.org/show_bug.cgi?id=151751
2834
2835         Reviewed by Ryosuke Niwa and Youenn Fablet.
2836
2837         We should be able to import tests from repositories that are not pure test repositories and where tests are kept
2838         in a different directory than the repository root.
2839
2840         This patch introduces a new parameter tests_directory that we will use as root directory to search for
2841         tests. All paths will be flattened when copying tests to have a less complicated directory structure. This
2842         requires having the copy_path lists including tuples of origin and destination directories.
2843
2844         * Scripts/webkitpy/w3c/test_downloader.py:
2845         (TestDownloader._add_test_suite_paths): Adds the paths as a tuple of origin and destination directory.
2846         (TestDownloader.copy_tests): Uses the origin and destination tuple for the paths to copy when copying files.
2847         * Scripts/webkitpy/w3c/test_importer_unittest.py:
2848         (TestImporterTest.test_tests_directory): Test.
2849
2850 2015-12-07  Xabier Rodriguez Calvar  <calvaris@igalia.com>
2851
2852         Mock TestRepositories in W3C importer tests
2853         https://bugs.webkit.org/show_bug.cgi?id=151938
2854
2855         Reviewed by Youenn Fablet.
2856
2857         The test importer tests should use a fake repository instead of using the real one. The reason why this happened
2858         is because the test repository method reading the file was using the filesystem directly instead of taking the
2859         host one. This patch changes that.
2860
2861         * Scripts/webkitpy/w3c/test_downloader.py:
2862         (TestDownloader.load_test_repositories): Take a filesystem and use it. If we get no filesystem, we use the
2863         default one.
2864         (TestDownloader.__init__): When loading the repositories, pass the host filesystem.
2865         * Scripts/webkitpy/w3c/test_importer_unittest.py:
2866         (TestImporterTest.test_harnesslinks_conversion):
2867         (TestImporterTest.test_submodules_generation): Use a fake test repository file.
2868
2869 2015-12-07  David Kilzer  <ddkilzer@apple.com>
2870
2871         TestNetscapePlugIn: Address review comment on 193607
2872         <http://webkit.org/b/151881>
2873
2874         * DumpRenderTree/TestNetscapePlugIn/PluginObject.cpp:
2875         (testSetStatus): Initializing std::unique_ptr<char[]> with
2876         nullptr is redundant.
2877
2878 2015-12-07  Carlos Garcia Campos  <cgarcia@igalia.com>
2879
2880         [GTK] Add webkit_uri_request_get_http_method
2881         https://bugs.webkit.org/show_bug.cgi?id=151601
2882
2883         Reviewed by Martin Robinson.
2884
2885         Add test case to check HTTP method of WebKitURIRequest.
2886
2887         * TestWebKitAPI/Tests/WebKit2Gtk/TestLoaderClient.cpp:
2888         (testURIRequestHTTPMethod):
2889         (serverCallback):
2890         (beforeAll):
2891         * TestWebKitAPI/Tests/WebKit2Gtk/WebExtensionTest.cpp:
2892         (sendRequestCallback):
2893
2894 2015-12-07  Carlos Garcia Campos  <cgarcia@igalia.com>
2895
2896         [GTK] Add WebKitWebPage::console-message-sent signal to Web Extensions API
2897         https://bugs.webkit.org/show_bug.cgi?id=79918
2898
2899         Reviewed by Gustavo Noronha Silva.
2900
2901         Add unit tests to check the different console messages.
2902
2903         * TestWebKitAPI/Tests/WebKit2Gtk/CMakeLists.txt:
2904         * TestWebKitAPI/Tests/WebKit2Gtk/TestConsoleMessage.cpp: Added.
2905         (ConsoleMessageTest::ConsoleMessage::operator==):
2906         (ConsoleMessageTest::consoleMessageReceivedCallback):
2907         (ConsoleMessageTest::ConsoleMessageTest):
2908         (ConsoleMessageTest::~ConsoleMessageTest):
2909         (ConsoleMessageTest::waitUntilConsoleMessageReceived):
2910         (testWebKitConsoleMessageConsoleAPI):
2911         (testWebKitConsoleMessageJavaScriptException):
2912         (testWebKitConsoleMessageNetworkError):
2913         (testWebKitConsoleMessageSecurityError):
2914         (beforeAll):
2915         (afterAll):
2916         * TestWebKitAPI/Tests/WebKit2Gtk/WebExtensionTest.cpp:
2917         (consoleMessageSentCallback):
2918         (pageCreatedCallback):
2919
2920 2015-12-07  Ryuan Choi  <ryuan.choi@navercorp.com>
2921
2922         [EFL] MiniBrowser doesn't exit when called ewk_view_try_close()
2923         https://bugs.webkit.org/show_bug.cgi?id=151934
2924
2925         Reviewed by Csaba Osztrogonác.
2926
2927         * MiniBrowser/efl/main.c:
2928         (on_window_deletion): Revert the changes of r192767.
2929
2930 2015-12-07  Michael Catanzaro  <mcatanzaro@igalia.com>
2931
2932         [GTK] update-webkitgtk-libs cannot build mesa
2933         https://bugs.webkit.org/show_bug.cgi?id=151535
2934
2935         Reviewed by Martin Robinson.
2936
2937         Upgrade to newer mesa in order to build successfully against LLVM 3.7. Add missing
2938         dependency of mesa on LLVM, to ensure LLVM is built first. Build LLVM unconditionally, even
2939         on architectures where FTL is not supported, to ensure mesa is always buildable, since LLVM
2940         does not have a stable API and we cannot expect mesa to be buildable unless we control the
2941         LLVM version. Build mesa with --disable-egl since --enable-egl conflicts with
2942         --enable-xlib-glx. This fixes update-webkitgtk-libs on distros with LLVM 3.7.
2943
2944         * gtk/jhbuild.modules:
2945
2946 2015-12-07  Philippe Normand  <pnormand@igalia.com>
2947
2948         [GTK][Mac] libWebExtensionTest link error
2949         https://bugs.webkit.org/show_bug.cgi?id=150802
2950
2951         Reviewed by Carlos Garcia Campos.
2952
2953         * TestWebKitAPI/Tests/WebKit2Gtk/CMakeLists.txt: add dependencies to the webextension library.
2954
2955 2015-12-06  David Kilzer  <ddkilzer@apple.com>
2956
2957         TestNetscapePlugIn: Fix leaks found by static analyzer
2958         <http://webkit.org/b/151881>
2959
2960         Reviewed by Darin Adler.
2961
2962         Fixes the following leaks found by the static analyzer:
2963             DumpRenderTree/TestNetscapePlugIn/PluginObject.cpp:808:16: warning: Potential leak of memory pointed to by 'path'
2964                     return false;
2965                            ^~~~~
2966             DumpRenderTree/TestNetscapePlugIn/PluginObject.cpp:808:16: warning: Potential leak of memory pointed to by 'target'
2967                     return false;
2968                            ^~~~~
2969             DumpRenderTree/TestNetscapePlugIn/PluginObject.cpp:808:16: warning: Potential leak of memory pointed to by 'url'
2970                     return false;
2971                            ^~~~~
2972
2973         * DumpRenderTree/TestNetscapePlugIn/PluginObject.cpp:
2974         (toCString): Switch to returning std::unique_ptr<char[]>.  Add
2975         early return if allocation fails.
2976         (testPostURLFile): Switch to using std::unique_ptr<char[]>.
2977         Make sure to call fclose() on filehandle, even for an early
2978         return.
2979         (testSetStatus): Switch to using std::unique_ptr<char[]>.
2980
2981 2015-12-05  David Kilzer  <ddkilzer@apple.com>
2982
2983         prepare-ChangeLog: Fix some warning messages when using svn
2984         <http://webkit.org/b/151914>
2985
2986         Reviewed by Daniel Bates.
2987
2988         * Scripts/prepare-ChangeLog:
2989         (generateFunctionLists): Simplify logic so that we never call
2990         normalizePath() with an undefined value.
2991         (attributeCommand): Quote $subPath for the shell so that we
2992         don't try to run "svn propget" on invalid paths.
2993
2994 2015-12-04  David Kilzer  <ddkilzer@apple.com>
2995
2996         TestNetscapePlugIn: Fix remaining static analyzer warnings
2997         <http://webkit.org/b/151888>
2998
2999         Reviewed by Alexey Proskuryakov.
3000
3001         Fixes the following static analyzer warnings:
3002             Tools/DumpRenderTree/TestNetscapePlugIn/main.cpp:101:9: warning: Called function pointer is null (null dereference)
3003                     CRASH();
3004                     ^~~~~~~
3005             Tools/DumpRenderTree/TestNetscapePlugIn/main.cpp:46:5: note: expanded from macro 'CRASH'
3006                 ((void(*)())0)(); /* More reliable, but doesn't say BBADBEEF */ \
3007                 ^~~~~~~~~~~~~~~~
3008             Tools/DumpRenderTree/TestNetscapePlugIn/main.cpp:375:12: warning: Access to field 'pluginTest' results in a dereference of a null pointer (loaded from variable 'obj')
3009                 return obj->pluginTest->NPP_SetWindow(window);
3010                        ^~~~~~~~~~~~~~~
3011             2 warnings generated.
3012
3013         * DumpRenderTree/TestNetscapePlugIn/main.cpp:
3014         (CRASH): Use __builtin_trap() for gcc/clang.
3015         (NPP_SetWindow): Add early return if obj is nullptr.
3016
3017 2015-12-03  Carlos Garcia Campos  <cgarcia@igalia.com>
3018
3019         [GTK] Test /webkit2/WebKitWebResource/get-data is flaky
3020         https://bugs.webkit.org/show_bug.cgi?id=151797
3021
3022         Reviewed by Martin Robinson.
3023
3024         Since we switched to use the network process to run the unit tests
3025         the test /webkit2/WebKitWebResource/get-data sometimes fails and
3026         sometimes passes. We are now also getting the notification for the
3027         css image. Since we wait for 3 resources, sometimes the css image
3028         is loaded before and then checkResourceData is called for it, but
3029         not handled. When the css image is the last one loaded the test
3030         passes. So, we just need to wait for the 4 resources.
3031
3032         * TestWebKitAPI/Tests/WebKit2Gtk/TestResources.cpp:
3033         (testWebResourceGetData):
3034
3035 2015-12-03  David Kilzer  <ddkilzer@apple.com>
3036
3037         DumpRenderTree: Use-after-free in createBitmapContext() in PixelDumpSupportMac.mm
3038         <http://webkit.org/b/151845>
3039
3040         Reviewed by Simon Fraser.
3041
3042         Fixes the following static analyzer warning:
3043             DumpRenderTree/mac/PixelDumpSupportMac.mm:67:9: warning: Use of memory after it is freed
3044                     WTFLogAlways("DumpRenderTree: CGBitmapContextCreate(%p, %llu, %llu, 8, %llu, %p, 0x%x) failed\n", buffer, pixelsHigh, pixelsWide, rowBytes, colorSpace.get(), kCGImageAlphaPremultipliedFirst | kCGBitmapByteOrder32Host);
3045                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3046
3047         * DumpRenderTree/mac/PixelDumpSupportMac.mm:
3048         (createBitmapContext): Free 'buffer' after using it in logging
3049         to fix the use-after-free.  Assign a value of nullptr to buffer
3050         so we don't return with it set to a freed address.
3051
3052 2015-12-03  Jer Noble  <jer.noble@apple.com>
3053
3054         Expose WebCore's InvisibleAutoplayNotPermitted setting to WebKit & WebKit2
3055         https://bugs.webkit.org/show_bug.cgi?id=151830
3056
3057         Reviewed by Anders Carlsson.
3058
3059         Set invisibleAutoplayNotPermitted to NO by default both in WKTR and DRT.
3060
3061         * DumpRenderTree/mac/DumpRenderTree.mm:
3062         (resetWebPreferencesToConsistentValues):
3063         * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
3064         (WTR::initializeWebViewConfiguration):
3065
3066 2015-12-03  Anders Carlsson  <andersca@apple.com>
3067
3068         Remove Objective-C GC support
3069         https://bugs.webkit.org/show_bug.cgi?id=151819
3070         rdar://problem/23746991
3071
3072         Reviewed by Dan Bernstein.
3073
3074         * asan/asan.xcconfig:
3075
3076 2015-12-02  Yusuke Suzuki  <utatane.tea@gmail.com>
3077
3078         Allow nil for unspecified benchmark pathes
3079         https://bugs.webkit.org/show_bug.cgi?id=151784
3080
3081         Reviewed by Filip Pizlo.
3082
3083         `Pathname.new(nil)` will raise an error.
3084         Only generate Pathname if the benchmark path is specified.
3085
3086         * Scripts/run-jsc-benchmarks:
3087
3088 2015-12-02  Brent Fulgham  <bfulgham@apple.com>
3089
3090         [Win] Run non-http tests without Cygwin
3091         https://bugs.webkit.org/show_bug.cgi?id=151721
3092
3093         Reviewed by Andy Estes.
3094
3095         Support native 32-bit and 64-bit Python (and Perl) builds
3096         for running tests:
3097
3098         1. Use "startswith('win')", rather than "== 'win32'" to support
3099         various Windows build types.
3100         2. Supply full path for some native Windows utilities, since the
3101         path environment does not always have the specified, and they are
3102         guaranteed to exist in those specific locations.
3103         3. Make sure native Windows Python test runs pass proper environment
3104         variables to run programs.
3105         4. Append 'exe' suffix when running Windows executables.
3106         5. Use the _winreg Python module on Windows, since the Cygwin 'regtool'
3107         command doesn't exist.
3108         
3109         * Scripts/update-webkit: Use Perl $^X command to refer to the path of
3110         the current Perl executable, rather than requiring a new path search.
3111         * Scripts/webkitpy/common/find_files_unittest.py:
3112         (TestWinNormalize.test_win): Use startswith('win').
3113         * Scripts/webkitpy/common/prettypatch_unittest.py:
3114         (test_pretty_diff_encodings): Ditto.
3115         * Scripts/webkitpy/common/system/executive.py:
3116         (Executive._should_close_fds): Ditto.
3117         (Executive.shell_command_for_script): Use startswith('win').
3118         (Executive.kill_process): Use full path to killall executable.
3119         (Executive.check_running_pid): Use startswith('win').
3120         (Executive.running_pids): Ditto.
3121         (Executive.kill_all): Ditto. Also use path to 'killall' executable when
3122         running under native Windows Python.
3123         (Executive._child_process_encoding): Use startswith('win').
3124         (Executive._should_encode_child_process_arguments): Ditto.
3125         (Executive.popen): Recognize proper script engine on Windows, since it
3126         does not support the shebang syntax.
3127         (Executive.run_in_parallel): Use startswith('win').
3128         * Scripts/webkitpy/common/system/executive_unittest.py:
3129         (never_ending_command): Ditto.
3130         (ExecutiveTest.test_run_command_with_unicode): Ditto.
3131         (ExecutiveTest.serial_test_kill_process): Ditto.
3132         (ExecutiveTest.serial_test_kill_all): Ditto.
3133         (ExecutiveTest.serial_test_check_running_pid): Ditto.
3134         (ExecutiveTest.serial_test_run_in_parallel): Ditto.
3135         (main): Ditto.
3136         * Scripts/webkitpy/common/system/file_lock.py:
3137         (FileLock._create_lock): Ditto.
3138         (FileLock._remove_lock): Ditto.
3139         * Scripts/webkitpy/common/system/filesystem_unittest.py:
3140         (RealFileSystemTest.test_chdir): Ditto.
3141         (RealFileSystemTest.test_chdir__notexists): Ditto.
3142         (RealFileSystemTest.test_maybe_make_directory__failure): Ditto.
3143         * Scripts/webkitpy/common/system/path_unittest.py:
3144         (AbspathTest.test_abspath_to_uri_win): Ditto.
3145         * Scripts/webkitpy/common/system/platforminfo.py:
3146         (PlatformInfo._determine_os_name): Ditto.
3147         * Scripts/webkitpy/common/system/user.py: Ditto.
3148         * Scripts/webkitpy/layout_tests/controllers/manager_unittest.py:
3149         (ManagerTest.integration_test_needs_servers): Ditto.
3150         * Scripts/webkitpy/layout_tests/servers/apache_http_server.py:
3151         (LayoutTestApacheHttpd.__init__): Handle upper and lower-case
3152         driver letters.
3153         (LayoutTestApacheHttpd._get_apache_config_file_path): Ditto.
3154         * Scripts/webkitpy/layout_tests/servers/apache_http_server_unittest.py:
3155         (TestLayoutTestApacheHttpd.test_start_cmd): Ditto.
3156         * Scripts/webkitpy/layout_tests/servers/http_server_base.py:
3157         (HttpServerBase._check_that_all_ports_are_available): Ditto.
3158         * Scripts/webkitpy/layout_tests/servers/http_server_unittest.py:
3159         (TestHttpServer.test_start_cmd): Ditto.
3160         * Scripts/webkitpy/port/base.py:
3161         (Port.to.setup_environ_for_server): Include 'COMSPEC', 'SYSTEMDRIVE',
3162         and 'SYSTEMROOT' in environment passed to test runners.
3163         (Port._apache_config_file_name_for_platform): Use startswith('win').
3164         (Port._build_path): Ditto.
3165         (Port._path_to_driver): Include 'exe' suffix when running under native
3166         Windows.
3167         * Scripts/webkitpy/port/driver.py:
3168         (Driver._setup_environ_for_driver): Explicitly make some environment
3169         variables strings.
3170         * Scripts/webkitpy/port/server_process.py:
3171         (ServerProcess.__init__): Use startswith('win').
3172         * Scripts/webkitpy/port/win.py:
3173         (WinPort): Use the win32 registry utilities on Windows, and appropriate
3174         registry key formats.
3175         (WinPort._ntsd_location): Revise tool search paths for Windows 10.
3176         (WinPort.read_registry_value): Revise to use _winreg library on Windows,
3177         and regtool on Cygwin.
3178         (WinPort.write_registry_value): Ditto.
3179         (WinPort.setup_crash_log_saving): Ditto.
3180         (WinPort.restore_crash_log_saving): Ditto.
3181         (WinPort.prevent_error_dialogs): Ditto.
3182         (WinPort.allow_error_dialogs): Ditto.
3183         (WinPort.find_system_pid): Revise to use Windows management
3184         infrastructure on native Windows, continue using 'ps' on Cygwin.
3185         (WinPort.read_registry_string): Deleted.
3186         (WinPort.write_registry_string): Deleted.
3187         * Scripts/webkitpy/test/main.py:
3188         (main): Use startswith('win').
3189         (Tester._parse_args): Ditto.
3190
3191 2015-12-01  Yusuke Suzuki  <utatane.tea@gmail.com>
3192
3193         [ES6] Implement LLInt/Baseline Support for ES6 Generators and enable this feature
3194         https://bugs.webkit.org/show_bug.cgi?id=150792
3195
3196         Reviewed by Saam Barati.
3197
3198         * Scripts/webkitperl/FeatureList.pm:
3199
3200 2015-12-01  Commit Queue  <commit-queue@webkit.org>
3201
3202         Unreviewed, rolling out r192914.
3203         https://bugs.webkit.org/show_bug.cgi?id=151734
3204
3205         JSC tests for this change are failing on 32 and 64-bit bots
3206         (Requested by ryanhaddad on #webkit).
3207
3208         Reverted changeset:
3209
3210         "[ES6] Implement LLInt/Baseline Support for ES6 Generators and
3211         enable this feature"
3212         https://bugs.webkit.org/show_bug.cgi?id=150792
3213         http://trac.webkit.org/changeset/192914
3214
3215 2015-12-01  David Kilzer  <ddkilzer@apple.com>
3216
3217         EventSenderProxy::swipeGestureWithWheelAndMomentumPhases() leaks an EventSenderSyntheticEvent
3218         <http://webkit.org/b/151726>
3219
3220         Reviewed by Simon Fraser.
3221
3222         * WebKitTestRunner/mac/EventSenderProxy.mm:
3223         (WTR::EventSenderProxy::swipeGestureWithWheelAndMomentumPhases):
3224         Deploy RetainPtr<EventSenderSyntheticEvent> to fix leak.
3225
3226 2015-12-01  Myles C. Maxfield  <mmaxfield@apple.com>
3227
3228         Give String and AtomicString an existingHash() function
3229         https://bugs.webkit.org/show_bug.cgi?id=151717
3230
3231         Reviewed by Andreas Kling.
3232
3233         * TestWebKitAPI/Tests/WTF/AtomicString.cpp:
3234         (TestWebKitAPI::TEST):
3235         * TestWebKitAPI/Tests/WTF/WTFString.cpp:
3236         (TestWebKitAPI::TEST):
3237
3238 2015-12-01  Yusuke Suzuki  <utatane.tea@gmail.com>
3239
3240         [ES6] Implement LLInt/Baseline Support for ES6 Generators and enable this feature
3241         https://bugs.webkit.org/show_bug.cgi?id=150792
3242
3243         Reviewed by Saam Barati.
3244
3245         * Scripts/webkitperl/FeatureList.pm:
3246
3247 2015-12-01  Sam Weinig  <sam@webkit.org>
3248
3249         Need completionHandler-based WebKit C SPI for alert, confirm, and prompt
3250         <rdar://problem/23320863>
3251         https://bugs.webkit.org/show_bug.cgi?id=151708
3252
3253         Reviewed by Anders Carlsson.
3254
3255         * WebKitTestRunner/TestController.cpp:
3256         (WTR::TestController::createOtherPage):
3257         (WTR::TestController::createWebViewWithOptions):
3258         Update for new WKPageUIClient.
3259
3260 2015-12-01  Anders Carlsson  <andersca@apple.com>
3261
3262         Remove WebKit2.framework
3263         https://bugs.webkit.org/show_bug.cgi?id=151715
3264
3265         Reviewed by Dan Bernstein.
3266
3267         * TestWebKitAPI/Tests/WebKit2/StopLoadingDuringDidFailProvisionalLoad.cpp:
3268         * TestWebKitAPI/Tests/WebKit2/StopLoadingDuringDidFailProvisionalLoad_bundle.cpp:
3269         * TestWebKitAPI/Tests/WebKit2ObjC/CustomProtocolsInvalidScheme.mm:
3270         * TestWebKitAPI/Tests/WebKit2ObjC/CustomProtocolsTest.mm:
3271         * TestWebKitAPI/Tests/WebKit2ObjC/PreventImageLoadWithAutoResizing.mm:
3272         * TestWebKitAPI/Tests/WebKit2ObjC/UserContentTest.mm:
3273         * TestWebKitAPI/mac/TestBrowsingContextLoadDelegate.h:
3274
3275 2015-12-01  Joseph Pecoraro  <pecoraro@apple.com>
3276
3277         Unreviewed common typo fix "occurance" => "occurrence".
3278
3279         * Scripts/webkitpy/tool/commands/queries.py:
3280         (FindFlakyTests._print_statistics):
3281
3282 2015-11-30  Alex Christensen  <achristensen@webkit.org>
3283
3284         Make ProcessModel always MultipleSecondaryProcesses
3285         https://bugs.webkit.org/show_bug.cgi?id=151662
3286
3287         Reviewed by Antti Koivisto.
3288
3289         * TestWebKitAPI/Tests/WebKit2/Geolocation.cpp:
3290         (TestWebKitAPI::TEST):
3291         * WebKitTestRunner/TestController.cpp:
3292         (WTR::TestController::generatePageConfiguration):
3293
3294 2015-11-30  Alex Christensen  <achristensen@webkit.org>
3295
3296         Make usesNetworkProcess always true
3297         https://bugs.webkit.org/show_bug.cgi?id=151580
3298
3299         Reviewed by Darin Adler.
3300
3301         * TestWebKitAPI/Tests/WebKit2/Geolocation.cpp:
3302         (TestWebKitAPI::TEST):
3303         * TestWebKitAPI/Tests/WebKit2/mac/GetPIDAfterAbortedProcessLaunch.cpp:
3304         (TestWebKitAPI::TEST):
3305         * WebKitTestRunner/TestController.cpp:
3306         (WTR::TestController::generatePageConfiguration):
3307
3308 2015-11-30  Carlos Garcia Campos  <cgarcia@igalia.com>
3309
3310         Unreviewed. Skip GTK+ test /webkit2/WebKitWebView/editable/editable in Debug.
3311
3312         Add a way to skip unit tests only for Debug or Release builds and
3313         skipt the test /webkit2/WebKitWebView/editable/editable only for Debug.
3314
3315         * Scripts/run-gtk-tests:
3316         (SkippedTest):
3317         (SkippedTest.__init__):
3318         (SkippedTest.__str__):
3319         (SkippedTest.skip_entire_suite):
3320         (SkippedTest.skip_for_build_type):
3321         (TestRunner):
3322         (TestRunner.__init__):
3323
3324 2015-11-30  Carlos Garcia Campos  <cgarcia@igalia.com>
3325
3326         Unreviewed. Fix a crash in GTK+ test /webkit2/WebKitWebView/custom-charset.
3327
3328         It's an assert hit because we are reloading a view loaded with
3329         HTML data which is not supported. Use loadURI instead.
3330
3331         * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebView.cpp:
3332         (testWebViewCustomCharset):
3333
3334 2015-11-30  Carlos Garcia Campos  <cgarcia@igalia.com>
3335
3336         [GLIB] Remove GMainLoopSource and GThreadSafeMainLoopSource
3337         https://bugs.webkit.org/show_bug.cgi?id=151633
3338
3339         Reviewed by Csaba Osztrogonác.
3340
3341         * TestWebKitAPI/PlatformGTK.cmake:
3342         * TestWebKitAPI/Tests/WTF/glib/GMainLoopSource.cpp: Removed.
3343
3344 2015-11-27  Carlos Garcia Campos  <cgarcia@igalia.com>
3345
3346         [GTK] Remove the remaining uses of GMainLoopSource
3347         https://bugs.webkit.org/show_bug.cgi?id=151632
3348
3349         Reviewed by Žan Doberšek.
3350
3351         * TestWebKitAPI/Tests/WebKit2Gtk/TestResources.cpp:
3352         (testWebViewSyncRequestOnMaxConns):
3353         * TestWebKitAPI/gtk/WebKit2Gtk/WebViewTest.cpp:
3354         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
3355         (WTR::TestRunner::TestRunner):
3356         * WebKitTestRunner/InjectedBundle/TestRunner.h:
3357         * WebKitTestRunner/InjectedBundle/gtk/TestRunnerGtk.cpp:
3358         (WTR::TestRunner::invalidateWaitToDumpWatchdogTimer):
3359         (WTR::TestRunner::initializeWaitToDumpWatchdogTimerIfNeeded):
3360         * WebKitTestRunner/gtk/TestControllerGtk.cpp:
3361         (WTR::timeoutSource):
3362         (WTR::TestController::notifyDone):
3363         (WTR::TestController::platformRunUntil):
3364
3365 2015-11-27  Csaba Osztrogonác  <ossy@webkit.org>
3366
3367         [cmake] Add testb3 to the build system
3368         https://bugs.webkit.org/show_bug.cgi?id=151619
3369
3370         Reviewed by Gyuyoung Kim.
3371
3372         * Scripts/build-jsc:
3373
3374 2015-11-27  Csaba Osztrogonác  <ossy@webkit.org>
3375
3376         [jhbuild] Fix pixman build with clang
3377         https://bugs.webkit.org/show_bug.cgi?id=151441
3378
3379         Reviewed by Carlos Garcia Campos.
3380
3381         * efl/jhbuild.modules:
3382         * gtk/jhbuild.modules:
3383
3384 2015-11-26  David Kilzer  <ddkilzer@apple.com>
3385
3386         Extract prependToEnvironmentVariableList
3387         <http://webkit.org/b/151536>
3388
3389         Reviewed by Daniel Bates.
3390
3391         Tests: webkitdirs_unittest/appendToEnvironmentVariableList.pl
3392                webkitdirs_unittest/prependToEnvironmentVariableList.pl
3393
3394         * Scripts/webkitdirs.pm: Export appendToEnvironmentVariableList
3395         and prependToEnvironmentVariableList.
3396         (appendToEnvironmentVariableList): Simplify variable name.
3397         Switch to use $Config{path_sep}.
3398         (prependToEnvironmentVariableList): Add new method.
3399         (setupMacWebKitEnvironment): Switch to use
3400         prependToEnvironmentVariableList().
3401         (setupIOSWebKitEnvironment): Ditto.
3402
3403         * Scripts/webkitperl/webkitdirs_unittest/appendToEnvironmentVariableList.pl: Added.
3404         * Scripts/webkitperl/webkitdirs_unittest/prependToEnvironmentVariableList.pl: Added.
3405
3406 2015-11-24  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
3407
3408         REGRESSION(r192053): MiniBrowser doesn't exit when clicking on the close-window button
3409         https://bugs.webkit.org/show_bug.cgi?id=151567
3410
3411         Reviewed by Darin Adler.
3412
3413         * MiniBrowser/efl/main.c: Call window_close() instead of ewk_view_try_close().
3414         (on_window_deletion):
3415
3416 2015-11-23  Carlos Garcia Campos  <cgarcia@igalia.com>
3417
3418         [GTK] Use the network process unconditionally
3419         https://bugs.webkit.org/show_bug.cgi?id=151541
3420
3421         Reviewed by Alex Christensen.
3422
3423         Fix TestInspectorServer test. Do not assume we already have the
3424         title we want when the page has been loaded, since the title is
3425         changed afterwards. So, check if the title has already been set,
3426         and if not wait for it.
3427
3428         * TestWebKitAPI/Tests/WebKit2Gtk/TestInspectorServer.cpp:
3429         (openRemoteDebuggingSession):
3430
3431 2015-11-23  Alex Christensen  <achristensen@webkit.org>
3432
3433         Fix crash in ~WebProcessPool when using Geolocation with useNetworkProcess=true
3434         https://bugs.webkit.org/show_bug.cgi?id=151532
3435
3436         Reviewed by Benjamin Poulain.
3437
3438         * TestWebKitAPI/Tests/WebKit2/Geolocation.cpp:
3439         (TestWebKitAPI::GeolocationTransitionToHighAccuracyStateTracker::eventsChanged):
3440         (TestWebKitAPI::TEST):
3441         (TestWebKitAPI::GeolocationTransitionToLowAccuracyStateTracker::eventsChanged):
3442         (TestWebKitAPI::GeolocationTransitionToHighAccuracyStateTracker::GeolocationTransitionToHighAccuracyStateTracker): Deleted.
3443         (TestWebKitAPI::GeolocationTransitionToLowAccuracyStateTracker::GeolocationTransitionToLowAccuracyStateTracker): Deleted.
3444         Properly load about:blank in all WebViews to clean up.  Without this change, we had a 
3445         Geolocation provider stopping after its state tracker was destroyed with its stack frame,
3446         so it was calling a function on a test object that had gone out of scope.
3447         Also, call WKContextSetUsesNetworkProcess(context, true) to show what crash this fixed,
3448         but that will become the default soon and that call will be removed.
3449
3450 2015-11-22  David Kilzer  <ddkilzer@apple.com>
3451
3452         run-webkit-tests: http server for imported W3C tests doesn't work with --layout-tests-directory switch
3453         <http://webkit.org/b/151542>
3454
3455         Reviewed by Daniel Bates.
3456
3457         * Scripts/webkitpy/layout_tests/servers/web_platform_test_server.py:
3458         (base_url): Use the Port object (already passed in) to give us
3459         the path to the LayoutTests directory, which already checks for a
3460         --layout-tests-directory command-line switch.
3461         (WebPlatformTestServer.__init__): Remove layout_test_results_dir
3462         argument since we can get this from the Port object already
3463         passed in via Port.results_directory().  Also switch to use
3464         Port.layout_tests_dir() to get the LayoutTests directory.
3465
3466         * Scripts/webkitpy/layout_tests/servers/web_platform_test_server_unittest.py:
3467         (TestWebPlatformTestServer.test_custom_layout_tests_directory):
3468         Add test case for custom LayoutTests directory.
3469         (TestWebPlatformTestServer.test_previously_spawned_instance):
3470         Update Port object to set mock results directory as if it was
3471         set on the command-line.  Remove unneeded argument from
3472         WebPlatformTestServer constructor.
3473         (TestWebPlatformTestServer.test_corrupted_subserver_files): Ditto.
3474
3475         * Scripts/webkitpy/port/base.py:
3476         (Port.to.start_web_platform_test_server): Remove unneeded
3477         argument from WebPlatformTestServer constuctor.
3478
3479 2015-11-22  Carlos Garcia Campos  <cgarcia@igalia.com>
3480
3481         [GTK] Some unit tests fail when using the network process
3482         https://bugs.webkit.org/show_bug.cgi?id=151490
3483
3484         Reviewed by Martin Robinson.
3485
3486         Run the soup server in a separate thread in TestResources test to
3487         avoid deadlocks.
3488
3489         This fixes /webkit2/WebKitWebView/sync-request-on-max-conns and
3490         /webkit2/WebKitWebResource/get-data when using the network process.
3491
3492         * TestWebKitAPI/Tests/WebKit2Gtk/TestResources.cpp:
3493         (beforeAll): Create the WebKitTestServer with ServerRunInThread flag.
3494         * TestWebKitAPI/gtk/WebKit2Gtk/WebKitTestServer.cpp:
3495         (WebKitTestServer::WebKitTestServer): When ServerRunInThread is
3496         present, create a WorkQueue to run the server.
3497         (WebKitTestServer::run): Run the server in the work queue if it
3498         has been created.
3499         * TestWebKitAPI/gtk/WebKit2Gtk/WebKitTestServer.h: Convert server
3500         type into server options as flags.
3501
3502 2015-11-22  Carlos Garcia Campos  <cgarcia@igalia.com>
3503
3504         [GTK] ImageDiff should normalize the diff image
3505         https://bugs.webkit.org/show_bug.cgi?id=151261
3506
3507         Reviewed by Sergio Villar Senin.
3508
3509         * ImageDiff/gtk/ImageDiff.cpp:
3510         (readPixbufFromStdin): Fix memory leak.
3511         (differenceImageFromDifferenceBuffer): Normalize diff buffer.
3512         (calculateDifference): Pass max distance to differenceImageFromDifferenceBuffer.
3513
3514 == Rolled over to ChangeLog-2015-11-21 ==