WebKit/mac/ChangeLog
changeset 0 4f2f89ce4247
child 2 303757a437d3
equal deleted inserted replaced
-1:000000000000 0:4f2f89ce4247
       
     1 2010-07-21  Brady Eidson  <beidson@apple.com>
       
     2 
       
     3         Reviewed by Geoffrey Garen.
       
     4 
       
     5         Break out "scheme registration" functionality from SecurityOrigin to a SchemeRegistry
       
     6         https://bugs.webkit.org/show_bug.cgi?id=42783
       
     7 
       
     8         * WebView/WebView.mm:
       
     9         (+[WebView _registerURLSchemeAsSecure:]):
       
    10         (+[WebView registerURLSchemeAsLocal:]):
       
    11 
       
    12 2010-07-21  Simon Fraser  <simon.fraser@apple.com>
       
    13 
       
    14         Reviewed by Anders Carlsson.
       
    15 
       
    16         Composited layers don't scroll in WebKit2
       
    17         https://bugs.webkit.org/show_bug.cgi?id=42771
       
    18 
       
    19         Prep work: FrameView::scrollPositionChanged() sounds like a generic "did scroll" bottleneck,
       
    20         but this is deceiving. It's only every called on one platform (Mac) when the NSScrollView gets
       
    21         scrolled, so rename it to FrameView::scrollPositionChangedViaPlatformWidget().
       
    22 
       
    23         * WebView/WebHTMLView.mm:
       
    24         (-[WebHTMLView _frameOrBoundsChanged]):
       
    25 
       
    26 2010-07-21  Eric Carlson  <eric.carlson@apple.com>
       
    27 
       
    28         Reviewed by Simon Fraser.
       
    29 
       
    30         Update plug-in proxy backed <video> and <audio> elements.
       
    31         https://bugs.webkit.org/show_bug.cgi?id=42770
       
    32         <rdar://problem/7963467>
       
    33 
       
    34         * Plugins/WebPluginController.h:
       
    35         * Plugins/WebPluginController.mm:
       
    36         (-[WebPluginController dealloc]): Release _viewsNotInDocument.
       
    37         (-[WebPluginController stopAllPlugins]): Stop plug-ins not in the document.
       
    38         (-[WebPluginController pluginViewCreated:]): New, add a View (plug-in) to _viewsNotInDocument.
       
    39         (+[WebPluginController pluginViewHidden:]): New, remove the view (plug-in) from pluginViews.
       
    40         (-[WebPluginController addPlugin:]): Remove the new plug-in from _viewsNotInDocument.
       
    41 
       
    42         * WebCoreSupport/WebFrameLoaderClient.h:
       
    43         * WebCoreSupport/WebFrameLoaderClient.mm:
       
    44         (WebFrameLoaderClient::createPlugin): Remove PLUGIN_PROXY_FOR_VIDEO code, the media
       
    45         player proxy plug-in should never be allocated by this method.
       
    46         (WebFrameLoaderClient::createMediaPlayerProxyPlugin): New, allocate a media player proxy.
       
    47 
       
    48         * WebView/WebView.mm:
       
    49         (-[WebView _videoProxyPluginForMIMEType:]): New. Identical to _pluginForMIMEType except it doesn't
       
    50         consider the arePlugInsEnabled preference.
       
    51         * WebView/WebViewInternal.h:
       
    52 
       
    53 
       
    54 2010-07-19  Chris Marrin  <cmarrin@apple.com>
       
    55 
       
    56         Reviewed by Darin Adler.
       
    57 
       
    58         https://bugs.webkit.org/show_bug.cgi?id=42118
       
    59         Disable WebGL on Leopard for now. 
       
    60 
       
    61         LayoutTests fail on some graphics hardware on Leopard because one of the features we use,
       
    62         GL_ARB_framebuffer_object, is not universally available in Leopard like it is in
       
    63         SnowLeopard. This will allow LayoutTests to pass on Leopard until we add logic to use a
       
    64         software OpenGL driver on machines without this support.
       
    65 
       
    66         * Configurations/FeatureDefines.xcconfig:
       
    67 
       
    68 2010-07-18  Anders Carlsson  <andersca@apple.com>
       
    69 
       
    70         Reviewed by Sam Weinig.
       
    71 
       
    72         Move PluginWidget to WebKit
       
    73         https://bugs.webkit.org/show_bug.cgi?id=42530
       
    74 
       
    75         * Plugins/WebBaseNetscapePluginView.h:
       
    76         * Plugins/WebBaseNetscapePluginView.mm:
       
    77         (-[WebBaseNetscapePluginView pluginLayer]):
       
    78         Add default pluginLayer implementation.
       
    79 
       
    80         * WebCoreSupport/WebFrameLoaderClient.mm:
       
    81         (PluginWidget::PluginWidget):
       
    82         (PluginWidget::invalidateRect):
       
    83         Move the guts of PluginWidget here from WebCore.
       
    84         
       
    85         (NetscapePluginWidget::platformLayer):
       
    86         Get the layer from the plug-in view.
       
    87 
       
    88 2010-07-18  David Kilzer  <ddkilzer@apple.com>
       
    89 
       
    90         <http://webkit.org/b/42522> Add missing (id) return type to Obj-C methods
       
    91 
       
    92         Reviewed by Dan Bernstein.
       
    93 
       
    94         * Carbon/CarbonWindowAdapter.mm:
       
    95         (-[NSWindow(HIWebFrameView) _initContent:styleMask:backing:defer:contentView:]):
       
    96         (-[CarbonWindowAdapter _destroyRealWindow:]):
       
    97         (-[CarbonWindowAdapter _clearModalWindowLevel]):
       
    98         * Misc/WebIconDatabase.mm:
       
    99         (-[WebIconDatabase init]):
       
   100         * Misc/WebNSPasteboardExtras.mm:
       
   101         (-[NSFilePromiseDragSource initWithSource:]):
       
   102         * WebView/WebHTMLRepresentation.mm:
       
   103         (-[WebHTMLRepresentation init]):
       
   104         * WebView/WebPreferences.mm:
       
   105         (-[WebPreferences init]):
       
   106         * WebView/WebView.mm:
       
   107         (-[WebView UIDelegate]):
       
   108         (-[WebView resourceLoadDelegate]):
       
   109         (-[WebView downloadDelegate]):
       
   110         (-[WebView policyDelegate]):
       
   111         (-[WebView frameLoadDelegate]):
       
   112 
       
   113 2010-07-16  Zhe Su  <suzhe@chromium.org>
       
   114 
       
   115         Reviewed by Darin Adler.
       
   116 
       
   117         REGRESSION(r61484): Broke focus behaviour on Qt and probably other platforms
       
   118         https://bugs.webkit.org/show_bug.cgi?id=42253
       
   119 
       
   120         Dummy implementation of EditorClient::willSetInputMethodState.
       
   121 
       
   122         * WebCoreSupport/WebEditorClient.h:
       
   123         * WebCoreSupport/WebEditorClient.mm:
       
   124         (WebEditorClient::willSetInputMethodState):
       
   125 
       
   126 2010-07-16  Dan Bernstein  <mitz@apple.com>
       
   127 
       
   128         Reviewed by Sam Weinig.
       
   129 
       
   130         Part of <rdar://problem/7233974> Deprecate +[WebView _setShouldUseFontSmoothing:]
       
   131         https://bugs.webkit.org/show_bug.cgi?id=29355
       
   132 
       
   133         * Misc/WebKitNSStringExtras.h:
       
   134         * Misc/WebKitNSStringExtras.mm:
       
   135         (-[NSString _web_drawAtPoint:font:textColor:]): Now calls through to
       
   136         -_web_drawAtPoint:font:textColor:allowingFontSmoothing: passing YES for the last
       
   137         parameter.
       
   138         (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]): Added
       
   139         allowingFontSmoothing:. If font smoothing is not allowed, sets the font smoothing
       
   140         mode to antialiased. Otherwise, sets it to auto.
       
   141         (-[NSString _web_drawDoubledAtPoint:withTopColor:bottomColor:font:]): Instead of
       
   142         changing the font smoothing setting in the graphics context, call
       
   143         -_web_drawAtPoint:font:textColor:allowingFontSmoothing: passing NO for the last
       
   144         parameter.
       
   145 
       
   146 2010-07-16  Anders Carlsson  <andersca@apple.com>
       
   147 
       
   148         Reviewed by Sam Weinig.
       
   149 
       
   150         Remove semicolons from Objective-C method declarations.
       
   151 
       
   152         * WebView/WebRenderLayer.mm:
       
   153         (+[WebRenderLayer nameForLayer:]):
       
   154         (+[WebRenderLayer compositingInfoForLayer:]):
       
   155 
       
   156 2010-07-16  Mikhail Naganov  <mnaganov@chromium.org>
       
   157 
       
   158         Reviewed by Pavel Feldman.
       
   159 
       
   160         Make JS memory stats available via 'Performance' object (Web Timing).
       
   161         This statistics is populated only if 'WebKitMemoryInfoEnabled'
       
   162         preference is set.
       
   163 
       
   164         'console.memory' is kept until Web Timing object becomes visible by
       
   165         default (currently it is hidden under compile-time flag).  These stats
       
   166         are guarded with the same preference.
       
   167 
       
   168         https://bugs.webkit.org/show_bug.cgi?id=41617
       
   169 
       
   170         * WebKit.order:
       
   171         * WebView/WebPreferenceKeysPrivate.h:
       
   172         * WebView/WebPreferences.mm:
       
   173         (+[WebPreferences initialize]):
       
   174         (-[WebPreferences memoryInfoEnabled]):
       
   175         (-[WebPreferences setMemoryInfoEnabled:]):
       
   176         * WebView/WebPreferencesPrivate.h:
       
   177         * WebView/WebView.mm:
       
   178         (-[WebView _preferencesChangedNotification:]):
       
   179 
       
   180 2010-07-15  Shinichiro Hamaji  <hamaji@chromium.org>
       
   181 
       
   182         Reviewed by Darin Adler.
       
   183 
       
   184         Printing test results differ between machines, we should use ImageDiff instead
       
   185         https://bugs.webkit.org/show_bug.cgi?id=20011
       
   186 
       
   187         * Misc/WebCoreStatistics.h:
       
   188         * Misc/WebCoreStatistics.mm:
       
   189         (-[WebFrame printToCGContext:cgContext:pageWidthInPixels:]):
       
   190 
       
   191 2010-07-15  Daniel Bates  <dbates@rim.com>
       
   192 
       
   193         Reviewed by Darin Adler.
       
   194 
       
   195         [Mac] Implement LayoutTestController::markerTextForListItem()
       
   196         https://bugs.webkit.org/show_bug.cgi?id=37929
       
   197 
       
   198         Implements support for markerTextForListItem in the Mac port.
       
   199 
       
   200         * DOM/WebDOMOperations.mm:
       
   201         (+[DOMElement _DOMElementFromJSContext]): Added.
       
   202         (-[DOMElement _markerTextForListItem]): Added.
       
   203         * DOM/WebDOMOperationsPrivate.h:
       
   204 
       
   205 2010-07-14  Simon Fraser  <simon.fraser@apple.com>
       
   206 
       
   207         Fix non-ACCELERATED_COMPOSITING build.
       
   208 
       
   209         * WebView/WebRenderLayer.mm:
       
   210         (+[WebRenderLayer compositingInfoForLayer:]):
       
   211 
       
   212 2010-07-14  Simon Fraser  <simon.fraser@apple.com>
       
   213 
       
   214         Reviewed by John Sullivan.
       
   215 
       
   216         <rdar://problem/8186963> Expose information about compositing layers.
       
   217 
       
   218         Use RenderLayerBacking::compositingLayerType() to add more information about compositing to
       
   219         WebRenderLayer, via a compositingInfo property. Also show element classnames.
       
   220         
       
   221         Also add separator items between the various z-order lists.
       
   222         
       
   223         * WebView/WebRenderLayer.h:
       
   224         * WebView/WebRenderLayer.mm:
       
   225         (+[WebRenderLayer nameForLayer:]):
       
   226         (+[WebRenderLayer compositingInfoForLayer:]):
       
   227         (-[WebRenderLayer initWithRenderLayer:]):
       
   228         (-[WebRenderLayer initWithName:]):
       
   229         (-[WebRenderLayer initWithWebFrame:]):
       
   230         (-[WebRenderLayer dealloc]):
       
   231         (-[WebRenderLayer buildDescendantLayers:]):
       
   232         (-[WebRenderLayer compositingInfo]):
       
   233         (-[WebRenderLayer isComposited]):
       
   234         (-[WebRenderLayer isSeparator]):
       
   235 
       
   236 2010-07-14  Darin Adler  <darin@apple.com>
       
   237 
       
   238         Another try at fixing the Tiger build.
       
   239 
       
   240         Avoid non-ASCII in source files to keep Tiger compiler happy.
       
   241 
       
   242         * WebView/WebRenderLayer.mm:
       
   243         (+[WebRenderLayer nameForLayer:]): Use %C for the non-ASCII characters.
       
   244 
       
   245 2010-07-14  Sam Weinig  <sam@webkit.org>
       
   246 
       
   247         Reviewed by Darin Adler.
       
   248 
       
   249         Patch for https://bugs.webkit.org/show_bug.cgi?id=42232
       
   250         Make changing Cursors work in WebKit2.
       
   251 
       
   252         * WebCoreSupport/WebChromeClient.h:
       
   253         * WebCoreSupport/WebChromeClient.mm:
       
   254         (WebChromeClient::setCursor):
       
   255         * WebView/WebView.mm:
       
   256         Implement cursor changing at the WebKit level for the sake of WebKit2.
       
   257         This functionality is being moved from WidgetMac.mm.
       
   258         (+[WebView _pointingHandCursor]):
       
   259         Update to use platformCursor() instead of impl().
       
   260 
       
   261 2010-07-13  Simon Fraser  <simon.fraser@apple.com>
       
   262 
       
   263         Fix Tiger build.
       
   264 
       
   265         Avoid non-ASCII in souce files to keep Tiger compiler happy.
       
   266 
       
   267         * WebView/WebRenderLayer.mm:
       
   268         (+[WebRenderLayer nameForLayer:]):
       
   269 
       
   270 2010-07-13  Simon Fraser  <simon.fraser@apple.com>
       
   271 
       
   272         Reviewed by Dan Bernstein.
       
   273 
       
   274         <rdar://problem/8186963> Expose RenderLayer hierarchy via Obj-C for debugging.
       
   275 
       
   276         Add a WebRenderLayer class that reflects the RenderLayer tree into a hierarchy
       
   277         of Objective-C objects suitable for display in an outline view.
       
   278         
       
   279         * WebKit.exp: Export the WebRenderLayer Objective-C class.
       
   280         * WebView/WebRenderLayer.h: Added.
       
   281         * WebView/WebRenderLayer.mm: Added.
       
   282 
       
   283 2010-07-07  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
       
   284 
       
   285         Reviewed by Darin Adler.
       
   286 
       
   287         Prevent assertion/duplicate loads for non-deferred subtitute-data loads
       
   288 
       
   289         https://bugs.webkit.org/show_bug.cgi?id=30879
       
   290 
       
   291         MainResourceLoader uses the member m_initialRequest to store requests for future
       
   292         deferred loads. When doing the actual load in handleDataLoadNow(), we therefore
       
   293         have to clear this request so that subsequent entries into the loader will not
       
   294         start yet another load.
       
   295 
       
   296         This can happen as a result of a PageGroupLoadDeferrer going out of scope when
       
   297         returning from Chrome::runJavaScriptAlert(), which calls setDeferredLoading(false),
       
   298         but only in the case of using both substitute-data and non-deferred main resource
       
   299         load together. That's why two new DRT functions were added:
       
   300 
       
   301          * queueLoadHTMLString()
       
   302          * setDeferMainResourceLoad()
       
   303 
       
   304         The change adds DRT hooks for Mac, Win and Qt for these two functions. For Mac
       
   305         and Win the hook uses new SPI in WebDataSource. For Qt a new static member was
       
   306         added to the FrameLoaderClientQt and accessed though DumpRenderTreeSupportQt.
       
   307 
       
   308         * WebView/WebDataSource.mm:
       
   309         (-[WebDataSource _setDeferMainResourceDataLoad:]):
       
   310         * WebView/WebDataSourcePrivate.h:
       
   311 
       
   312 2010-07-13  Philippe Normand  <pnormand@igalia.com>
       
   313 
       
   314         Rubber-stamped by Xan Lopez.
       
   315 
       
   316         Updated the copyright headers of the files modified in r62476.
       
   317 
       
   318         * WebView/WebView.mm:
       
   319         * WebView/WebViewData.h:
       
   320         * WebView/WebViewInternal.h:
       
   321 
       
   322 2010-07-09  Alexey Proskuryakov  <ap@apple.com>
       
   323 
       
   324         Reviewed by Darin Adler.
       
   325 
       
   326         https://bugs.webkit.org/show_bug.cgi?id=13075
       
   327         XMLHttpRequest with failed authentication should set status to 401
       
   328 
       
   329         https://bugs.webkit.org/show_bug.cgi?id=6871
       
   330         <rdar://problem/3363403> 401 error page is never shown
       
   331 
       
   332         * Panels/WebPanelAuthenticationHandler.m:
       
   333         (-[WebPanelAuthenticationHandler startAuthentication:window:]): Updated a comment - this
       
   334         code cancels loading, not authentication (canceling authentication means telling to
       
   335         continue without credentials).
       
   336         (-[WebPanelAuthenticationHandler _authenticationDoneWithChallenge:result:]): If there were
       
   337         no credentials provided, tell to continue without any. There may be alternative content
       
   338         returned with 401.
       
   339 
       
   340 2010-07-09  Leon Clarke  <leonclarke@google.com>
       
   341 
       
   342         Reviewed by Adam Barth.
       
   343 
       
   344         add support for link prefetching
       
   345         https://bugs.webkit.org/show_bug.cgi?id=3652
       
   346 
       
   347         * Configurations/FeatureDefines.xcconfig:
       
   348 
       
   349 2010-07-08  Aaron Boodman  <aa@chromium.org>
       
   350 
       
   351         Reviewed by Timothy Hatcher.
       
   352 
       
   353         Add the ability for user scripts and user styles to affect just the top frame.
       
   354 
       
   355         https://bugs.webkit.org/show_bug.cgi?id=41529
       
   356 
       
   357         * WebView/WebView.mm:
       
   358         (+[WebView _addUserScriptToGroup:world:source:url:whitelist:blacklist:injectionTime:]):
       
   359         (+[WebView _addUserScriptToGroup:world:source:url:whitelist:blacklist:injectionTime:injectedFrames:]):
       
   360         (+[WebView _addUserStyleSheetToGroup:world:source:url:whitelist:blacklist:]):
       
   361         (+[WebView _addUserStyleSheetToGroup:world:source:url:whitelist:blacklist:injectedFrames:]):
       
   362         * WebView/WebViewPrivate.h:
       
   363 
       
   364 2010-07-08  Adele Peterson  <adele@apple.com>
       
   365 
       
   366         Reviewed by Jon Honeycutt, Adam Roben, and Darin Adler.
       
   367 
       
   368         Fix for https://bugs.webkit.org/show_bug.cgi?id=41721
       
   369         <rdar://problem/8158561> Missing plug-in indicator should have a pressed state
       
   370 
       
   371         Implement shouldMissingPluginMessageBeButton.
       
   372 
       
   373         * WebCoreSupport/WebChromeClient.h:
       
   374         * WebCoreSupport/WebChromeClient.mm:
       
   375         (WebChromeClient::shouldMissingPluginMessageBeButton):
       
   376 
       
   377 2010-07-08  Brady Eidson  <beidson@apple.com>
       
   378 
       
   379         Reviewed by Tim Hatcher.
       
   380 
       
   381         <rdar://problem/8136327> - Crash in Entourage calling WebCache method from background thread
       
   382 
       
   383         * Misc/WebCache.mm:
       
   384         (+[WebCache setDisabled:]): Forward the call to the main thread if called from a background thread.
       
   385 
       
   386         * Misc/WebNSObjectExtras.h:
       
   387         * Misc/WebNSObjectExtras.mm:
       
   388         (+[NSObject _webkit_invokeOnMainThread]): Add a class version of the main thread invoker.
       
   389 
       
   390 2010-07-08  Mike Thole  <mthole@apple.com>
       
   391 
       
   392         Reviewed by Darin Adler.
       
   393 
       
   394         Patch for https://bugs.webkit.org/show_bug.cgi?id=41896
       
   395         Crash under allScriptsInPDFDocument() in WebPDFDocumentExtras.mm for certain PDFs
       
   396 
       
   397         * WebView/WebPDFDocumentExtras.mm:
       
   398         (allScriptsInPDFDocument): Null-check 'data', as CGPDFStreamCopyData() may have returned 0.
       
   399 
       
   400 2010-07-08  Sam Weinig  <sam@webkit.org>
       
   401 
       
   402         Reviewed by Anders Carlsson.
       
   403 
       
   404         Patch for https://bugs.webkit.org/show_bug.cgi?id=41826
       
   405         Convert BackForwardList to an abstract base class and add BackForwardListImpl
       
   406         as the concrete implementation of it.
       
   407 
       
   408         * History/WebBackForwardList.mm:
       
   409         (-[WebBackForwardList init]):
       
   410         (-[WebBackForwardList setPageCacheSize:]):
       
   411         (-[WebBackForwardList pageCacheSize]):
       
   412 
       
   413 2010-07-07  Sam Weinig  <sam@webkit.org>
       
   414 
       
   415         Reviewed by Anders Carlsson.
       
   416 
       
   417         Patch for https://bugs.webkit.org/show_bug.cgi?id=41772
       
   418         Add basic piping for BackForwardControllerClient.
       
   419 
       
   420         * WebView/WebView.mm:
       
   421         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
       
   422 
       
   423 2010-07-07  Anders Carlsson  <andersca@apple.com>
       
   424 
       
   425         Reviewed by Sam Weinig.
       
   426 
       
   427         Change requestURL to a KURL.
       
   428         https://bugs.webkit.org/show_bug.cgi?id=41775
       
   429 
       
   430         * Plugins/WebNetscapePluginStream.h:
       
   431         (WebNetscapePluginStream::setRequestURL):
       
   432         * Plugins/WebNetscapePluginStream.mm:
       
   433         (WebNetscapePluginStream::pluginCancelledConnectionError):
       
   434         (WebNetscapePluginStream::errorForReason):
       
   435         (WebNetscapePluginStream::startStream):
       
   436         (WebNetscapePluginStream::didReceiveResponse):
       
   437         (WebNetscapePluginStream::destroyStream):
       
   438 
       
   439 2010-07-07  Anders Carlsson  <andersca@apple.com>
       
   440 
       
   441         Reviewed by Sam Weinig.
       
   442 
       
   443         Rename the WebBaseNetscapePluginStream.cpp and .h files to WebNetscapePluginStream.cpp and .h to match the class name.
       
   444 
       
   445         * Plugins/WebNetscapePluginStream.h: Renamed from WebKit/mac/Plugins/WebBaseNetscapePluginStream.h.
       
   446         * Plugins/WebNetscapePluginStream.mm: Renamed from WebKit/mac/Plugins/WebBaseNetscapePluginStream.mm.
       
   447 
       
   448 2010-07-06  Steve Falkenburg  <sfalken@apple.com>
       
   449 
       
   450         Reviewed by Simon Fraser.
       
   451 
       
   452         Expose URL matching from WebUserContentURLPattern
       
   453         https://bugs.webkit.org/show_bug.cgi?id=41726
       
   454         <rdar://problem/7910144>
       
   455 
       
   456         We previously had a way to construct WebUserContentURLPattern
       
   457         instances via WebKit, but no way for callers to perform matching.
       
   458         This patch adds the matchesURL functionality to allow for this.
       
   459 
       
   460         * Misc/WebUserContentURLPattern.h: Added matchesURL.
       
   461         * Misc/WebUserContentURLPattern.mm:
       
   462         (-[WebUserContentURLPattern matchesURL:]): Added. Calls through to WebCore::UserContentURLPattern::matches.
       
   463 
       
   464 2010-06-23  Philippe Normand  <pnormand@igalia.com>
       
   465 
       
   466         Reviewed by Eric Carlson.
       
   467 
       
   468         [GStreamer] on Mac OS use a runloop observer to process the glib context iterations
       
   469         https://bugs.webkit.org/show_bug.cgi?id=35747
       
   470 
       
   471         If VIDEO and GSTREAMER are enabled, make the WebView start a
       
   472         runloop observer that will trigger the glib main context
       
   473         iterations. Those are needed by the GStreamer player only at the
       
   474         moment but could later be used for other GLib-dependant components
       
   475         if required.
       
   476 
       
   477         * WebView/WebView.mm:
       
   478         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
       
   479         (-[WebView _close]):
       
   480         (-[WebView _clearGlibLoopObserver]):
       
   481         (glibContextIterationCallback):
       
   482         (-[WebView _scheduleGlibContextIterations]):
       
   483         * WebView/WebViewData.h:
       
   484         * WebView/WebViewInternal.h:
       
   485 
       
   486 2010-07-03  Jon Honeycutt  <jhoneycutt@apple.com>
       
   487 
       
   488         The missing plug-in indicator should be clickable
       
   489 
       
   490         https://bugs.webkit.org/show_bug.cgi?id=41550
       
   491         <rdar://problem/8132162>
       
   492 
       
   493         From an original patch by Kevin Decker.
       
   494 
       
   495         Reviewed by Darin Adler.
       
   496 
       
   497         * WebCoreSupport/WebChromeClient.h:
       
   498         Declare an override of missingPluginButtonClicked().
       
   499 
       
   500         * WebCoreSupport/WebChromeClient.mm:
       
   501         (WebChromeClient::missingPluginButtonClicked):
       
   502         Call the UIDelegate's method.
       
   503 
       
   504         * WebView/WebUIDelegatePrivate.h:
       
   505         Declare didPressMissingPluginButton.
       
   506 
       
   507 2010-07-01  Timothy Hatcher  <timothy@apple.com>
       
   508 
       
   509         Provide a WebView preference to disable DNS prefetching.
       
   510 
       
   511         https://bugs.webkit.org/show_bug.cgi?id=28825
       
   512         rdar://problem/7181249
       
   513 
       
   514         Reviewed by Darin Adler.
       
   515 
       
   516         * WebView/WebPreferenceKeysPrivate.h: Added WebKitDNSPrefetchingEnabledPreferenceKey.
       
   517         * WebView/WebPreferences.mm:
       
   518         (+[WebPreferences initialize]): Set WebKitDNSPrefetchingEnabledPreferenceKey to YES.
       
   519         (-[WebPreferences isDNSPrefetchingEnabled]): Added. Return WebKitDNSPrefetchingEnabledPreferenceKey's value.
       
   520         (-[WebPreferences setDNSPrefetchingEnabled:]): Added. Set WebKitDNSPrefetchingEnabledPreferenceKey's value.
       
   521         * WebView/WebPreferencesPrivate.h: Added isDNSPrefetchingEnabled and setDNSPrefetchingEnabled:.
       
   522         * WebView/WebView.mm:
       
   523         (-[WebView _preferencesChangedNotification:]): Call WebCore::Settings::setDNSPrefetchingEnabled.
       
   524 
       
   525 2010-07-01  Alexey Proskuryakov  <ap@apple.com>
       
   526 
       
   527         Reviewed by Anders Carlsson.
       
   528 
       
   529         <rdar://problem/8148656> <https://bugs.webkit.org/show_bug.cgi?id=41431>
       
   530         REGRESSION (r49411): Various crashes due to JavaScript execution during plug-in destruction
       
   531 
       
   532         Strengthen m_inDestroy "swipe under the carpet" fix.
       
   533 
       
   534         * Plugins/Hosted/NetscapePluginInstanceProxy.h: Added a long comment about m_inDestroy, and
       
   535         changed it to static.
       
   536 
       
   537         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
       
   538         (WebKit::NetscapePluginInstanceProxy::NetscapePluginInstanceProxy): m_inDestroy is now
       
   539         static, so we don't initialize it in constructor.
       
   540         (WebKit::NetscapePluginInstanceProxy::destroy): Assert that we aren't already destroying
       
   541         some plug-in.
       
   542         (WebKit::NetscapePluginInstanceProxy::evaluate): This function accidentally lacked an
       
   543         m_inDestroy check in r42789.
       
   544 
       
   545 2010-06-29  Zoltan Herczeg  <zherczeg@webkit.org>
       
   546 
       
   547         Reviewed by Nikolas Zimmermann.
       
   548 
       
   549         Add ConvolveMatrixElement to MigrateHeaders.make
       
   550         https://bugs.webkit.org/show_bug.cgi?id=5861
       
   551 
       
   552         * MigrateHeaders.make:
       
   553 
       
   554 2010-06-23  John Gregg  <johnnyg@google.com>
       
   555 
       
   556         Reviewed by Kent Tamura.
       
   557 
       
   558         add ENABLE_DIRECTORY_UPLOAD build support
       
   559         https://bugs.webkit.org/show_bug.cgi?id=41100
       
   560 
       
   561         * Configurations/FeatureDefines.xcconfig:
       
   562 
       
   563 2010-06-28  Eric Seidel  <eric@webkit.org>
       
   564 
       
   565         Reviewed by Adam Barth.
       
   566 
       
   567         Make it possible to test the new HTML5 TreeBuilder
       
   568         https://bugs.webkit.org/show_bug.cgi?id=41276
       
   569 
       
   570         Adam was concerned that someone might make their port
       
   571         depend on this setting (I guess we had some trouble with that
       
   572         with the HTML5Parser setting), so I littered the code with warnings.
       
   573 
       
   574         test-html5-parser now tests this code path.
       
   575 
       
   576         * WebView/WebPreferenceKeysPrivate.h:
       
   577         * WebView/WebPreferences.mm:
       
   578         (+[WebPreferences initialize]):
       
   579         (-[WebPreferences html5TreeBuilderEnabled]):
       
   580         (-[WebPreferences setHTML5TreeBuilderEnabled:]):
       
   581         * WebView/WebPreferencesPrivate.h:
       
   582         * WebView/WebView.mm:
       
   583         (-[WebView _preferencesChangedNotification:]):
       
   584 
       
   585 2010-06-25  Yuzo Fujishima  <yuzo@google.com>
       
   586 
       
   587         Reviewed by Shinichiro Hamaji.
       
   588 
       
   589         Improve default value handling for page format properties.
       
   590         https://bugs.webkit.org/show_bug.cgi?id=41150
       
   591 
       
   592         * Misc/WebCoreStatistics.h:
       
   593         * Misc/WebCoreStatistics.mm:
       
   594         (-[WebFrame pageSizeAndMarginsInPixels:pageNumber:width:height:marginTop:marginRight:marginBottom:]):
       
   595 
       
   596 2010-06-26  Tony Gentilcore  <tonyg@chromium.org>
       
   597 
       
   598         Reviewed by Dimitri Glazkov.
       
   599 
       
   600         Add an ENABLE_WEB_TIMING option for enabling Web Timing support.
       
   601         https://bugs.webkit.org/show_bug.cgi?id=38924
       
   602 
       
   603         * Configurations/FeatureDefines.xcconfig:
       
   604 
       
   605 2010-06-24  Jer Noble  <jer.noble@apple.com>
       
   606 
       
   607         Reviewed by Eric Carlson.
       
   608 
       
   609         Full-screened content doesn't keep the display on: Safari not grabbing a power assertion?
       
   610         https://bugs.webkit.org/show_bug.cgi?id=40939
       
   611         rdar://problem/7996172
       
   612         
       
   613         Take a IOKit power assertion when playing video in fullscreen mode.  Release the
       
   614         assertion when paused in fullscreen mode, and when exiting fullscreen mode.
       
   615 
       
   616         * WebView/WebVideoFullscreenController.h:
       
   617         * WebView/WebVideoFullscreenController.mm:
       
   618         (-[WebVideoFullscreenController windowDidExitFullscreen]): Call updatePowerAssertions.
       
   619         (-[WebVideoFullscreenController windowDidEnterFullscreen]): Call updatePowerAssertions.
       
   620         (-[WebVideoFullscreenController _disableIdleDisplaySleep]):
       
   621         (-[WebVideoFullscreenController _enableIdleDisplaySleep]):
       
   622         (-[WebVideoFullscreenController _disableIdleSystemSleep]):
       
   623         (-[WebVideoFullscreenController _enableIdleSystemSleep]):
       
   624         (-[WebVideoFullscreenController updatePowerAssertions]): Call _(enable|disable)Idle(System|Display)sleep depending on current playback rate and fullscreen status.
       
   625         (-[WebVideoFullscreenController rateChanged:]): Call updatePowerAssertions.
       
   626 
       
   627 2010-06-24  Jer Noble  <jer.noble@apple.com>
       
   628 
       
   629         Reviewed by Darin Adler.
       
   630 
       
   631         Playing movie full screen on second monitor hides menu bar and title bar on main monitor
       
   632         https://bugs.webkit.org/show_bug.cgi?id=40933
       
   633         rdar://problem/7858452
       
   634         
       
   635         Remove all references to GetSystemUIMode and SetSystemUIMode.  Replace these calls with 
       
   636         [NSApplication setPresentationOptions:].  Do not auto-hide the menu bar if the fullscreen
       
   637         screen is does not contain the menu-bar.  Do not auto-hide the dock if the fullscreen screen
       
   638         is both not the menu-bar screen and not the dock screen.
       
   639 
       
   640         * WebView/WebVideoFullscreenController.mm:
       
   641         (-[WebVideoFullscreenController windowDidLoad]): Register the applicationDidChangeScreenParameters: listener.
       
   642         (-[WebVideoFullscreenController windowDidExitFullscreen]): Calls updateMenuAndDockForFullscreen.
       
   643         (-[WebVideoFullscreenController windowDidEnterFullscreen]): Calls updateMenuAndDockForFullscreen.
       
   644         (-[WebVideoFullscreenController applicationDidChangeScreenParameters:]):  New notification handler; catches NSApplicationDidChangeScreenParameters.
       
   645         (-[WebVideoFullscreenController updateMenuAndDockForFullscreen]): Hide/show the menu-bar and dock according to the fullscreen window's screen.
       
   646 
       
   647 2010-06-24  Jer Noble  <jer.noble@apple.com>
       
   648 
       
   649         Reviewed by Eric Carlson.
       
   650 
       
   651         Full screen video in Safari exits full-screen if you switch to another app
       
   652         https://bugs.webkit.org/show_bug.cgi?id=40635
       
   653         rdar://problem/7885101
       
   654 
       
   655         Implement the following rules for exiting full screen when switching apps:
       
   656         1. If the system has a single screen, switching apps will cause Safari to exit full-screen.
       
   657         2. Otherwise, if the full-screen screen is the "main screen" (the one with the title bar), 
       
   658            switching apps will cause Safari to exit full-screen.
       
   659         3. Overriding rules 1 & 2, if the full-screen screen is not on the "current space", 
       
   660            switching apps will NOT cause Safari to exit full-screen.
       
   661 
       
   662         * WebView/WebVideoFullscreenController.mm:
       
   663         (-[WebVideoFullscreenController windowDidLoad]):
       
   664         (-[WebVideoFullscreenController applicationDidResignActive:]):
       
   665 
       
   666 2010-06-24  Adele Peterson  <adele@apple.com>
       
   667 
       
   668         Reviewed by Sam Weinig.
       
   669 
       
   670         Updated fix for <rdar://problem/8093680> "Paste and Match Style" should fire paste events
       
   671         https://bugs.webkit.org/show_bug.cgi?id=41085
       
   672 
       
   673         * WebView/WebHTMLView.mm: Use the WebCore command system for the pasteAsPlainText selector.
       
   674         Also remove internal methods that no one is using.
       
   675 
       
   676 2010-06-24  Damian Kaleta  <dkaleta@apple.com>
       
   677 
       
   678         Reviewed by Sam Weinig.
       
   679 
       
   680         Added an ObjC wrapper to Node::renderRect(bool&).
       
   681 
       
   682         * DOM/WebDOMOperations.mm:
       
   683         (-[DOMNode _renderRect:]):
       
   684         * DOM/WebDOMOperationsPrivate.h:
       
   685 
       
   686 2010-06-24  Adele Peterson  <adele@apple.com>
       
   687 
       
   688         Reviewed by Eric Carlson.
       
   689 
       
   690         Fix for <rdar://problem/8093680> "Paste and Match Style" should fire paste events
       
   691         https://bugs.webkit.org/show_bug.cgi?id=41085
       
   692 
       
   693         * WebView/WebHTMLView.mm: (-[WebHTMLView pasteAsPlainText:]): Reuse code in WebCore
       
   694         which does everything done here and also fires paste events.
       
   695 
       
   696 2010-06-23  Yuzo Fujishima  <yuzo@google.com>
       
   697 
       
   698         Reviewed by Shinichiro Hamaji.
       
   699 
       
   700         Implement page format data programming interface.
       
   701         Add methods for testing.
       
   702         https://bugs.webkit.org/show_bug.cgi?id=37538
       
   703 
       
   704         * Misc/WebCoreStatistics.h:
       
   705         * Misc/WebCoreStatistics.mm:
       
   706         (-[WebFrame isPageBoxVisible:]):
       
   707         (-[WebFrame pageAreaRectInPixels:]):
       
   708         (-[WebFrame preferredPageSizeInPixels:]):
       
   709 
       
   710 2010-06-22  Anders Carlsson  <andersca@apple.com>
       
   711 
       
   712         Reviewed by Sam Weinig.
       
   713 
       
   714         Get rid of more USE_LIBDISPATCH code.
       
   715 
       
   716         * Plugins/Hosted/NetscapePluginHostProxy.h:
       
   717 
       
   718 2010-06-22  Anders Carlsson  <andersca@apple.com>
       
   719 
       
   720         Reviewed by Sam Weinig.
       
   721 
       
   722         Get rid of the USE_LIBDISPATCH code.
       
   723 
       
   724         * Plugins/Hosted/NetscapePluginHostProxy.mm:
       
   725         (WebKit::NetscapePluginHostProxy::NetscapePluginHostProxy):
       
   726         (WebKit::NetscapePluginHostProxy::~NetscapePluginHostProxy):
       
   727 
       
   728 2010-06-22  Anders Carlsson  <andersca@apple.com>
       
   729 
       
   730         Reviewed by Sam Weinig.
       
   731 
       
   732         Wean NetscapePluginHostManager of any knowledge about WebNetscapePluginPackage
       
   733         https://bugs.webkit.org/show_bug.cgi?id=41006
       
   734 
       
   735         * Plugins/Hosted/NetscapePluginHostManager.h:
       
   736         * Plugins/Hosted/NetscapePluginHostManager.mm:
       
   737         (WebKit::NetscapePluginHostManager::hostForPlugin):
       
   738         (WebKit::NetscapePluginHostManager::spawnPluginHost):
       
   739         (WebKit::NetscapePluginHostManager::instantiatePlugin):
       
   740         (WebKit::NetscapePluginHostManager::createPropertyListFile):
       
   741         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
       
   742         (-[WebHostedNetscapePluginView createPlugin]):
       
   743         * Plugins/WebNetscapePluginPackage.mm:
       
   744         (-[WebNetscapePluginPackage createPropertyListFile]):
       
   745 
       
   746 2010-06-21  Anders Carlsson  <andersca@apple.com>
       
   747 
       
   748         Reviewed by Sam Weinig.
       
   749 
       
   750         Fix an off-by-one bug I introduced.
       
   751 
       
   752         * Plugins/WebNetscapePluginPackage.mm:
       
   753         (-[WebNetscapePluginPackage getPluginInfoFromResources]):
       
   754 
       
   755 2010-06-21  Nate Chapin  <japhet@chromium.org>
       
   756 
       
   757         Reviewed by Adam Barth.
       
   758 
       
   759         FrameLoader cleanup: Split high level subframe and plugin
       
   760         loading functions into a separate class.
       
   761         https://bugs.webkit.org/show_bug.cgi?id=40453
       
   762 
       
   763         * WebView/WebFrame.mm:
       
   764         (-[WebFrame _cacheabilityDictionary]):
       
   765 
       
   766 2010-06-21  Anders Carlsson  <andersca@apple.com>
       
   767 
       
   768         Another Tiger build fix.
       
   769 
       
   770         * Plugins/WebNetscapePluginPackage.mm:
       
   771         (-[WebNetscapePluginPackage _tryLoad]):
       
   772 
       
   773 2010-06-21  Anders Carlsson  <andersca@apple.com>
       
   774 
       
   775         Reviewed by Sam Weinig.
       
   776 
       
   777         More WebBasePluginPackage cleanup
       
   778         https://bugs.webkit.org/show_bug.cgi?id=40944
       
   779 
       
   780         * Plugins/Hosted/HostedNetscapePluginStream.mm:
       
   781         (WebKit::HostedNetscapePluginStream::pluginCancelledConnectionError):
       
   782         * Plugins/Hosted/NetscapePluginHostManager.mm:
       
   783         (WebKit::NetscapePluginHostManager::spawnPluginHost):
       
   784         * Plugins/WebBaseNetscapePluginStream.mm:
       
   785         (WebNetscapePluginStream::pluginCancelledConnectionError):
       
   786         * Plugins/WebBaseNetscapePluginView.mm:
       
   787         (WebHaltablePlugin::pluginName):
       
   788         * Plugins/WebBasePluginPackage.h:
       
   789         * Plugins/WebBasePluginPackage.mm:
       
   790         (-[WebBasePluginPackage initWithPath:]):
       
   791         (-[WebBasePluginPackage _objectForInfoDictionaryKey:]):
       
   792         (-[WebBasePluginPackage getPluginInfoFromPLists]):
       
   793         (-[WebBasePluginPackage load]):
       
   794         (-[WebBasePluginPackage dealloc]):
       
   795         (-[WebBasePluginPackage finalize]):
       
   796         (-[WebBasePluginPackage pluginInfo]):
       
   797         (-[WebBasePluginPackage supportsExtension:]):
       
   798         (-[WebBasePluginPackage supportsMIMEType:WebCore::]):
       
   799         (-[WebBasePluginPackage MIMETypeForExtension:]):
       
   800         (-[WebBasePluginPackage isJavaPlugIn]):
       
   801         (-[WebBasePluginPackage versionNumber]):
       
   802         (-[WebBasePluginPackage WebCore::]):
       
   803         * Plugins/WebNetscapePluginPackage.mm:
       
   804         (-[WebNetscapePluginPackage openResourceFile]):
       
   805         (-[WebNetscapePluginPackage closeResourceFile:]):
       
   806         (-[WebNetscapePluginPackage getPluginInfoFromResources]):
       
   807         (-[WebNetscapePluginPackage _initWithPath:]):
       
   808         (-[WebNetscapePluginPackage _applyDjVuWorkaround]):
       
   809         (-[WebNetscapePluginPackage _tryLoad]):
       
   810         (-[WebNetscapePluginPackage supportsSnapshotting]):
       
   811         (-[WebNetscapePluginPackage _unloadWithShutdown:]):
       
   812         * Plugins/WebPluginDatabase.mm:
       
   813         (-[WebPluginDatabase refresh]):
       
   814         (-[WebPluginDatabase _removePlugin:]):
       
   815         * Plugins/WebPluginPackage.mm:
       
   816         (-[WebPluginPackage initWithPath:]):
       
   817         (-[WebPluginPackage load]):
       
   818         * WebCoreSupport/WebFrameLoaderClient.mm:
       
   819         (WebFrameLoaderClient::createPlugin):
       
   820         * WebCoreSupport/WebPlatformStrategies.mm:
       
   821         (WebPlatformStrategies::getPluginInfo):
       
   822 
       
   823 2010-06-21  Anders Carlsson  <andersca@apple.com>
       
   824 
       
   825         Another PowerPC build fix.
       
   826 
       
   827         * Plugins/WebNetscapePluginPackage.mm:
       
   828         (-[WebNetscapePluginPackage openResourceFile]):
       
   829         (-[WebNetscapePluginPackage _tryLoad]):
       
   830 
       
   831 2010-06-21  Anders Carlsson  <andersca@apple.com>
       
   832 
       
   833         Try to fix the PowerPC build.
       
   834 
       
   835         * Plugins/WebNetscapePluginPackage.mm:
       
   836         (-[WebNetscapePluginPackage _tryLoad]):
       
   837 
       
   838 2010-06-21  Nate Chapin  <japhet@chromium.org>
       
   839 
       
   840         Reviewed by Adam Barth.
       
   841 
       
   842         Update relevant calls into FrameLoader to make use of 
       
   843         FrameLoaderStateMachine.
       
   844         https://bugs.webkit.org/show_bug.cgi?id=39695
       
   845 
       
   846         * WebCoreSupport/WebFrameLoaderClient.mm:
       
   847         (WebFrameLoaderClient::transitionToCommittedForNewPage):
       
   848         * WebView/WebFrame.mm:
       
   849         (-[WebFrame _firstLayoutDone]):
       
   850 
       
   851 2010-06-21  Dimitri Glazkov  <dglazkov@chromium.org>
       
   852 
       
   853         Reviewed by Dan Bernstein.
       
   854 
       
   855         Chromium/Mac build fix.
       
   856 
       
   857         * WebCoreSupport/WebSystemInterface.mm: Change the order of wtf/Platform.h include to let other 
       
   858             headers smell it.
       
   859 
       
   860 2010-06-21  Anders Carlsson  <andersca@apple.com>
       
   861 
       
   862         Reviewed by Dan Bernstein.
       
   863 
       
   864         Make all of WebKit build with clang++
       
   865 
       
   866         * DefaultDelegates/WebDefaultPolicyDelegate.m:
       
   867         (-[WebDefaultPolicyDelegate webView:decidePolicyForMIMEType:request:frame:decisionListener:]):
       
   868         * Plugins/Hosted/NetscapePluginHostManager.mm:
       
   869         * Plugins/WebBaseNetscapePluginView.mm:
       
   870         (-[WebBaseNetscapePluginView resolvedURLStringForURL:target:]):
       
   871         * WebView/WebDynamicScrollBarsView.mm:
       
   872         (-[WebDynamicScrollBarsView setSuppressLayout:]):
       
   873         * WebView/WebHTMLRepresentation.mm:
       
   874         * WebView/WebNavigationData.mm:
       
   875         (-[WebNavigationData initWithURLString:title:originalRequest:response:hasSubstituteData:clientRedirectSource:]):
       
   876         * WebView/WebPDFRepresentation.mm:
       
   877         (-[WebPDFRepresentation setDataSource:]):
       
   878         (-[WebPDFRepresentation receivedData:withDataSource:]):
       
   879         (-[WebPDFRepresentation receivedError:withDataSource:]):
       
   880         * WebView/WebResource.mm:
       
   881         (-[WebResource description]):
       
   882         * WebView/WebSerializedJSValue.mm:
       
   883         (-[WebSerializedJSValue initWithValue:context:exception:]):
       
   884         * WebView/WebVideoFullscreenController.mm:
       
   885         (-[WebVideoFullscreenController WebCore::]):
       
   886         (-[WebVideoFullscreenController setMediaElement:WebCore::]):
       
   887         (-[WebVideoFullscreenController setDelegate:]):
       
   888         (-[WebVideoFullscreenController enterFullscreen:]):
       
   889         * WebView/WebView.mm:
       
   890         (-[WebView _openFrameInNewWindowFromMenu:]):
       
   891         (-[WebView _geolocationDidChangePosition:]):
       
   892 
       
   893 2010-06-21  Anders Carlsson  <andersca@apple.com>
       
   894 
       
   895         Reviewed by Sam Weinig.
       
   896 
       
   897         Remove unused dictionary ivars from WebBasePluginPackage
       
   898         https://bugs.webkit.org/show_bug.cgi?id=40928
       
   899 
       
   900         * Plugins/WebBasePluginPackage.h:
       
   901         * Plugins/WebBasePluginPackage.mm:
       
   902         (-[WebBasePluginPackage getPluginInfoFromPLists]):
       
   903         (-[WebBasePluginPackage dealloc]):
       
   904         * Plugins/WebNetscapePluginPackage.mm:
       
   905         (-[WebNetscapePluginPackage getPluginInfoFromResources]):
       
   906 
       
   907 2010-06-21  Dan Bernstein  <mitz@apple.com>
       
   908 
       
   909         Build fix
       
   910 
       
   911         * WebCoreSupport/WebSystemInterface.mm:
       
   912         (InitWebCoreSystemInterface):
       
   913 
       
   914 2010-06-21  Dan Bernstein  <mitz@apple.com>
       
   915 
       
   916         Reviewed by Darin Adler.
       
   917 
       
   918         WebKit part of implementing the 'hyphens' and 'hyphenate-character' properties
       
   919         https://bugs.webkit.org/show_bug.cgi?id=10228
       
   920 
       
   921         * WebCoreSupport/WebSystemInterface.mm:
       
   922         (InitWebCoreSystemInterface): Initialize wkGetHyphenationLocationBeforeIndex.
       
   923 
       
   924 2010-06-21  Satish Sampath  <satish@chromium.org>
       
   925 
       
   926         Reviewed by Steve Block.
       
   927 
       
   928         Speech Input Patch 0: Added compilation argument to conditionally compile pending patches.
       
   929         https://bugs.webkit.org/show_bug.cgi?id=40878
       
   930 
       
   931         * Configurations/FeatureDefines.xcconfig:
       
   932 
       
   933 2010-06-20  Anders Carlsson  <andersca@apple.com>
       
   934 
       
   935         Fix Tiger build.
       
   936 
       
   937         * Plugins/WebNetscapePluginPackage.mm:
       
   938 
       
   939 2010-06-20  Anders Carlsson  <andersca@apple.com>
       
   940 
       
   941         Reviewed by Dan Bernstein.
       
   942 
       
   943         Get rid of the old MIMETypes getter method
       
   944         https://bugs.webkit.org/show_bug.cgi?id=40898
       
   945 
       
   946         * Plugins/WebBasePluginPackage.h:
       
   947         * Plugins/WebBasePluginPackage.mm:
       
   948         (-[WebBasePluginPackage supportsExtension:]):
       
   949         (-[WebBasePluginPackage supportsMIMEType:WebCore::]):
       
   950         (-[WebBasePluginPackage MIMETypeForExtension:]):
       
   951         * Plugins/WebPluginDatabase.mm:
       
   952         (-[WebPluginDatabase refresh]):
       
   953         (-[WebPluginDatabase _removePlugin:]):
       
   954 
       
   955 2010-06-20  Anders Carlsson  <andersca@apple.com>
       
   956 
       
   957         Reviewed by Dan Bernstein.
       
   958 
       
   959         Remove bogus const qualifiers.
       
   960 
       
   961         * WebCoreSupport/WebPasteboardHelper.h:
       
   962         * WebCoreSupport/WebPasteboardHelper.mm:
       
   963         (WebPasteboardHelper::urlFromPasteboard):
       
   964         (WebPasteboardHelper::plainTextFromPasteboard):
       
   965         (WebPasteboardHelper::fragmentFromPasteboard):
       
   966 
       
   967 2010-06-20  Anders Carlsson  <andersca@apple.com>
       
   968 
       
   969         Reviewed by Dan Bernstein.
       
   970 
       
   971         Get rid of the extensionToMIME mapping in WebBasePluginPackage
       
   972         https://bugs.webkit.org/show_bug.cgi?id=40897
       
   973 
       
   974         Instead of using the extensionToMIME mutable dictionary, use the MIME types vector.
       
   975         While this makes lookup of MIME types based on extensions linear instead of constant,
       
   976         the number of extensions per plug-in is too small for it to matter.
       
   977 
       
   978         * Plugins/WebBasePluginPackage.h:
       
   979         * Plugins/WebBasePluginPackage.mm:
       
   980         (-[WebBasePluginPackage initWithPath:]):
       
   981         (-[WebBasePluginPackage dealloc]):
       
   982         (-[WebBasePluginPackage supportsExtension:]):
       
   983         (-[WebBasePluginPackage MIMETypeForExtension:]):
       
   984         (-[WebBasePluginPackage setMIMEToExtensionsDictionary:]):
       
   985 
       
   986 2010-06-20  Anders Carlsson  <andersca@apple.com>
       
   987 
       
   988         Reviewed by Dan Bernstein.
       
   989 
       
   990         Add a MimeClassInfo Vector to WebBasePluginPackage
       
   991         https://bugs.webkit.org/show_bug.cgi?id=40896
       
   992 
       
   993         * Plugins/WebBasePluginPackage.h:
       
   994         * Plugins/WebBasePluginPackage.mm:
       
   995         (-[WebBasePluginPackage getPluginInfoFromPLists]):
       
   996         (-[WebBasePluginPackage WebCore::]):
       
   997         * Plugins/WebNetscapePluginPackage.mm:
       
   998         (-[WebNetscapePluginPackage getPluginInfoFromResources]):
       
   999         * WebCoreSupport/WebPlatformStrategies.mm:
       
  1000         (WebPlatformStrategies::getPluginInfo):
       
  1001 
       
  1002 2010-06-20  Anders Carlsson  <andersca@apple.com>
       
  1003 
       
  1004         Reviewed by Dan Bernstein.
       
  1005 
       
  1006         Move the NSBundle ivar to WebPluginPackage
       
  1007         https://bugs.webkit.org/show_bug.cgi?id=40894
       
  1008 
       
  1009         * Plugins/WebBasePluginPackage.h:
       
  1010         * Plugins/WebBasePluginPackage.mm:
       
  1011         (-[WebBasePluginPackage initWithPath:]):
       
  1012         (-[WebBasePluginPackage _objectForInfoDictionaryKey:]):
       
  1013         (-[WebBasePluginPackage getPluginInfoFromPLists]):
       
  1014         (-[WebBasePluginPackage load]):
       
  1015         (-[WebBasePluginPackage dealloc]):
       
  1016         * Plugins/WebNetscapePluginPackage.mm:
       
  1017         (-[WebNetscapePluginPackage _initWithPath:]):
       
  1018         * Plugins/WebPluginPackage.h:
       
  1019         * Plugins/WebPluginPackage.mm:
       
  1020         (-[WebPluginPackage initWithPath:]):
       
  1021         (-[WebPluginPackage dealloc]):
       
  1022         (-[WebPluginPackage viewFactory]):
       
  1023         (-[WebPluginPackage load]):
       
  1024 
       
  1025 2010-06-20  Anders Carlsson  <andersca@apple.com>
       
  1026 
       
  1027         Reviewed by Sam Weinig.
       
  1028 
       
  1029         Remove -[WebBasePluginPackage bundle]
       
  1030         https://bugs.webkit.org/show_bug.cgi?id=40892
       
  1031 
       
  1032         Add -[WebBasePluginPackage bundleIdentifier] and switch clients over to it.
       
  1033         
       
  1034         Move the supportsSnapshotting method over to the plug-in package.
       
  1035         
       
  1036         * Plugins/Hosted/NetscapePluginHostManager.mm:
       
  1037         (WebKit::NetscapePluginHostManager::hostForPackage):
       
  1038         * Plugins/WebBaseNetscapePluginView.mm:
       
  1039         (-[WebBaseNetscapePluginView initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:element:WebCore::]):
       
  1040         (-[WebBaseNetscapePluginView supportsSnapshotting]):
       
  1041         * Plugins/WebBasePluginPackage.h:
       
  1042         * Plugins/WebBasePluginPackage.mm:
       
  1043         (-[WebBasePluginPackage isQuickTimePlugIn]):
       
  1044         (-[WebBasePluginPackage isJavaPlugIn]):
       
  1045         (-[WebBasePluginPackage WebCore::]):
       
  1046         Call bundleIdentifier directly instead of asking the bundle 
       
  1047         * Plugins/WebNetscapePluginPackage.h:
       
  1048         * Plugins/WebNetscapePluginPackage.mm:
       
  1049         (-[WebNetscapePluginPackage supportsSnapshotting]):
       
  1050         * Plugins/WebNetscapePluginView.mm:
       
  1051         (-[WebNetscapePluginView setAttributeKeys:andValues:]):
       
  1052         (-[WebNetscapePluginView _createPlugin]):
       
  1053         * Plugins/WebPluginDatabase.mm:
       
  1054         (checkCandidate):
       
  1055 
       
  1056 2010-06-20  Anders Carlsson  <andersca@apple.com>
       
  1057 
       
  1058         Reviewed by Dan Bernstein.
       
  1059 
       
  1060         Change some WebPluginDabase ivars to use WebCore::String instead of NSString.
       
  1061         https://bugs.webkit.org/show_bug.cgi?id=40869
       
  1062         
       
  1063         Re-land r61459, with extra null-checks in WebFrameLoaderClient.
       
  1064 
       
  1065         * Plugins/Hosted/NetscapePluginHostManager.mm:
       
  1066         (WebKit::NetscapePluginHostManager::spawnPluginHost):
       
  1067         * Plugins/WebBasePluginPackage.h:
       
  1068         * Plugins/WebBasePluginPackage.mm:
       
  1069         (-[WebBasePluginPackage initWithPath:]):
       
  1070         (-[WebBasePluginPackage getPluginInfoFromPLists]):
       
  1071         (-[WebBasePluginPackage dealloc]):
       
  1072         (-[WebBasePluginPackage name]):
       
  1073         (-[WebBasePluginPackage path]):
       
  1074         (-[WebBasePluginPackage filename]):
       
  1075         (-[WebBasePluginPackage pluginDescription]):
       
  1076         (-[WebBasePluginPackage description]):
       
  1077         (-[WebBasePluginPackage isJavaPlugIn]):
       
  1078         * Plugins/WebNetscapePluginPackage.mm:
       
  1079         (-[WebNetscapePluginPackage getPluginInfoFromResources]):
       
  1080         (-[WebNetscapePluginPackage _tryLoad]):
       
  1081         (-[WebNetscapePluginPackage _unloadWithShutdown:]):
       
  1082         * Plugins/WebPluginPackage.mm:
       
  1083         (-[WebPluginPackage load]):
       
  1084         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  1085         (WebFrameLoaderClient::createPlugin):
       
  1086 
       
  1087 2010-06-18  Adam Barth  <abarth@webkit.org>
       
  1088 
       
  1089         Unreviewed, rolling out r61459.
       
  1090         http://trac.webkit.org/changeset/61459
       
  1091         https://bugs.webkit.org/show_bug.cgi?id=40869
       
  1092 
       
  1093         Seems to have broken two tests on the Tiger buildbot:
       
  1094 
       
  1095         dom/html/level2/html/AppletsCollection.html
       
  1096         plugins/qt-qwidget-plugin.html
       
  1097 
       
  1098         Anders wasn't on #webkit...
       
  1099 
       
  1100         * Plugins/Hosted/NetscapePluginHostManager.mm:
       
  1101         (WebKit::NetscapePluginHostManager::spawnPluginHost):
       
  1102         * Plugins/WebBasePluginPackage.h:
       
  1103         * Plugins/WebBasePluginPackage.mm:
       
  1104         (-[WebBasePluginPackage initWithPath:]):
       
  1105         (-[WebBasePluginPackage getPluginInfoFromPLists]):
       
  1106         (-[WebBasePluginPackage dealloc]):
       
  1107         (-[WebBasePluginPackage name]):
       
  1108         (-[WebBasePluginPackage path]):
       
  1109         (-[WebBasePluginPackage filename]):
       
  1110         (-[WebBasePluginPackage pluginDescription]):
       
  1111         (-[WebBasePluginPackage setName:]):
       
  1112         (-[WebBasePluginPackage setPath:]):
       
  1113         (-[WebBasePluginPackage setPluginDescription:]):
       
  1114         (-[WebBasePluginPackage description]):
       
  1115         (-[WebBasePluginPackage isJavaPlugIn]):
       
  1116         * Plugins/WebNetscapePluginPackage.mm:
       
  1117         (-[WebNetscapePluginPackage getPluginInfoFromResources]):
       
  1118         (-[WebNetscapePluginPackage _tryLoad]):
       
  1119         (-[WebNetscapePluginPackage _unloadWithShutdown:]):
       
  1120         * Plugins/WebPluginPackage.mm:
       
  1121         (-[WebPluginPackage load]):
       
  1122 
       
  1123 2010-06-18  Anders Carlsson  <andersca@apple.com>
       
  1124 
       
  1125         Fix Tiger build.
       
  1126 
       
  1127         * Plugins/WebBasePluginPackage.mm:
       
  1128         (-[WebBasePluginPackage isJavaPlugIn]):
       
  1129 
       
  1130 2010-06-18  Anders Carlsson  <andersca@apple.com>
       
  1131 
       
  1132         Reviewed by Sam Weinig.
       
  1133 
       
  1134         Change some WebPluginDabase ivars to use WebCore::String instead of NSString.
       
  1135         https://bugs.webkit.org/show_bug.cgi?id=40869
       
  1136 
       
  1137         * Plugins/Hosted/NetscapePluginHostManager.mm:
       
  1138         (WebKit::NetscapePluginHostManager::spawnPluginHost):
       
  1139         * Plugins/WebBasePluginPackage.h:
       
  1140         * Plugins/WebBasePluginPackage.mm:
       
  1141         (-[WebBasePluginPackage initWithPath:]):
       
  1142         (-[WebBasePluginPackage getPluginInfoFromPLists]):
       
  1143         (-[WebBasePluginPackage dealloc]):
       
  1144         (-[WebBasePluginPackage name]):
       
  1145         (-[WebBasePluginPackage path]):
       
  1146         (-[WebBasePluginPackage filename]):
       
  1147         (-[WebBasePluginPackage pluginDescription]):
       
  1148         (-[WebBasePluginPackage description]):
       
  1149         (-[WebBasePluginPackage isJavaPlugIn]):
       
  1150         * Plugins/WebNetscapePluginPackage.mm:
       
  1151         (-[WebNetscapePluginPackage getPluginInfoFromResources]):
       
  1152         (-[WebNetscapePluginPackage _tryLoad]):
       
  1153         (-[WebNetscapePluginPackage _unloadWithShutdown:]):
       
  1154         * Plugins/WebPluginPackage.mm:
       
  1155         (-[WebPluginPackage load]):
       
  1156 
       
  1157 2010-06-18  Anders Carlsson  <andersca@apple.com>
       
  1158 
       
  1159         Reviewed by Sam Weinig.
       
  1160 
       
  1161         Rename WebPluginPackage.m to make it an Objective-C++ file.
       
  1162         
       
  1163         * Plugins/WebPluginPackage.m: Removed.
       
  1164         * Plugins/WebPluginPackage.mm: Copied from Plugins/WebPluginPackage.m.
       
  1165 
       
  1166 2010-06-18  Anders Carlsson  <andersca@apple.com>
       
  1167 
       
  1168         Reviewed by Sam Weinig.
       
  1169 
       
  1170         Get rid of the NSEnumerators from WebBasePluginPackage
       
  1171         https://bugs.webkit.org/show_bug.cgi?id=40868
       
  1172 
       
  1173         * Plugins/WebBasePluginPackage.h:
       
  1174         * Plugins/WebBasePluginPackage.mm:
       
  1175         (-[WebBasePluginPackage MIMETypes]):
       
  1176         (-[WebBasePluginPackage supportsExtension:]):
       
  1177         (-[WebBasePluginPackage supportsMIMEType:]):
       
  1178         * Plugins/WebPluginDatabase.mm:
       
  1179         (-[WebPluginDatabase pluginForMIMEType:]):
       
  1180         (-[WebPluginDatabase pluginForExtension:]):
       
  1181         (-[WebPluginDatabase refresh]):
       
  1182         (-[WebPluginDatabase _removePlugin:]):
       
  1183         * WebCoreSupport/WebPlatformStrategies.mm:
       
  1184         (WebPlatformStrategies::getPluginInfo):
       
  1185 
       
  1186 2010-06-18  Anders Carlsson  <andersca@apple.com>
       
  1187 
       
  1188         Reviewed by Sam Weinig.
       
  1189 
       
  1190         Make WebCoreSystemInterface.h a C++ only header
       
  1191         https://bugs.webkit.org/show_bug.cgi?id=40867
       
  1192 
       
  1193         * WebCoreSupport/WebSystemInterface.h:
       
  1194         * WebCoreSupport/WebSystemInterface.m: Removed.
       
  1195         * WebCoreSupport/WebSystemInterface.mm: Copied from WebKit/mac/WebCoreSupport/WebSystemInterface.m.
       
  1196 
       
  1197 2010-06-18  Anders Carlsson  <andersca@apple.com>
       
  1198 
       
  1199         Reviewed by Sam Weinig.
       
  1200 
       
  1201         Clean up WebPluginDatabase.mm
       
  1202         https://bugs.webkit.org/show_bug.cgi?id=40866
       
  1203 
       
  1204         * Plugins/WebBasePluginPackage.h:
       
  1205         * Plugins/WebBasePluginPackage.mm:
       
  1206         (pathByResolvingSymlinksAndAliases):
       
  1207         (-[WebBasePluginPackage initWithPath:]):
       
  1208         Change an instance method into a static function.
       
  1209         
       
  1210         * Plugins/WebPluginDatabase.mm:
       
  1211         (PluginPackageCandidates::PluginPackageCandidates):
       
  1212         (PluginPackageCandidates::update):
       
  1213         (PluginPackageCandidates::bestCandidate):
       
  1214         Add a new PluginPackageCandidates class.
       
  1215         
       
  1216         (-[WebPluginDatabase pluginForKey:withEnumeratorSelector:]):
       
  1217         Use PluginPackageCandidates here.
       
  1218 
       
  1219 2010-06-18  Anders Carlsson  <andersca@apple.com>
       
  1220 
       
  1221         Fix Tiger build.
       
  1222         
       
  1223         * WebCoreSupport/WebPlatformStrategies.mm:
       
  1224 
       
  1225 2010-06-18  Anders Carlsson  <andersca@apple.com>
       
  1226 
       
  1227         Reviewed by Darin Adler.
       
  1228 
       
  1229         Get rid of PluginDataMac.mm and use the plug-in strategy instead
       
  1230         https://bugs.webkit.org/show_bug.cgi?id=40860
       
  1231 
       
  1232         * Plugins/WebBasePluginPackage.h:
       
  1233         * WebCoreSupport/WebPlatformStrategies.h:
       
  1234         * WebCoreSupport/WebPlatformStrategies.mm:
       
  1235         (WebPlatformStrategies::createPluginStrategy):
       
  1236         (WebPlatformStrategies::refreshPlugins):
       
  1237         (WebPlatformStrategies::getPluginInfo):
       
  1238         * WebCoreSupport/WebViewFactory.mm:
       
  1239 
       
  1240 2010-06-18  Anders Carlsson  <andersca@apple.com>
       
  1241 
       
  1242         Reviewed by Dan Bernstein.
       
  1243 
       
  1244         Add stubbed out WebPlatformStrategies class to WebKit.
       
  1245         https://bugs.webkit.org/show_bug.cgi?id=40851
       
  1246 
       
  1247         * WebCoreSupport/WebPlatformStrategies.h: Added.
       
  1248         * WebCoreSupport/WebPlatformStrategies.mm: Added.
       
  1249         (WebPlatformStrategies::initialize):
       
  1250         (WebPlatformStrategies::WebPlatformStrategies):
       
  1251         (WebPlatformStrategies::createPluginStrategy):
       
  1252         * WebView/WebView.mm:
       
  1253         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
       
  1254 
       
  1255 2010-06-15  Dumitru Daniliuc  <dumi@chromium.org>
       
  1256 
       
  1257         Reviewed by Adam Barth.
       
  1258 
       
  1259         Move isAvailable()/setIsAvailable() from Database/DatabaseSync to AbstractDatabase.
       
  1260         https://bugs.webkit.org/show_bug.cgi?id=39041
       
  1261 
       
  1262         * WebView/WebView.mm:
       
  1263         (-[WebView _preferencesChangedNotification:]):
       
  1264 
       
  1265 2010-06-17  Darin Adler  <darin@apple.com>
       
  1266 
       
  1267         Reviewed by Sam Weinig.
       
  1268 
       
  1269         Use adoptRef and create functions in more code paths
       
  1270         https://bugs.webkit.org/show_bug.cgi?id=40760
       
  1271 
       
  1272         * Plugins/Hosted/NetscapePluginInstanceProxy.h: Made create no longer
       
  1273         be an inline function.
       
  1274 
       
  1275         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
       
  1276         (WebKit::NetscapePluginInstanceProxy::NetscapePluginInstanceProxy):
       
  1277         Moved the call to addPluginInstance out of here.
       
  1278         (WebKit::NetscapePluginInstanceProxy::create): Move it in here.
       
  1279         This makes sure we call adoptRef on the new proxy before any caller
       
  1280         calls ref on it.
       
  1281 
       
  1282 2010-06-16  Eric Seidel  <eric@webkit.org>
       
  1283 
       
  1284         Reviewed by Adam Barth.
       
  1285 
       
  1286         Enable HTML5 Parser in Safari on Mac
       
  1287         https://bugs.webkit.org/show_bug.cgi?id=40739
       
  1288 
       
  1289         The HTML5 parser is probably off on all webkit ports.
       
  1290         We should either flip the meaning of the default so that
       
  1291         "false" means HTML5 on all ports, or we'll have to write
       
  1292         more code like this for all the other ports.
       
  1293 
       
  1294         * WebView/WebPreferences.mm:
       
  1295         (+[WebPreferences initialize]):
       
  1296 
       
  1297 2010-06-15  Mark Rowe  <mrowe@apple.com>
       
  1298 
       
  1299         Reviewed by Sam Weinig.
       
  1300 
       
  1301         Don't leak WebGeolocationPositionInternal and GeolocationPosition instances for every WebGeolocationPosition created.
       
  1302 
       
  1303         * WebView/WebGeolocationPosition.mm:
       
  1304         (-[WebGeolocationPosition dealloc]): Implement -dealloc and release our WebGeolocationPositionInternal instance.
       
  1305 
       
  1306 2010-06-10  Yuzo Fujishima  <yuzo@google.com>
       
  1307 
       
  1308         Reviewed by Shinichiro Hamaji.
       
  1309 
       
  1310         Implement render style selection for pages to support CSS3 Paged Media.
       
  1311         https://bugs.webkit.org/show_bug.cgi?id=35961
       
  1312 
       
  1313         * Misc/WebCoreStatistics.h:
       
  1314         * Misc/WebCoreStatistics.mm:
       
  1315         (-[WebFrame pageProperty:propertyName:]):
       
  1316 
       
  1317 2010-06-15  Darin Adler  <darin@apple.com>
       
  1318 
       
  1319         Reviewed by Adam Barth.
       
  1320 
       
  1321         Move functions out of Frame class that were marked "move to Chrome"
       
  1322         https://bugs.webkit.org/show_bug.cgi?id=39636
       
  1323 
       
  1324         * WebView/WebView.mm:
       
  1325         (-[WebView shouldClose]): Call shouldClose on FrameLoader instead of
       
  1326         going through Frame.
       
  1327 
       
  1328 2010-06-15  Anders Carlsson  <andersca@apple.com>
       
  1329 
       
  1330         Reviewed by Dan Bernstein.
       
  1331 
       
  1332         Remove getPluginInfoFromBundleAndMIMEDictionary:
       
  1333 
       
  1334         * Plugins/WebBasePluginPackage.mm:
       
  1335 
       
  1336 2010-06-15  Anders Carlsson  <andersca@apple.com>
       
  1337 
       
  1338         Reviewed by Dan Bernstein.
       
  1339 
       
  1340         Fold getPluginInfoFromBundleAndMIMEDictionary: into its sole caller.
       
  1341 
       
  1342         * Plugins/WebBasePluginPackage.mm:
       
  1343         (-[WebBasePluginPackage getPluginInfoFromPLists]):
       
  1344 
       
  1345 2010-06-11  Simon Fraser  <simon.fraser@apple.com>
       
  1346 
       
  1347         Reviewed by Darin Adler.
       
  1348 
       
  1349         <rdar://problem/8084721> Pages using accelerated compositing fail to update correctly in Carbon apps
       
  1350         
       
  1351         The run loop observer used to commit compositing layer changes does not do
       
  1352         updates if [window viewsNeedDisplay] is true, because this indicates that a delayed window
       
  1353         update is pending (added in r58623).
       
  1354         
       
  1355         However, Carbon apps don't use the NSWindow updating mechanism, so [window viewsNeedDisplay] always returns YES.
       
  1356         This caused us to never sync compositing layers.
       
  1357         
       
  1358         So detect if the current window is wrapping a carbon window, and in that case consult the root
       
  1359         HIView to detect if display is pending.
       
  1360 
       
  1361         * WebView/WebView.mm:
       
  1362         (layerSyncRunLoopObserverCallBack):
       
  1363 
       
  1364 2010-06-15  Dan Bernstein  <mitz@apple.com>
       
  1365 
       
  1366         Reviewed by John Sullivan.
       
  1367 
       
  1368         <rdar://problem/8077032> REGRESSION (r50796): Black background on AppleScript generated email
       
  1369 
       
  1370         Test: platform/mac/editing/input/NSBackgroundColor-transparent.html
       
  1371 
       
  1372         r50796 changed the initial background color from invalid to transparent. As a result,
       
  1373         NSAttributedStrings returned from +_web_attributedStringFromRange started including the
       
  1374         NSBackgroundColor attribute, with a transparent color as the value. This caused problems for
       
  1375         components in the system that ignore the alpha component, turning the color into opaque black.
       
  1376 
       
  1377         * Misc/WebNSAttributedStringExtras.mm:
       
  1378         (+[NSAttributedString _web_attributedStringFromRange:]): Change to not include the background
       
  1379         and foreground color attributes if the color are transparent.
       
  1380 
       
  1381 2010-06-14  Ilya Tikhonovsky  <loislo@chromium.org>
       
  1382 
       
  1383         Reviewed by Pavel Feldman.
       
  1384 
       
  1385         WebInspector: On the way to Remote Debugging we want to transfer dom/timeline/etc
       
  1386         data from inspected page to WebInspector as JSON string via http. The native
       
  1387         serialization to JSON string is supported by InspectorValue's classes. This patch
       
  1388         has the implementation of sendMessageToFrontend function. WebKit version of it still
       
  1389         uses ScriptFunctionCall and will be switched to another transport a little bit later.
       
  1390         https://bugs.webkit.org/show_bug.cgi?id=40134
       
  1391 
       
  1392         * WebCoreSupport/WebInspectorClient.h:
       
  1393         * WebCoreSupport/WebInspectorClient.mm:
       
  1394         (WebInspectorClient::WebInspectorClient):
       
  1395         (WebInspectorClient::openInspectorFrontend):
       
  1396 
       
  1397 2010-06-10  David Hyatt  <hyatt@apple.com>
       
  1398 
       
  1399         Reviewed by John Sullivan.
       
  1400 
       
  1401         https://bugs.webkit.org/show_bug.cgi?id=40441, back out the original fix for 29601, since it has broken continuous
       
  1402         wheel delta values.
       
  1403 
       
  1404         * WebView/WebDynamicScrollBarsView.mm:
       
  1405         (-[WebDynamicScrollBarsView scrollWheel:]):
       
  1406 
       
  1407 2010-06-09  Sheriff Bot  <webkit.review.bot@gmail.com>
       
  1408 
       
  1409         Unreviewed, rolling out r60889.
       
  1410         http://trac.webkit.org/changeset/60889
       
  1411         https://bugs.webkit.org/show_bug.cgi?id=40365
       
  1412 
       
  1413         gtk bot has some kind of memory corruption (Requested by
       
  1414         loislo on #webkit).
       
  1415 
       
  1416         * WebCoreSupport/WebInspectorClient.h:
       
  1417         * WebCoreSupport/WebInspectorClient.mm:
       
  1418         (WebInspectorClient::WebInspectorClient):
       
  1419         (WebInspectorClient::openInspectorFrontend):
       
  1420         (-[WebInspectorWindowController destroyInspectorView]):
       
  1421 
       
  1422 2010-06-07  Ilya Tikhonovsky  <loislo@chromium.org>
       
  1423 
       
  1424         Reviewed by Pavel Feldman.
       
  1425 
       
  1426         WebInspector: On the way to Remote Debugging we want to transfer dom/timeline/etc
       
  1427         data from inspected page to WebInspector as JSON string via http. The native
       
  1428         serialization to JSON string is supported by InspectorValue's classes. This patch
       
  1429         has the implementation of sendMessageToFrontend function. WebKit version of it still
       
  1430         uses ScriptFunctionCall and will be switched to another transport a little bit later.
       
  1431         https://bugs.webkit.org/show_bug.cgi?id=40134
       
  1432 
       
  1433         * WebCoreSupport/WebInspectorClient.h:
       
  1434         * WebCoreSupport/WebInspectorClient.mm:
       
  1435         (WebInspectorClient::WebInspectorClient):
       
  1436         (WebInspectorClient::openInspectorFrontend):
       
  1437 
       
  1438 2010-06-08  Mark Rowe  <mrowe@apple.com>
       
  1439 
       
  1440         Reviewed by Adele Peterson.
       
  1441 
       
  1442         <rdar://problem/8072136> REGRESSION (r56051): Inspect Element context menu does nothing in applications linked against 10.4 SDK
       
  1443 
       
  1444         * WebCoreSupport/WebContextMenuClient.mm:
       
  1445         (fixMenusReceivedFromOldClients): Fix up the tag on the Inspect Element menu item. This ensures that even if the
       
  1446         context menu layout doesn't match our expectations that the menu item will continue to trigger the web inspector.
       
  1447 
       
  1448 2010-06-08  Antonio Gomes  <tonikitoo@webkit.org>
       
  1449 
       
  1450         Reviewed by Ojan Vafai and Darin Adler.
       
  1451 
       
  1452         Refactor platform dependent editing behavior code out of Settings
       
  1453         https://bugs.webkit.org/show_bug.cgi?id=39854
       
  1454 
       
  1455         EditingBehavior enum was renamed to EditingBehaviorTypes and moved out from Settings.h to
       
  1456         EditingBehaviorTypes.h . Call sites in WebKit/ adjusted accordingly.
       
  1457 
       
  1458         * WebView/WebFrame.mm:
       
  1459         (core):
       
  1460         * WebView/WebFrameInternal.h:
       
  1461         * WebView/WebView.mm:
       
  1462         (-[WebView _preferencesChangedNotification:]):
       
  1463 
       
  1464 2010-06-06  MORITA Hajime  <morrita@google.com>
       
  1465 
       
  1466         Unreviewd, follow up to r60820
       
  1467 
       
  1468         https://bugs.webkit.org/show_bug.cgi?id=40219
       
  1469         [Mac] ENABLE_METER_TAG should be enabled
       
  1470         
       
  1471         Added ENABLE_METER_TAG.
       
  1472 
       
  1473         * Configurations/FeatureDefines.xcconfig:
       
  1474 
       
  1475 2010-06-06  Gavin Barraclough  <barraclough@apple.com>
       
  1476 
       
  1477         Reviewed by Sam Weinig.
       
  1478 
       
  1479         Bug 40214 - Clean up error construction / throwing in JSC.
       
  1480         
       
  1481         The one egregious insanity here is that creating an error requires
       
  1482         a VM-entry-esqe-host call (the string argument is wrapped as a JS
       
  1483         object & pushed on the RegisterFile, then unwrapped back to a
       
  1484         UString).  Changing this also means you only require a global
       
  1485         object, not an ExecState, to create an error.
       
  1486 
       
  1487         The methods to create error objects are also parameterized
       
  1488         requiring a switch on the type, which can be made cleaner and
       
  1489         faster by moving to a separate method per error type.  Code to add
       
  1490         divot information to error had been duplicated, and is coalesced
       
  1491         back into a single function.
       
  1492 
       
  1493         Convenience methods added to create & throw type & syntax error
       
  1494         with a default error message, since this is a common case.
       
  1495 
       
  1496         Also, errors are currently thrown either using
       
  1497         "throwError(exec, error)" or "exec->setException(error)" - unify
       
  1498         on the former, since this is more commonly used.  Add
       
  1499         "throwVMError(exec, error)" equivalents, as a convenience for
       
  1500         cases where the result was being wrapped in "JSValue::encode(...)".
       
  1501 
       
  1502         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
       
  1503         (WebKit::NetscapePluginInstanceProxy::moveGlobalExceptionToExecState):
       
  1504         * Plugins/Hosted/ProxyInstance.mm:
       
  1505         (WebKit::ProxyInstance::invokeMethod):
       
  1506 
       
  1507 2010-06-02  Gavin Barraclough  <barraclough@apple.com>
       
  1508 
       
  1509         Reviewed by Oliver Hunt.
       
  1510 
       
  1511         Bug 40094 - The return type of NativeFunction should be EncodedJSValue
       
  1512         On Windows & Linux, using JSVALUE32_64, EncodedJSValue is returned in registers, but JSValue is not.
       
  1513 
       
  1514         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
       
  1515         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
       
  1516         (WebKit::NetscapePluginInstanceProxy::invoke):
       
  1517 
       
  1518 2010-06-02  Sterling Swigart  <sswigart@google.com>
       
  1519 
       
  1520         Reviewed by David Levin.
       
  1521 
       
  1522         Image Resizer Patch 0: Added compilation argument to conditionally compile pending patches.
       
  1523         https://bugs.webkit.org/show_bug.cgi?id=39906
       
  1524 
       
  1525         * Configurations/FeatureDefines.xcconfig:
       
  1526 
       
  1527 2010-06-01  David Hyatt  <hyatt@apple.com>
       
  1528 
       
  1529         Reviewed by Anders Carlsson.
       
  1530 
       
  1531         Add a preference for paginating during layout (the new model for computing page breaks).
       
  1532 
       
  1533         * WebView/WebPreferenceKeysPrivate.h:
       
  1534         * WebView/WebPreferences.mm:
       
  1535         (-[WebPreferences paginateDuringLayoutEnabled]):
       
  1536         (-[WebPreferences setPaginateDuringLayoutEnabled:]):
       
  1537         * WebView/WebPreferencesPrivate.h:
       
  1538         * WebView/WebView.mm:
       
  1539         (-[WebView _preferencesChangedNotification:]):
       
  1540 
       
  1541 2010-06-01  Kevin Decker  <kdecker@apple.com>
       
  1542 
       
  1543         Reviewed by Simon Fraser.
       
  1544 
       
  1545         https://bugs.webkit.org/show_bug.cgi?id=40025
       
  1546         <rdar://problem/8046273> All Flash content crashes after installing CS5 Design Premium.
       
  1547         
       
  1548         * Plugins/WebBaseNetscapePluginView.mm:
       
  1549         (-[WebBaseNetscapePluginView supportsSnapshotting]): Do not support snapshotting Flash 10.1 if
       
  1550         the version is less than 10.1.53.60.
       
  1551 
       
  1552 2010-06-01  Alexey Proskuryakov  <ap@apple.com>
       
  1553 
       
  1554         Reviewed by Sam Weinig.
       
  1555 
       
  1556         https://bugs.webkit.org/show_bug.cgi?id=39434
       
  1557         REGRESSION (r59811): Geolocation callbacks cannot be created
       
  1558 
       
  1559         Removing unused WebGeolocationMock.
       
  1560 
       
  1561         * WebCoreSupport/WebGeolocationMock.mm: Removed.
       
  1562         * WebCoreSupport/WebGeolocationMockPrivate.h: Removed.
       
  1563         * WebKit.exp:
       
  1564 
       
  1565 2010-05-30  Darin Adler  <darin@apple.com>
       
  1566 
       
  1567         Reviewed by Sam Weinig.
       
  1568 
       
  1569         Make more HTML DOM members private, especially constructors, third and final batch
       
  1570         https://bugs.webkit.org/show_bug.cgi?id=39916
       
  1571 
       
  1572         * WebView/WebHTMLRepresentation.mm:
       
  1573         (-[WebHTMLRepresentation elementWithName:inForm:]): Use the new HTMLFormElement
       
  1574         function, associatedElements, rather than getting directly at a data member
       
  1575         named formElements.
       
  1576         (-[WebHTMLRepresentation controlsInForm:]): Ditto.
       
  1577 
       
  1578 2010-05-28  Geoffrey Garen  <ggaren@apple.com>
       
  1579 
       
  1580         Reviewed by Sam Weinig, Gavin Barraclough, Oliver Hunt.
       
  1581 
       
  1582         Simplified the host calling convention.
       
  1583 
       
  1584         PART ONE: Functional code changes.
       
  1585         
       
  1586         [ None in WebKit ]
       
  1587         
       
  1588         PART TWO: Global search and replace.
       
  1589         
       
  1590         In the areas below, I used global search-and-replace to change
       
  1591             (ExecState*, JSObject*, JSValue, const ArgList&) => (ExecState*)
       
  1592             args.size() => exec->argumentCount()
       
  1593             args.at(i) => exec->argument(i)
       
  1594 
       
  1595         * Plugins/Hosted/ProxyInstance.h:
       
  1596         * Plugins/Hosted/ProxyInstance.mm:
       
  1597         (WebKit::ProxyInstance::invoke):
       
  1598         (WebKit::ProxyInstance::invokeMethod):
       
  1599         (WebKit::ProxyInstance::invokeDefaultMethod):
       
  1600 
       
  1601 2010-05-27  Beth Dakin  <bdakin@apple.com>
       
  1602 
       
  1603         Reviewed by Simon Fraser.
       
  1604 
       
  1605         Change z-component to 1.
       
  1606 
       
  1607         * WebView/WebHTMLView.mm:
       
  1608         (-[WebHTMLView viewDidMoveToWindow]):
       
  1609         (-[WebHTMLView attachRootLayer:]):
       
  1610 
       
  1611 2010-05-26  Simon Fraser  <simon.fraser@apple.com>
       
  1612 
       
  1613         Reviewed by Beth Dakin and Darin Adler.
       
  1614 
       
  1615         Fix for <rdar://problem/7464703> HiDPI: [Layers] Compositing layers 
       
  1616         do not scale properly when running with a resolution independent 
       
  1617         scale
       
  1618 
       
  1619         Apply the userSpaceScaleFactor as a scale on the layerHostingView.
       
  1620 
       
  1621         * WebView/WebHTMLView.mm:
       
  1622         (-[WebHTMLView viewDidMoveToWindow]):
       
  1623         (-[WebHTMLView attachRootLayer:]):
       
  1624 
       
  1625 2010-05-25  Alexey Proskuryakov  <ap@apple.com>
       
  1626 
       
  1627         Reviewed by Darin Adler.
       
  1628 
       
  1629         https://bugs.webkit.org/show_bug.cgi?id=39621
       
  1630         <rdar://problem/8009738> Extreme memory growth on DOM Hanoi test
       
  1631 
       
  1632         Removed formStateDidChange support, which is not needed by any client.
       
  1633 
       
  1634         * WebCoreSupport/WebChromeClient.h:
       
  1635         (WebChromeClient::formStateDidChange):
       
  1636         * WebCoreSupport/WebChromeClient.mm:
       
  1637         * WebView/WebUIDelegatePrivate.h:
       
  1638 
       
  1639 2010-05-25  Brady Eidson  <beidson@apple.com>
       
  1640 
       
  1641         Reviewed by Darin Adler.
       
  1642 
       
  1643         Database origins aren't populated at launch (missing db in prefs sheet, possible other symptoms)
       
  1644         <rdar://problem/8013233> and https://bugs.webkit.org/show_bug.cgi?id=39486
       
  1645 
       
  1646         * Storage/WebDatabaseManager.mm:
       
  1647         (WebKitInitializeDatabasesIfNecessary): Call initializeTracker() instead of trying to set the path on
       
  1648           an already created tracker that already has its origins populated.
       
  1649 
       
  1650 2010-05-24  Darin Adler  <darin@apple.com>
       
  1651 
       
  1652         Reviewed by Eric Seidel.
       
  1653 
       
  1654         Move view-related functions from Frame to FrameView
       
  1655         https://bugs.webkit.org/show_bug.cgi?id=39366
       
  1656 
       
  1657         * WebView/WebView.mm:
       
  1658         (-[WebView _setZoomMultiplier:isTextOnly:]): Call function on FrameView.
       
  1659         (-[WebView setEditable:]): Get rid of call to empty function,
       
  1660         removeEditingStyleFromBodyElement.
       
  1661 
       
  1662 2010-05-21  David Hyatt  <hyatt@apple.com>
       
  1663 
       
  1664         Reviewed by Dan Bernstein.
       
  1665 
       
  1666         https://bugs.webkit.org/show_bug.cgi?id=39420
       
  1667 
       
  1668         Make sure everyone who needs to is using visitedDependentColor rather than accessing styles
       
  1669         directly.
       
  1670 
       
  1671         * Misc/WebNSAttributedStringExtras.mm:
       
  1672         (+[NSAttributedString _web_attributedStringFromRange:]):
       
  1673         * WebView/WebFrame.mm:
       
  1674         (-[WebFrame _bodyBackgroundColor]):
       
  1675 
       
  1676 2010-05-21  Oliver Hunt  <oliver@apple.com>
       
  1677 
       
  1678         Reviewed by Geoffrey Garen.
       
  1679 
       
  1680         All callable objects should have a global object reference
       
  1681         https://bugs.webkit.org/show_bug.cgi?id=39495
       
  1682 
       
  1683         Update the plugin proxy to handle the need for global object.
       
  1684 
       
  1685         * Plugins/Hosted/ProxyInstance.mm:
       
  1686         (WebKit::ProxyInstance::newRuntimeObject):
       
  1687         (WebKit::ProxyRuntimeMethod::ProxyRuntimeMethod):
       
  1688         (WebKit::ProxyInstance::getMethod):
       
  1689         * Plugins/Hosted/ProxyRuntimeObject.h:
       
  1690         * Plugins/Hosted/ProxyRuntimeObject.mm:
       
  1691         (WebKit::ProxyRuntimeObject::ProxyRuntimeObject):
       
  1692 
       
  1693 2010-05-21  Steve Block  <steveblock@google.com>
       
  1694 
       
  1695         Reviewed by Jeremy Orlow.
       
  1696 
       
  1697         Add DeviceOrientation and DeviceOrientationClient
       
  1698         https://bugs.webkit.org/show_bug.cgi?id=39479
       
  1699 
       
  1700         * WebView/WebView.mm:
       
  1701         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
       
  1702 
       
  1703 2010-05-20  Mike Thole  <mthole@apple.com>
       
  1704 
       
  1705         Reviewed by Dave Hyatt.
       
  1706 
       
  1707         When using a scale factor > 1, scrollbars sometimes appear when not necessary
       
  1708         https://bugs.webkit.org/show_bug.cgi?id=39458
       
  1709 
       
  1710         * WebView/WebDynamicScrollBarsView.mm:
       
  1711         (-[WebDynamicScrollBarsView updateScrollers]): Round up non-integral sizes from AppKit
       
  1712         so that they can be compared against the integral document size.
       
  1713 
       
  1714 2010-05-20  Kevin Decker  <kdecker@apple.com>
       
  1715 
       
  1716         Reviewed by Anders Carlsson.
       
  1717 
       
  1718         https://bugs.webkit.org/show_bug.cgi?id=39441
       
  1719         <rdar://problem/7985715> Flash context menu is both horizontally and vertically offset from point of click
       
  1720         <rdar://problem/7986109> Youtube video controller UI entirely missing
       
  1721         <rdar://problem/7986154> Flash content paints at horizontally and vertically shifted locations (within the plug-in region)
       
  1722 
       
  1723         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
       
  1724         (-[WebHostedNetscapePluginView updateAndSetWindow]): The base coordinates of a window and
       
  1725          it's contentView happen to be the equal at a userSpaceScaleFactor of 1. For non-1.0 scale
       
  1726          factors this assumption is false. Accordingly we now convert to the window contentView
       
  1727         coordinate system when computing bounds in "window" and the visible rect.
       
  1728         * Plugins/WebNetscapePluginView.mm:
       
  1729         (-[WebNetscapePluginView saveAndSetNewPortStateForUpdate:]): Ditto.
       
  1730 
       
  1731 2010-05-20  Steve Block  <steveblock@google.com>
       
  1732 
       
  1733         Reviewed by Jeremy Orlow.
       
  1734 
       
  1735         Provide bindings for DeviceOrientation
       
  1736         https://bugs.webkit.org/show_bug.cgi?id=39210
       
  1737 
       
  1738         Adds ENABLE_DEVICE_ORIENTATION to XCode project file, always disabled.
       
  1739 
       
  1740         * Configurations/FeatureDefines.xcconfig:
       
  1741 
       
  1742 2010-05-20  Martin Robinson  <mrobinson@webkit.org>
       
  1743 
       
  1744         Reviewed by Ojan Vafai.
       
  1745 
       
  1746         Expose the editing behavior setting in DRT to test all editing code paths
       
  1747         https://bugs.webkit.org/show_bug.cgi?id=38603
       
  1748 
       
  1749         * WebView/WebFrame.mm:
       
  1750         (core):
       
  1751         * WebView/WebFrameInternal.h: Added a conversion method from the API enum to the WebCore enum.
       
  1752         * WebView/WebPreferenceKeysPrivate.h: Added a preference key for the new setting.
       
  1753         * WebView/WebPreferences.mm:
       
  1754         (+[WebPreferences initialize]): Initialize the EditingBehavior to Mac style.
       
  1755         (-[WebPreferences editingBehavior]): Added.
       
  1756         (-[WebPreferences setEditingBehavior:]): Added.
       
  1757         * WebView/WebPreferencesPrivate.h: Added the new API points to the private API.
       
  1758         * WebView/WebView.mm:
       
  1759         (-[WebView _preferencesChangedNotification:]): Set the editing behavior via the WebPreferences setting.
       
  1760 
       
  1761 2010-05-19  Anders Carlsson  <andersca@apple.com>
       
  1762 
       
  1763         Reviewed by Kevin Decker and Simon Fraser.
       
  1764 
       
  1765         <rdar://problem/8004528> 
       
  1766         REGRESSION: Coordinate system for Core Animation NPAPI plug-ins is flipped with accelerated compositing turned on
       
  1767         
       
  1768         When needed, create a new CALayer and set it's geometry to be flipped. Add the plug-in layer as a sublayer and then return
       
  1769         the newly created layer.
       
  1770 
       
  1771         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
       
  1772         (-[WebHostedNetscapePluginView createPlugin]):
       
  1773         * Plugins/WebNetscapePluginView.mm:
       
  1774         (-[WebNetscapePluginView createPlugin]):
       
  1775 
       
  1776 2010-05-18  Tony Chang  <tony@chromium.org>
       
  1777 
       
  1778         Reviewed by Darin Adler.
       
  1779 
       
  1780         https://bugs.webkit.org/show_bug.cgi?id=24943
       
  1781         Command-B and Command-I do not generate keydown events in contentEditable regions.
       
  1782 
       
  1783         Manual test because performKeyEquivalent is not called by DRT.
       
  1784 
       
  1785         Test: manual-tests/style-keypress-events.html
       
  1786 
       
  1787         * WebView/WebHTMLView.mm:
       
  1788         (-[WebHTMLView performKeyEquivalent:]): Move style key handling until after webcore gets a chance to handle the event
       
  1789 
       
  1790 2010-05-18  Daniel Cheng  <dcheng@chromium.org>
       
  1791 
       
  1792         Reviewed by Darin Adler, Jian Li.
       
  1793 
       
  1794         DragData::asURL() shouldn't do file validity checks
       
  1795         https://bugs.webkit.org/show_bug.cgi?id=38711
       
  1796 
       
  1797         Change [NSPasteboard _web_bestURL] to still return a file URL for paths
       
  1798         that don't exist. Callers who care about the existence of the file or
       
  1799         whether or not it is a directory should check themselves when they
       
  1800         want to use the file. The directory check has been left in for now,
       
  1801         since the Mac implementation of ResourceHandle, which uses this function
       
  1802         indirectly via DragController::performDrag) handles directories somewhat
       
  1803         non-intuitively: it opens the parent directory in the Finder, rather
       
  1804         than opening the directory itself.
       
  1805 
       
  1806         * Misc/WebNSPasteboardExtras.mm:
       
  1807         (-[NSPasteboard _web_bestURL]):
       
  1808 
       
  1809 2010-05-18  Eric Seidel  <eric@webkit.org>
       
  1810 
       
  1811         Reviewed by Adam Barth (and Maciej Stachowiak).
       
  1812 
       
  1813         Make it possible to enable the new HTML5Tokenizer for testing
       
  1814         https://bugs.webkit.org/show_bug.cgi?id=39275
       
  1815 
       
  1816         Expose the WebCore::Settings::html5ParserEnabled as a private WebKit setting.
       
  1817 
       
  1818         * WebView/WebPreferenceKeysPrivate.h:
       
  1819         * WebView/WebPreferences.mm:
       
  1820         (-[WebPreferences html5ParserEnabled]):
       
  1821         (-[WebPreferences setHTML5ParserEnabled:]):
       
  1822         * WebView/WebPreferencesPrivate.h:
       
  1823         * WebView/WebView.mm:
       
  1824         (-[WebView _preferencesChangedNotification:]):
       
  1825 
       
  1826 2010-05-17  Sheriff Bot  <webkit.review.bot@gmail.com>
       
  1827 
       
  1828         Unreviewed, rolling out r59652.
       
  1829         http://trac.webkit.org/changeset/59652
       
  1830         https://bugs.webkit.org/show_bug.cgi?id=39268
       
  1831 
       
  1832         file-input-files-access test is broken on Mac (Requested by
       
  1833         dcheng on #webkit).
       
  1834 
       
  1835         * Misc/WebNSPasteboardExtras.mm:
       
  1836         (-[NSPasteboard _web_bestURL]):
       
  1837 
       
  1838 2010-05-17  Daniel Cheng  <dcheng@chromium.org>
       
  1839 
       
  1840         Reviewed by Darin Adler.
       
  1841 
       
  1842         DragData::asURL() shouldn't do file validity checks
       
  1843         https://bugs.webkit.org/show_bug.cgi?id=38711
       
  1844 
       
  1845         Change [NSPasteboard _web_bestURL] to still return a file URL for paths
       
  1846         that don't exist. Callers who care about the existence of the file or
       
  1847         whether or not it is a directory should check themselves when they
       
  1848         want to use the file. The directory check has been left in for now,
       
  1849         since the Mac implementation of ResourceHandle, which uses this function
       
  1850         indirectly via DragController::performDrag) handles directories somewhat
       
  1851         non-intuitively: it opens the parent directory in the Finder, rather
       
  1852         than opening the directory itself.
       
  1853 
       
  1854         * Misc/WebNSPasteboardExtras.mm:
       
  1855         (-[NSPasteboard _web_bestURL]):
       
  1856 
       
  1857 2010-05-14  Stephanie Lewis  <slewis@apple.com>
       
  1858 
       
  1859         Rubber-stamped by Mark Rowe.
       
  1860 
       
  1861         Update order files.
       
  1862 
       
  1863         * WebKit.order:
       
  1864 
       
  1865 2010-05-13  Timothy Hatcher  <timothy@apple.com>
       
  1866 
       
  1867         Allow reporting exceptions that occur when using JavaScriptCore APIs
       
  1868         to the Web Inspector.
       
  1869 
       
  1870         <rdar://problem/7975410>
       
  1871 
       
  1872         Reviewed by Sam Weinig.
       
  1873 
       
  1874         * WebView/WebView.mm:
       
  1875         (+[WebView _reportException:inContext:]): Call WebCore::reportException after checking
       
  1876         that the global object is a DOMWindow.
       
  1877         * WebView/WebViewPrivate.h: Added _reportException:inContext:.
       
  1878 
       
  1879 2010-05-13  Alexey Proskuryakov  <ap@apple.com>
       
  1880 
       
  1881         Reviewed by Darin Adler.
       
  1882 
       
  1883         https://bugs.webkit.org/show_bug.cgi?id=39089
       
  1884         <rdar://problem/7974044> Domain names in Russian '.рф' domain are displayed as punycode
       
  1885 
       
  1886         Add a custom check for this domain. Currently, this is the only non-ASCII TLD, we'll
       
  1887         investigate a more extensible solution when there are more, and we know what the
       
  1888         typical restictions are.
       
  1889 
       
  1890         * Misc/WebNSURLExtras.mm:
       
  1891         (allCharactersAllowedByTLDRules):
       
  1892         (-[NSString _web_mapHostNameWithRange:encode:makeString:]):
       
  1893 
       
  1894 2010-05-12  Simon Fraser  <simon.fraser@apple.com>
       
  1895 
       
  1896         Reviewed by David Hyatt.
       
  1897 
       
  1898         Composited plug-ins can cause missed painting
       
  1899         https://bugs.webkit.org/show_bug.cgi?id=39033
       
  1900         <rdar://problem/7972478>
       
  1901         
       
  1902         Eagerly enable compositing mode via the enclosing FrameView when the plug-in tells us it wants
       
  1903         to do compositing.
       
  1904 
       
  1905         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
       
  1906         (-[WebHostedNetscapePluginView createPlugin]):
       
  1907         * Plugins/WebNetscapePluginView.mm:
       
  1908         (-[WebNetscapePluginView createPlugin]):
       
  1909 
       
  1910 2010-05-12  Jer Noble  <jer.noble@apple.com>
       
  1911 
       
  1912         Reviewed by Darin Adler.
       
  1913 
       
  1914         Bug 38689: #34005 will break fullscreen video playback
       
  1915         https://bugs.webkit.org/show_bug.cgi?id=38689
       
  1916 
       
  1917         Use the new definition of PlatformMedia to check the actual type 
       
  1918         returned by MediaPlayer.
       
  1919         
       
  1920         * WebView/WebVideoFullscreenController.mm:
       
  1921         (-[WebVideoFullscreenController windowDidLoad]):
       
  1922 
       
  1923 2010-05-11  Mark Rowe  <mrowe@apple.com>
       
  1924 
       
  1925         Fix the world.
       
  1926 
       
  1927         In r59162 a change was made to WebCore's FeatureDefines.xcconfig that enabled FILE_READER and FILE_WRITER.
       
  1928         The author and reviewer of that patch ignored the carefully-worded warning at the top of that file asking
       
  1929         that changes to the file be kept in sync across JavaScriptCore, WebCore and WebKit, as well as being kept
       
  1930         in sync with build-webkit.  This led to WebCore and WebKit having different views of Document's vtable
       
  1931         and results in crashes in Safari shortly after launch when virtual function calls resulted in the wrong
       
  1932         function in WebCore being called.
       
  1933 
       
  1934         We fix this by bringing the FeatureDefines.xcconfig files in to sync.  Based on the ChangeLog message and
       
  1935         other changes in r59162 it appears that enabling FILE_WRITER was unintentional so that particular change
       
  1936         has been reverted.
       
  1937 
       
  1938         * Configurations/FeatureDefines.xcconfig:
       
  1939 
       
  1940 2010-05-10  Simon Fraser  <simon.fraser@apple.com>
       
  1941 
       
  1942         Reviewed by Anders Carlsson.
       
  1943 
       
  1944         Allow compositing layers to be connected across iframe boundaries on Mac
       
  1945         https://bugs.webkit.org/show_bug.cgi?id=38856
       
  1946         
       
  1947         When painting an iframe into a compositing layer, the "PaintBehaviorFlattenCompositingLayers"
       
  1948         flag was mistakenly set, because we'd detect that we were drawing into a bitmap. This caused
       
  1949         content to show up in both compositing layers, and the painted background inside the iframe.
       
  1950         
       
  1951         Fix by taking the flattening state from the parent frame, if there is one. For the root
       
  1952         frame, we continue to look to see if we're painting into a bitmap.
       
  1953 
       
  1954         * WebView/WebFrame.mm:
       
  1955         (-[WebFrame _drawRect:contentsOnly:]):
       
  1956 
       
  1957 2010-05-10  Timothy Hatcher  <timothy@apple.com>
       
  1958 
       
  1959         Fix a crash when closing a WebView while the Web Inspector is open.
       
  1960 
       
  1961         <rdar://problem/7966830>
       
  1962 
       
  1963         Reviewed by Mark Rowe.
       
  1964 
       
  1965         * WebCoreSupport/WebInspectorClient.mm:
       
  1966         (-[WebInspectorWindowController destroyInspectorView]): Null check Page since it can be null.
       
  1967         * WebView/WebView.mm:
       
  1968         (-[WebView _close]): Null out _private->page before deleting the page, so code called
       
  1969         during destruction don't access a half deleted Page object.
       
  1970 
       
  1971 2010-05-10  Anders Carlsson  <andersca@apple.com>
       
  1972 
       
  1973         Unbreak the world. (Fix Mac builds).
       
  1974 
       
  1975         * Plugins/Hosted/WebKitPluginHostTypes.h:
       
  1976 
       
  1977 2010-05-10  Anders Carlsson  <andersca@apple.com>
       
  1978 
       
  1979         Reviewed by Simon Fraser.
       
  1980 
       
  1981         Change the order of the RendererType enum values, so that old versions of WebKitPluginHost will
       
  1982         use accelerated compositing and not layer backed views.
       
  1983 
       
  1984         * Plugins/Hosted/WebKitPluginHostTypes.h:
       
  1985 
       
  1986 2010-05-07  Anders Carlsson  <andersca@apple.com>
       
  1987 
       
  1988         Reviewed by Sam Weinig and Simon Fraser.
       
  1989 
       
  1990         <rdar://problem/7947356>
       
  1991         QT Plug-in in hardware-accelerated WebKit is missing the controller
       
  1992 
       
  1993         Replace the useSoftwareRenderer boolean with an enum that lets the plug-in host opt into using a layer
       
  1994         backed NSView instead of inserting the layer into the WebCore layer hierarchy.
       
  1995 
       
  1996         * Plugins/Hosted/NetscapePluginHostManager.mm:
       
  1997         (WebKit::NetscapePluginHostManager::instantiatePlugin):
       
  1998         * Plugins/Hosted/NetscapePluginHostProxy.mm:
       
  1999         (WKPCInstantiatePluginReply):
       
  2000         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
       
  2001         (WebKit::NetscapePluginInstanceProxy::rendererType):
       
  2002         (WebKit::NetscapePluginInstanceProxy::setRendererType):
       
  2003         (WebKit::NetscapePluginInstanceProxy::InstantiatePluginReply::InstantiatePluginReply):
       
  2004         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
       
  2005         (WebKit::NetscapePluginInstanceProxy::NetscapePluginInstanceProxy):
       
  2006         Replace the useSoftwareRenderer boolean everywhere with the RendererType enum.
       
  2007         
       
  2008         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
       
  2009         (-[WebHostedNetscapePluginView createPlugin]):
       
  2010         Only go into full compositing mode when the renderer type returned is UseAcceleratedCompositing.
       
  2011         Otherwise, use a layer backed NSView.
       
  2012 
       
  2013         * Plugins/Hosted/WebKitPluginHostTypes.h:
       
  2014         Add a RendererType enum.
       
  2015 
       
  2016 2010-05-06  Anders Carlsson  <andersca@apple.com>
       
  2017 
       
  2018         Reviewed by Darin Adler and Dan Bernstein..
       
  2019 
       
  2020         REGRESSION (r51617): when plugins are disabled, plugins show up as garbage characters
       
  2021         https://bugs.webkit.org/show_bug.cgi?id=38698
       
  2022         <rdar://problem/7942075>
       
  2023 
       
  2024         When the plug-in database is initialized, we will register all the MIME types it supports with the global
       
  2025         WebView dictionary. When plug-ins are disabled for a single web view, the MIME types still need to be 
       
  2026         in the global mapping (because other web views might still have plug-ins enabled).
       
  2027         
       
  2028         Prior to r51617 we would always look at the plug-in database to determine that the MIME type belongs to a 
       
  2029         plug-in, but now we won't even touch the plug-in database when plug-ins are disabled.
       
  2030         
       
  2031         In order to fix this, a new set of registered MIME types that are known to be plug-ins is added. When
       
  2032         +[WebView _viewClass:andRepresentationClass:forMIMEType:allowingPlugins:] is called and allowingPlugins is FALSE
       
  2033         we check if the MIME type is a known plug-in MIME type and return false in that case.
       
  2034         
       
  2035         * Plugins/WebPluginDatabase.mm:
       
  2036         (-[WebPluginDatabase refresh]):
       
  2037         (-[WebPluginDatabase _removePlugin:]):
       
  2038         * WebView/WebView.mm:
       
  2039         (knownPluginMIMETypes):
       
  2040         (+[WebView _registerPluginMIMEType:]):
       
  2041         (+[WebView _unregisterPluginMIMEType:]):
       
  2042         (+[WebView _viewClass:andRepresentationClass:forMIMEType:allowingPlugins:]):
       
  2043         * WebView/WebViewInternal.h:
       
  2044 
       
  2045 2010-05-06  Dan Bernstein  <mitz@apple.com>
       
  2046 
       
  2047         Reviewed by Simon Fraser.
       
  2048 
       
  2049         <rdar://problem/7951285> REGRESSION (r58847): Composited iframe content obscures Safari's application chrome
       
  2050 
       
  2051         Fixed this other regression from r58847. The regression was caused by overriding -visibleRect to
       
  2052         return the WebClipView’s full bounds. AppKit uses -visibleRect to determine the geometry
       
  2053         of the surface for the child WebFrameView. The fix is to restrict the special behavior of
       
  2054         -[WebClipView visibleRect] to when AppKit is consulting it for the purpose of invalidating
       
  2055         areas while scrolling.
       
  2056 
       
  2057         * WebView/WebClipView.h:
       
  2058         * WebView/WebClipView.mm:
       
  2059         (-[WebClipView visibleRect]): If the WebClipView is not scrolling, always return
       
  2060         [super visibleRect]. 
       
  2061         (-[WebClipView _immediateScrollToPoint:]): Override this internal NSClipView method
       
  2062         to set a flag telling -visibleRect that the view is scrolling.
       
  2063         * WebView/WebView.mm:
       
  2064         (layerSyncRunLoopObserverCallBack): Ensure that screen updates, disabled by AppKit
       
  2065         when it thinks an upcoming window flush will re-enable them, are enabled here in
       
  2066         case the -setNeedsDisplayInRect: override has prevented the window from needing to be
       
  2067         flushed.
       
  2068 
       
  2069 2010-05-06  Steve Block  <steveblock@google.com>
       
  2070 
       
  2071         Reviewed by Eric Seidel.
       
  2072 
       
  2073         MAC_JAVA_BRIDGE should be renamed JAVA_BRIDGE
       
  2074         https://bugs.webkit.org/show_bug.cgi?id=38544
       
  2075 
       
  2076         * WebCoreSupport/WebFrameLoaderClient.h:
       
  2077         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  2078 
       
  2079 2010-05-05  Dan Bernstein  <mitz@apple.com>
       
  2080 
       
  2081         Reviewed by Mark Rowe.
       
  2082 
       
  2083         Fixed a crash when closing Top Sites after r58847.
       
  2084 
       
  2085         * WebView/WebFrameView.mm:
       
  2086         (-[WebFrameView webFrame]): Null-check _private.
       
  2087 
       
  2088 2010-05-05  Dan Bernstein  <mitz@apple.com>
       
  2089 
       
  2090         Rubber-stamped by Mark Rowe.
       
  2091 
       
  2092         Fixed test crashes after r58847.
       
  2093 
       
  2094         * WebView/WebHTMLView.mm:
       
  2095         (setNeedsDisplayInRect): Null-check the frame.
       
  2096 
       
  2097 2010-05-05  Dan Bernstein  <mitz@apple.com>
       
  2098 
       
  2099         Reviewed by Simon Fraser.
       
  2100 
       
  2101         <rdar://problem/7932072> Iframes in composited layers don’t repaint correctly (affects Yahoo! Mail with Flash Player 10.1)
       
  2102         https://bugs.webkit.org/show_bug.cgi?id=38427
       
  2103 
       
  2104         * WebView/WebClipView.m: Renamed to WebClipView.mm.
       
  2105         * WebView/WebClipView.mm:
       
  2106         (-[WebClipView visibleRect]): Added this override, which for instances used for WebFrameViews in
       
  2107         composited layers, returns the clip view’s entire bounds. This prevents drawing from being clipped to
       
  2108         AppKit’s idea of what part of the view would be visible if it was drawn as part of the view hierarchy.
       
  2109         Since it is drawn into a compositing layer, that’s irrelevant, and we should not be clipping.
       
  2110         * WebView/WebHTMLView.mm:
       
  2111         (setCursor): Style tweak.
       
  2112         (setNeedsDisplayInRect): Added. Replaces the default implementation of -[NSView setNeedsDisplayInRect:],
       
  2113         so that if the receiver is a descendant of a WebFrameView that draws into a composited layer, the invalidation
       
  2114         is routed back through the WebCore FrameView, which propagates it to the layer.
       
  2115         (+[WebHTMLViewPrivate initialize]): Swizzle the setNeedsDisplayInRect: override in.
       
  2116         (-[WebHTMLView visibleRect]): Removed whitespace.
       
  2117         * WebView/WebView.mm:
       
  2118         (layerSyncRunLoopObserverCallBack): If we bailed out on syncing, due to pending layout, do an eager layout
       
  2119         in preparation for the displaying of compositing layers.
       
  2120 
       
  2121 2010-05-05  John Sullivan  <sullivan@apple.com>
       
  2122 
       
  2123         <rdar://problem/7942606> Output appears in Console when exiting Safari with multiple windows opened
       
  2124 
       
  2125         Reviewed by Mark Rowe.
       
  2126 
       
  2127         * WebView/WebView.mm:
       
  2128         (+[WebView closeAllWebViews]):
       
  2129         Make copy of allWebViewsSet to avoid mutating it while iterating through it.
       
  2130 
       
  2131 2010-05-04  Simon Fraser  <simon.fraser@apple.com>
       
  2132 
       
  2133         Reviewed by Dan Bernstein.
       
  2134 
       
  2135         Improve check for drawing into the window that was added in r58623
       
  2136         https://bugs.webkit.org/show_bug.cgi?id=38562
       
  2137         
       
  2138         Rather than assuming that any non-bitmap context is the window's context,
       
  2139         compare the current graphics context with -[NSWindow graphicsContext] to
       
  2140         determine that we're drawing into the window.
       
  2141 
       
  2142         * WebView/WebHTMLView.mm:
       
  2143         (-[WebHTMLView drawRect:]):
       
  2144 
       
  2145 2010-05-04  Ada Chan  <adachan@apple.com>
       
  2146 
       
  2147         Reviewed by David Kilzer.
       
  2148 
       
  2149         https://bugs.webkit.org/show_bug.cgi?id=38555
       
  2150         
       
  2151         Small code refactoring: move the logic to figure out the path to the 
       
  2152         databases directory to another method.
       
  2153 
       
  2154         * Storage/WebDatabaseManager.mm:
       
  2155         (databasesDirectoryPath):
       
  2156         (WebKitInitializeDatabasesIfNecessary):
       
  2157 
       
  2158 2010-05-04  Beth Dakin  <bdakin@apple.com>
       
  2159 
       
  2160         Reviewed by Mike Thole.
       
  2161 
       
  2162         Fix for <rdar://problem/7818509> Crash occurs when exiting Safari
       
  2163 
       
  2164         We can avoid this crash if we call [self _removeFromAllWebViewsSet] 
       
  2165         even in the case when we are doing a fastDocumentTeardown. This is 
       
  2166         a much safer approach.
       
  2167         * WebView/WebView.mm:
       
  2168         (-[WebView _close]):
       
  2169 
       
  2170 2010-05-03  Abhishek Arya  <inferno@chromium.org>
       
  2171 
       
  2172         Reviewed by Adam Barth.
       
  2173 
       
  2174         Add support for controlling clipboard access from javascript.
       
  2175         Clipboard access from javascript is disabled by default.
       
  2176         https://bugs.webkit.org/show_bug.cgi?id=27751
       
  2177 
       
  2178         * WebView/WebPreferenceKeysPrivate.h:
       
  2179         * WebView/WebPreferences.mm:
       
  2180         (+[WebPreferences initialize]):
       
  2181         (-[WebPreferences javaScriptCanAccessClipboard]):
       
  2182         (-[WebPreferences setJavaScriptCanAccessClipboard:]):
       
  2183         * WebView/WebPreferencesPrivate.h:
       
  2184         * WebView/WebView.mm:
       
  2185         (-[WebView _preferencesChangedNotification:]):
       
  2186 
       
  2187 2010-05-03  Jens Alfke  <snej@chromium.org>
       
  2188 
       
  2189         Reviewed by Darin Fisher.
       
  2190 
       
  2191         [chromium] Add "willSendSubmitEvent" hook to WebFrameClient and FrameLoaderClient
       
  2192         https://bugs.webkit.org/show_bug.cgi?id=38397
       
  2193 
       
  2194         No tests (functionality is exposed only through native WebKit API.)
       
  2195 
       
  2196         * WebCoreSupport/WebFrameLoaderClient.h:
       
  2197         (WebFrameLoaderClient::dispatchWillSendSubmitEvent):
       
  2198 
       
  2199 2010-04-30  Simon Fraser  <simon.fraser@apple.com>
       
  2200 
       
  2201         Reviewed by Dan Bernstein.
       
  2202 
       
  2203         <rdar://problem/7477071> REGRESSION: Bad flicker when wheel-scrolling Google Maps, iPad gallery and other sites
       
  2204 
       
  2205         Sites that frequently toggle content in and out of compositing layers (like http://www.tumblr.com/boothed)
       
  2206         can cause flickering because of unsychronized compositing layer and view-based updates. There were two
       
  2207         underlying issues:
       
  2208         
       
  2209         1. On SnowLeopard, AppKit can throttle window updates, thus breaking an assumption that
       
  2210            NSView drawing will happen on the runloop cycle after a repaint. This provided a window
       
  2211            for the layerSyncRunLoopObserver to fire and commit layer changes too early.
       
  2212            
       
  2213            Fix this by having the layerSyncRunLoopObserver in WebView check to see if a display is pending,
       
  2214            and not commit layer changes in that case. We'll commit layer changes later when we
       
  2215            finally draw.
       
  2216            
       
  2217         2. The change in r49269 was wrong; it was attempting to fix an issue that was actually caused
       
  2218            by -drawRects: coming in for page snapshots. The correct approach is to avoid hitting the
       
  2219            synchronization and update disabling code in WebHTMLView for draws that are not to the screen.
       
  2220         
       
  2221         * WebView/WebHTMLView.mm:
       
  2222         (-[WebHTMLView drawRect:]):
       
  2223         * WebView/WebView.mm:
       
  2224         (layerSyncRunLoopObserverCallBack):
       
  2225         (-[WebView _scheduleCompositingLayerSync]):
       
  2226 
       
  2227 2010-04-30  Anders Carlsson  <andersca@apple.com>
       
  2228 
       
  2229         Part of the previous part (forgot to save).
       
  2230 
       
  2231         * Plugins/WebNetscapePluginView.mm:
       
  2232         (-[WebNetscapePluginView stopTimers]):
       
  2233         (-[WebNetscapePluginView startTimers]):
       
  2234         (-[WebNetscapePluginView checkIfAllowedToLoadURL:frame:callbackFunc:context:]):
       
  2235         (-[WebNetscapePluginView _containerCheckResult:contextInfo:]):
       
  2236         (-[WebNetscapePluginView cancelCheckIfAllowedToLoadURL:]):
       
  2237         (-[WebNetscapePluginView scheduleTimerWithInterval:repeat:timerFunc:]):
       
  2238         (-[WebNetscapePluginView unscheduleTimer:]):
       
  2239         (-[WebNetscapePluginView getVariable:forURL:value:length:]):
       
  2240         (-[WebNetscapePluginView setVariable:forURL:value:length:]):
       
  2241 
       
  2242 2010-04-30  Anders Carlsson  <andersca@apple.com>
       
  2243 
       
  2244         Reviewed by Darin Adler.
       
  2245 
       
  2246         Use C99 integer types in more places.
       
  2247 
       
  2248         * Plugins/WebNetscapePluginView.mm:
       
  2249         (getNPRect):
       
  2250 
       
  2251 2010-04-30  Anders Carlsson  <andersca@apple.com>
       
  2252 
       
  2253         Fix Tiger build.
       
  2254 
       
  2255         * Plugins/WebBaseNetscapePluginStream.h:
       
  2256         * Plugins/WebBaseNetscapePluginStream.mm:
       
  2257         (WebNetscapePluginStream::startStream):
       
  2258 
       
  2259 2010-04-30  Anders Carlsson  <andersca@apple.com>
       
  2260 
       
  2261         Another 32-bit build fix.
       
  2262 
       
  2263         * Plugins/WebNetscapePluginView.mm:
       
  2264         (-[WebNetscapePluginView saveAndSetNewPortStateForUpdate:]):
       
  2265 
       
  2266 2010-04-30  Anders Carlsson  <andersca@apple.com>
       
  2267 
       
  2268         Fix 32-bit build (again).
       
  2269 
       
  2270         * Plugins/WebNetscapeContainerCheckContextInfo.h:
       
  2271         * Plugins/WebNetscapeContainerCheckContextInfo.mm:
       
  2272         (-[WebNetscapeContainerCheckContextInfo initWithCheckRequestID:callbackFunc:context:]):
       
  2273         (-[WebNetscapeContainerCheckContextInfo checkRequestID]):
       
  2274         (-[WebNetscapeContainerCheckContextInfo callback]):
       
  2275         * Plugins/WebNetscapePluginPackage.h:
       
  2276 
       
  2277 2010-04-30  Anders Carlsson  <andersca@apple.com>
       
  2278 
       
  2279         Fix 32-bit build.
       
  2280 
       
  2281         * Plugins/WebNetscapeContainerCheckContextInfo.h:
       
  2282         * Plugins/WebNetscapeContainerCheckContextInfo.mm:
       
  2283         (-[WebNetscapeContainerCheckContextInfo initWithCheckRequestID:callbackFunc:context:]):
       
  2284         * Plugins/WebNetscapeContainerCheckPrivate.h:
       
  2285         * Plugins/WebNetscapePluginPackage.mm:
       
  2286         (functionPointerForTVector):
       
  2287         * Plugins/WebNetscapePluginView.mm:
       
  2288         (PluginTimer::PluginTimer):
       
  2289         (-[WebNetscapePluginView checkIfAllowedToLoadURL:frame:callbackFunc:context:]):
       
  2290         (-[WebNetscapePluginView scheduleTimerWithInterval:repeat:timerFunc:]):
       
  2291 
       
  2292 2010-04-30  Anders Carlsson  <andersca@apple.com>
       
  2293 
       
  2294         Reviewed by Timothy Hatcher.
       
  2295 
       
  2296         Next step towards fixing
       
  2297         
       
  2298         https://bugs.webkit.org/show_bug.cgi?id=20784
       
  2299         move npapi.h to C99 integer types
       
  2300 
       
  2301         Use the C99 types everywhere. The "old" types are still around but will be removed
       
  2302         in a subsequent commit.
       
  2303 
       
  2304         * Plugins/WebBaseNetscapePluginStream.h:
       
  2305         * Plugins/WebBaseNetscapePluginStream.mm:
       
  2306         (WebNetscapePluginStream::deliverData):
       
  2307         * Plugins/WebNetscapePluginView.h:
       
  2308         * Plugins/WebNetscapePluginView.mm:
       
  2309         (-[WebNetscapePluginView saveAndSetNewPortStateForUpdate:]):
       
  2310         (-[WebNetscapePluginView getAuthenticationInfoWithProtocol:host:port:scheme:realm:username:usernameLength:password:passwordLength:]):
       
  2311         * Plugins/npapi.mm:
       
  2312         (NPN_MemAlloc):
       
  2313         (NPN_MemFlush):
       
  2314         (NPN_PostURLNotify):
       
  2315         (NPN_PostURL):
       
  2316         (NPN_Write):
       
  2317         (NPN_ScheduleTimer):
       
  2318         (NPN_UnscheduleTimer):
       
  2319         (NPN_GetValueForURL):
       
  2320         (NPN_SetValueForURL):
       
  2321         (NPN_GetAuthenticationInfo):
       
  2322         (WKN_CheckIfAllowedToLoadURL):
       
  2323         (WKN_CancelCheckIfAllowedToLoadURL):
       
  2324 
       
  2325 2010-04-29  Anders Carlsson  <andersca@apple.com>
       
  2326 
       
  2327         Reviewed by Dan Bernstein.
       
  2328 
       
  2329         First part of
       
  2330         https://bugs.webkit.org/show_bug.cgi?id=20784
       
  2331         move npapi.h to C99 integer types.
       
  2332 
       
  2333         * MigrateHeaders.make:
       
  2334 
       
  2335 2010-04-28  Mike Thole  <mthole@apple.com>
       
  2336 
       
  2337         Reviewed by David Kilzer.
       
  2338 
       
  2339         Add canAuthenticateAgainstProtectionSpace() to frame loader so that a protection space 
       
  2340         can be inspected before attempting to authenticate against it
       
  2341         https://bugs.webkit.org/show_bug.cgi?id=38271
       
  2342 
       
  2343         * WebCoreSupport/WebFrameLoaderClient.h:
       
  2344         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  2345         (WebFrameLoaderClient::canAuthenticateAgainstProtectionSpace):
       
  2346         Added.  If the resource load delegate implements the callback, use its answer.  If it does
       
  2347         not, then only send authentication challenges for pre-10.6 protection spaces, which matches
       
  2348         CFNetwork's default behavior.
       
  2349         * WebView/WebDelegateImplementationCaching.h:
       
  2350         * WebView/WebDelegateImplementationCaching.mm:
       
  2351         (CallResourceLoadDelegateReturningBoolean): Added case for passing three objects.
       
  2352         * WebView/WebResourceLoadDelegatePrivate.h:
       
  2353         Added private SPI definition: webView:resource:canAuthenticateAgainstProtectionSpace:forDataSource:
       
  2354         * WebView/WebView.mm:
       
  2355         (-[WebView _cacheResourceLoadDelegateImplementations]):
       
  2356 
       
  2357 2010-04-28  Simon Fraser  <simon.fraser@apple.com>
       
  2358 
       
  2359         Reviewed by Sam Weinig.
       
  2360 
       
  2361         <rdar://problem/7918719> ASSERT(isMainThread()) from Font::setShouldUseSmoothing()
       
  2362         
       
  2363         Ensure that the WebView +initialize method initializes threading, so that things are correctly
       
  2364         initialized when the first call into the WebKit framework is via a WebView class method.
       
  2365 
       
  2366         * WebView/WebView.mm:
       
  2367         (+[WebView initialize]):
       
  2368 
       
  2369 2010-04-28  Darin Adler  <darin@apple.com>
       
  2370 
       
  2371         Reviewed by Adele Peterson.
       
  2372 
       
  2373         REGRESSION: Autoscroll does not work in Mail messages
       
  2374         https://bugs.webkit.org/show_bug.cgi?id=38267
       
  2375         rdar://problem/7559799
       
  2376 
       
  2377         The machinery to make autoscrolling work on Mac OS X when a WebView is embedded in another
       
  2378         view had gotten broken in multiple ways. For some reason, a combination of bugs made it
       
  2379         partly work until around r48064. This brings it back.
       
  2380 
       
  2381         * WebCoreSupport/WebChromeClient.mm:
       
  2382         (WebChromeClient::scrollRectIntoView): When converting coordinates, use the document view
       
  2383         rather than the WebView itself. This logic may not be correct for the case where
       
  2384         usesDocumentViews is NO, but that is currently an experimental mode and can be fixed later.
       
  2385 
       
  2386 2010-04-27  Shinichiro Hamaji  <hamaji@chromium.org>
       
  2387 
       
  2388         Reviewed by Darin Adler and Eric Seidel.
       
  2389 
       
  2390         Add layoutTestController.setPrinting()
       
  2391         https://bugs.webkit.org/show_bug.cgi?id=37203
       
  2392 
       
  2393         * Misc/WebCoreStatistics.h:
       
  2394         * Misc/WebCoreStatistics.mm:
       
  2395         (-[WebFrame renderTreeAsExternalRepresentationForPrinting:]):
       
  2396 
       
  2397 2010-04-25  Sam Weinig  <sam@webkit.org>
       
  2398 
       
  2399         Reviewed by Maciej Stachowiak.
       
  2400 
       
  2401         Fix for https://bugs.webkit.org/show_bug.cgi?id=38097
       
  2402         Disentangle initializing the main thread from initializing threading
       
  2403 
       
  2404         Calls initializeMainThreadToProcessMainThread since there is no way to ensure
       
  2405         that the initialize method will be called on the main thread.
       
  2406 
       
  2407         * Carbon/CarbonWindowAdapter.mm:
       
  2408         (+[CarbonWindowAdapter initialize]): Add call to initializeMainThreadToProcessMainThread.
       
  2409         * History/WebBackForwardList.mm:
       
  2410         (+[WebBackForwardList initialize]): Ditto.
       
  2411         * History/WebHistoryItem.mm:
       
  2412         (+[WebHistoryItem initialize]): Ditto.
       
  2413         * Misc/WebElementDictionary.mm:
       
  2414         (+[WebElementDictionary initialize]): Ditto.
       
  2415         * Misc/WebIconDatabase.mm:
       
  2416         (+[WebIconDatabase initialize]): Ditto.
       
  2417         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
       
  2418         (+[WebHostedNetscapePluginView initialize]): Ditto.
       
  2419         * Plugins/WebBaseNetscapePluginView.mm:
       
  2420         (+[WebBaseNetscapePluginView initialize]): Ditto.
       
  2421         * Plugins/WebBasePluginPackage.mm:
       
  2422         (+[WebBasePluginPackage initialize]): Ditto.
       
  2423         * Plugins/WebNetscapePluginView.mm:
       
  2424         (+[WebNetscapePluginView initialize]): Ditto.
       
  2425         * WebCoreSupport/WebEditorClient.mm:
       
  2426         (+[WebEditCommand initialize]): Ditto.
       
  2427         * WebCoreSupport/WebFrameLoaderClient.mm: 
       
  2428         (+[WebFramePolicyListener initialize]): Ditto.
       
  2429         * WebView/WebArchive.mm:
       
  2430         (+[WebArchivePrivate initialize]): Ditto.
       
  2431         * WebView/WebDataSource.mm:
       
  2432         (+[WebDataSourcePrivate initialize]): Ditto.
       
  2433         * WebView/WebHTMLView.mm:
       
  2434         (+[WebHTMLViewPrivate initialize]): Ditto.
       
  2435         (+[WebHTMLView initialize]): Ditto.
       
  2436         * WebView/WebResource.mm:
       
  2437         (+[WebResourcePrivate initialize]): Ditto.
       
  2438         * WebView/WebTextIterator.mm:
       
  2439         (+[WebTextIteratorPrivate initialize]): Ditto.
       
  2440         * WebView/WebView.mm:
       
  2441         * WebView/WebViewData.mm: Ditto.
       
  2442         (+[WebViewPrivate initialize]): Ditto.
       
  2443 
       
  2444 2010-04-24  Dan Bernstein  <mitz@apple.com>
       
  2445 
       
  2446         Reviewed by Darin Adler.
       
  2447 
       
  2448         <rdar://problem/7903728> REGRESSION (r51617): WebView fails to load plug-in MIME types
       
  2449         https://bugs.webkit.org/show_bug.cgi?id=38085
       
  2450 
       
  2451         WebView was calling -_webView in a few places where it should have just used itself. It never
       
  2452         makes sense for WebView to call -_webView on itself, and these calls look like they were copied
       
  2453         from similar code in WebHTMLView, WebFrameView and WebDataSource, where -_webView has a different,
       
  2454         useful meaning.
       
  2455 
       
  2456         * WebView/WebView.mm:
       
  2457         (-[WebView drawSingleRect:]): Replaced [self _webView] with self.
       
  2458         (-[WebView _viewClass:andRepresentationClass:forMIMEType:]): Replaced [[self _webView] preferences]
       
  2459         with _private->preferences.
       
  2460         (-[WebView _canShowMIMEType:]): Ditto.
       
  2461 
       
  2462 2010-04-23  Simon Fraser  <simon.fraser@apple.com>
       
  2463 
       
  2464         Reviewed by Anders Carlsson.
       
  2465 
       
  2466         <rdar://problem/7894489> When printing Flash, send a drawRect event, rather than NPPrint
       
  2467         
       
  2468         When printing Flash plug-ins in 32-bit, send a drawRect event with a CGContextRef, rather than calling
       
  2469         NPPrint with a GWorldPtr, since Flash prefers the CGContext path.
       
  2470 
       
  2471         * Plugins/WebNetscapePluginView.mm:
       
  2472         (-[WebNetscapePluginView drawRect:]):
       
  2473 
       
  2474 2010-04-22  David Kilzer  <ddkilzer@apple.com>
       
  2475 
       
  2476         <http://webkit.org/b/38029> +[WebTextIteratorPrivate initialize] is missing call to JSC::initializeThreading()
       
  2477 
       
  2478         Reviewed by Timothy Hatcher.
       
  2479 
       
  2480         Every other Objective-C class that calls
       
  2481         WebCoreObjCFinalizeOnMainThread(self) in +initialize also calls
       
  2482         JSC::initializeThreading().  The WebTextIteratorPrivate class
       
  2483         was the only one missing this call.
       
  2484 
       
  2485         * WebView/WebTextIterator.mm:
       
  2486         (+[WebTextIteratorPrivate initialize]): Added call to
       
  2487         JSC::initializeThreading().
       
  2488 
       
  2489 2010-04-22  Alexey Proskuryakov  <ap@apple.com>
       
  2490 
       
  2491         Rubber-stamped by Mark Rowe.
       
  2492 
       
  2493         <rdar://problem/7805969> REGRESSION: iTunes unable to play trailers
       
  2494 
       
  2495         Undo the changes made for https://bugs.webkit.org/show_bug.cgi?id=35215 (<rdar://problem/7673157>)
       
  2496         for now. Clients rely on the old behavior, so a fix that changes it will need to account for
       
  2497         those.
       
  2498 
       
  2499         * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::createPlugin): Pass pluginURL
       
  2500         instead of baseURL again.
       
  2501 
       
  2502 2010-04-22  Dave Moore  <davemoore@chromium.org>
       
  2503 
       
  2504         Reviewed by Dimitri Glazkov.
       
  2505 
       
  2506         Added notification when the favicons for a page are changed
       
  2507         from a script.
       
  2508         The Document object will notify the frame loader, which will
       
  2509         notify the client. Implementations of FrameLoaderClient will
       
  2510         have to add one method; dispatchDidChangeIcons().
       
  2511 
       
  2512         https://bugs.webkit.org/show_bug.cgi?id=33812
       
  2513 
       
  2514         * WebCoreSupport/WebFrameLoaderClient.h:
       
  2515         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  2516         (WebFrameLoaderClient::dispatchDidChangeIcons):
       
  2517 
       
  2518 2010-04-22  Adam Barth  <abarth@webkit.org>
       
  2519 
       
  2520         Unreviewed, rolling out r58069.
       
  2521         http://trac.webkit.org/changeset/58069
       
  2522         https://bugs.webkit.org/show_bug.cgi?id=27751
       
  2523 
       
  2524         Broke compile on Windows.
       
  2525 
       
  2526         * WebView/WebPreferenceKeysPrivate.h:
       
  2527         * WebView/WebPreferences.mm:
       
  2528         (+[WebPreferences initialize]):
       
  2529         * WebView/WebPreferencesPrivate.h:
       
  2530         * WebView/WebView.mm:
       
  2531         (-[WebView _preferencesChangedNotification:]):
       
  2532 
       
  2533 2010-04-22  Abhishek Arya  <inferno@chromium.org>
       
  2534 
       
  2535         Reviewed by Adam Barth.
       
  2536 
       
  2537         Add support for controlling clipboard access from javascript.
       
  2538         Clipboard access from javascript is disabled by default.
       
  2539         https://bugs.webkit.org/show_bug.cgi?id=27751
       
  2540 
       
  2541         * WebView/WebPreferenceKeysPrivate.h:
       
  2542         * WebView/WebPreferences.mm:
       
  2543         (+[WebPreferences initialize]):
       
  2544         (-[WebPreferences javaScriptCanAccessClipboard]):
       
  2545         (-[WebPreferences setJavaScriptCanAccessClipboard:]):
       
  2546         * WebView/WebPreferencesPrivate.h:
       
  2547         * WebView/WebView.mm:
       
  2548         (-[WebView _preferencesChangedNotification:]):
       
  2549 
       
  2550 2010-04-21  Alexey Proskuryakov  <ap@apple.com>
       
  2551 
       
  2552         Reviewed by Shinichiro Hamaji.
       
  2553 
       
  2554         https://bugs.webkit.org/show_bug.cgi?id=37964
       
  2555         Fix a typo in comments - Korean encoding name is windows-949, not windows-939
       
  2556 
       
  2557         * WebView/WebPreferences.mm: (+[WebPreferences _setInitialDefaultTextEncodingToSystemEncoding]):
       
  2558 
       
  2559 2010-04-21  Mark Rowe  <mrowe@apple.com>
       
  2560 
       
  2561         Tiger build fix.
       
  2562 
       
  2563         * Plugins/WebPluginController.mm: Add an #import that is necessary on Tiger.
       
  2564 
       
  2565 2010-04-21  Mark Rowe  <mrowe@apple.com>
       
  2566 
       
  2567         Reviewed by Eric Carlson.
       
  2568 
       
  2569         <rdar://problem/7313430> Many crashes in Safari inside Flip4Mac below -[NSAlert didEndAlert:returnCode:contextInfo:]
       
  2570 
       
  2571         Existing versions of the Flip4Mac WebKit plug-in have an object lifetime bug related to an NSAlert that is
       
  2572         used to notify the user about updates to the plug-in. This bug can result in Safari crashing if the page
       
  2573         containing the plug-in navigates while the alert is displayed (<rdar://problem/7313430>).
       
  2574 
       
  2575         The gist of the bug is thus: Flip4Mac sets an instance of the TSUpdateCheck class as the modal delegate of the
       
  2576         NSAlert instance. This TSUpdateCheck instance itself has a delegate. The delegate is set to the WmvPlugin
       
  2577         instance which is the NSView subclass that is exposed to WebKit as the plug-in view. Since this relationship
       
  2578         is that of delegates the TSUpdateCheck does not retain the WmvPlugin. This leads to a bug if the WmvPlugin
       
  2579         instance is destroyed before the TSUpdateCheck instance as the TSUpdateCheck instance will be left with a
       
  2580         pointer to a stale object. This will happen if a page containing the Flip4Mac plug-in triggers a navigation
       
  2581         while the update sheet is visible as the WmvPlugin instance is removed from the view hierarchy and there are
       
  2582         no other references to keep the object alive.
       
  2583 
       
  2584         We work around this bug by patching the following two messages:
       
  2585 
       
  2586         1) -[NSAlert beginSheetModalForWindow:modalDelegate:didEndSelector:contextInfo:]
       
  2587         2) -[TSUpdateCheck alertDidEnd:returnCode:contextInfo:]
       
  2588 
       
  2589         Our override of 1) detects whether it is Flip4Mac's update sheet triggering the alert by checking whether the
       
  2590         modal delegate is an instance of TSUpdateCheck. If it is, it retains the modal delegate's delegate.
       
  2591 
       
  2592         Our override of 2) then autoreleases the delegate, balancing the retain we added in 1).
       
  2593 
       
  2594         These two overrides have the effect of ensuring that the WmvPlugin instance will always outlive the TSUpdateCheck
       
  2595         instance, preventing the TSUpdateCheck instance from accessing a stale delegate pointer and crashing the application.
       
  2596 
       
  2597         * Plugins/WebPluginController.mm:
       
  2598         (-[WebPluginController addPlugin:]): Check whether the plug-in being instantiated is the Flip4Mac plug-in and
       
  2599         install our workaround if it is.
       
  2600         (isKindOfClass): Helper function that checks whether the given object is an instance of the named class.
       
  2601         (WebKit_TSUpdateCheck_alertDidEnd_returnCode_contextInfo_): Autorelease the delegate.
       
  2602         (WebKit_NSAlert_beginSheetModalForWindow_modalDelegate_didEndSelector_contextInfo_): Retain the modal delegate's
       
  2603         delegate if this NSAlert belongs to the Flip4Mac plug-in.
       
  2604         (installFlip4MacPlugInWorkaroundIfNecessary): Swizzle the necessary methods.  We swizzle the TSUpdateCheck methods
       
  2605         first since it is possible that in some versions of Flip4Mac the TSUpdateCheck class may not exist or may not have
       
  2606         the method we're interested in.  In that case we want to bail out before patching any methods.
       
  2607 
       
  2608 2010-04-20  Mark Rowe  <mrowe@apple.com>
       
  2609 
       
  2610         Reviewed by Maciej Stachowiak.
       
  2611 
       
  2612         <rdar://problem/7856151> REGRESSION: NPP_Destroy is not called when page navigates when plug-in is displaying modal dialog
       
  2613 
       
  2614         An interaction between the plug-in host and WebKit was resulting in WKPCSetModal being called while
       
  2615         NetscapePluginInstanceProxy was waiting on a reply to the GetScriptableNPObject message. This resulted
       
  2616         in calls to stop the plug-in being deferred due to the presence of plug-in code up the stack.  This
       
  2617         could lead to crashes as it was possible for the plug-in view to be deallocated during the modal runloop.
       
  2618 
       
  2619         * Plugins/Hosted/NetscapePluginHostProxy.mm:
       
  2620         (WKPCInvalidateRect):
       
  2621         (WKPCSetModal): Defer the handling of setModal until the next runloop iteration if the host proxy
       
  2622         is already processing requests.  This ensures that there will be no plug-in code on the stack when
       
  2623         the modal runloop is entered, which allows the plug-in to be stopped when the page is navigated while
       
  2624         a modal dialog is displayed.
       
  2625 
       
  2626 2010-04-20  Adam Barth  <abarth@webkit.org>
       
  2627 
       
  2628         Reviewed by Eric Seidel.
       
  2629 
       
  2630         Factor DocumentWriter out of FrameLoader
       
  2631         https://bugs.webkit.org/show_bug.cgi?id=37175
       
  2632 
       
  2633         Update these callsites because the method moved to DocumentWriter.
       
  2634 
       
  2635         * WebView/WebFrame.mm:
       
  2636         (-[WebFrame _canProvideDocumentSource]):
       
  2637         (-[WebFrame _receivedData:textEncodingName:]):
       
  2638 
       
  2639 2010-04-20  Kent Tamura  <tkent@chromium.org>
       
  2640 
       
  2641         Reviewed by Darin Adler.
       
  2642 
       
  2643         Change a parameter type of chooseIconForFiles()
       
  2644         https://bugs.webkit.org/show_bug.cgi?id=37504
       
  2645 
       
  2646         * WebCoreSupport/WebChromeClient.h:
       
  2647         * WebCoreSupport/WebChromeClient.mm:
       
  2648         (WebChromeClient::chooseIconForFiles):
       
  2649 
       
  2650 2010-04-20  Sheriff Bot  <webkit.review.bot@gmail.com>
       
  2651 
       
  2652         Unreviewed, rolling out r57892.
       
  2653         http://trac.webkit.org/changeset/57892
       
  2654         https://bugs.webkit.org/show_bug.cgi?id=37864
       
  2655 
       
  2656         Caused an assertion in Mac builds (Requested by smfr on
       
  2657         #webkit).
       
  2658 
       
  2659         * WebView/WebFrame.mm:
       
  2660         (-[WebFrame _getVisibleRect:]):
       
  2661         * WebView/WebFrameView.mm:
       
  2662         (-[WebFrameView _install]):
       
  2663 
       
  2664 2010-04-20  Simon Fraser  <simon.fraser@apple.com>
       
  2665 
       
  2666         Reviewed by Dan Bernstein.
       
  2667 
       
  2668         Clean up RenderPart/RenderPartObject/RenderFrame/RenderEmbeddedObject
       
  2669         https://bugs.webkit.org/show_bug.cgi?id=37741
       
  2670         
       
  2671         Make Frame::ownerRenderer() return a RenderFrameBase* rather than a
       
  2672         RenderPart*, and add the necessary toRenderFrameBase() and isRenderFrameBase().
       
  2673 
       
  2674         * WebView/WebFrame.mm:
       
  2675         (-[WebFrame _getVisibleRect:]):
       
  2676         * WebView/WebFrameView.mm:
       
  2677         (-[WebFrameView _install]):
       
  2678 
       
  2679 2010-04-19  Dan Bernstein  <mitz@apple.com>
       
  2680 
       
  2681         Reviewed by Sam Weinig.
       
  2682 
       
  2683         Finish exposing extremal shrink factors WebHTMLView uses when shrinking pages to fit in the
       
  2684         printing width as SPI.
       
  2685 
       
  2686         * WebKit.exp: Export _WebHTMLViewPrintingMinimumShrinkFactor and _WebHTMLViewPrintingMaximumShrinkFactor.
       
  2687 
       
  2688 2010-04-15  Gavin Barraclough  <barraclough@apple.com>
       
  2689 
       
  2690         Reviewed by Sam Weinig & Oliver Hunt.
       
  2691 
       
  2692         https://bugs.webkit.org/show_bug.cgi?id=37675
       
  2693         Remove casts/constructors to/from JSC::UString type from WebCore::String
       
  2694         
       
  2695         WebCore's strings should not know about JSC::UString, this should be abstracted
       
  2696         away in the bindings.  Add explicit conversion methods rather than relying on
       
  2697         overloaded cast operators / constructors being implicitly called.
       
  2698 
       
  2699         This patch only changes the class String, once this has landed StringImpl, and
       
  2700         hopefully AtomicString too, should follow suit.
       
  2701 
       
  2702         * Plugins/Hosted/NetscapePluginHostProxy.mm:
       
  2703         (identifierFromIdentifierRep):
       
  2704         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
       
  2705         (WebKit::NetscapePluginInstanceProxy::addValueToArray):
       
  2706         (WebKit::NetscapePluginInstanceProxy::moveGlobalExceptionToExecState):
       
  2707         * Plugins/Hosted/ProxyInstance.mm:
       
  2708         (WebKit::ProxyInstance::getPropertyNames):
       
  2709         * WebView/WebFrame.mm:
       
  2710         (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
       
  2711         (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]):
       
  2712         * WebView/WebScriptDebugDelegate.mm:
       
  2713         (-[WebScriptCallFrame evaluateWebScript:]):
       
  2714         * WebView/WebScriptDebugger.mm:
       
  2715         (toNSURL):
       
  2716         * WebView/WebView.mm:
       
  2717         (aeDescFromJSValue):
       
  2718 
       
  2719 2010-04-16  Dan Bernstein  <mitz@apple.com>
       
  2720 
       
  2721         Reviewed by John Sullivan.
       
  2722 
       
  2723         Expose the extremal shrink factors WebHTMLView uses when shrinking pages to fit in the
       
  2724         printing width as SPI.
       
  2725 
       
  2726         * WebView/WebHTMLView.mm:
       
  2727         Replaced two macros with constants.
       
  2728         (-[WebHTMLView _beginPrintModeWithPageWidth:shrinkToFit:]): Changed to use the constants.
       
  2729         (-[WebHTMLView _scaleFactorForPrintOperation:]): Ditto.
       
  2730         * WebView/WebHTMLViewPrivate.h: Declared _WebHTMLViewPrintingMinimumShrinkFactor and
       
  2731         _WebHTMLViewPrintingMaximumShrinkFactor.
       
  2732 
       
  2733 2010-04-15  Mark Rowe  <mrowe@apple.com>
       
  2734 
       
  2735         Reviewed by Sam Weinig.
       
  2736 
       
  2737         <rdar://problem/7870651> WebDynamicScrollBarsView.h generates compile errors when included in plain Objective-C files.
       
  2738 
       
  2739         * WebView/WebDynamicScrollBarsView.h:
       
  2740 
       
  2741 2010-04-15  Adam Roben  <aroben@apple.com>
       
  2742 
       
  2743         Export WebUserContentURLPattern from WebKit
       
  2744 
       
  2745         Rubber-stamped by Mark Rowe.
       
  2746 
       
  2747         * WebKit.exp:
       
  2748 
       
  2749 2010-04-15  Dan Bernstein  <mitz@apple.com>
       
  2750 
       
  2751         Reviewed by Simon Fraser.
       
  2752 
       
  2753         Made consecutive calls to -[WebHTMLView _beginPrintModeWithPageWidth:shrinkToFit:] work
       
  2754         without intermediate calls -[WebHTMLView _endPrintMode].
       
  2755 
       
  2756         * WebView/WebHTMLView.mm:
       
  2757         (-[WebHTMLView _setPrinting:minimumPageWidth:maximumPageWidth:adjustViewSize:]):
       
  2758 
       
  2759 2010-04-15  Adam Roben  <aroben@apple.com>
       
  2760 
       
  2761         Expose UserContentURLPattern as WebKit SPI
       
  2762 
       
  2763         Fixes <http://webkit.org/b/37354>.
       
  2764 
       
  2765         Reviewed by Tim Hatcher.
       
  2766 
       
  2767         * Misc/WebUserContentURLPattern.h: Added.
       
  2768 
       
  2769         * Misc/WebUserContentURLPattern.mm: Added.
       
  2770         (-[WebUserContentURLPattern initWithPatternString:]): Initialize
       
  2771         _private and then parse the passed-in string into a
       
  2772         UserContentURLPattern.
       
  2773         (-[WebUserContentURLPattern dealloc]): Release _private.
       
  2774 
       
  2775         (-[WebUserContentURLPattern isValid]):
       
  2776         (-[WebUserContentURLPattern scheme]):
       
  2777         (-[WebUserContentURLPattern host]):
       
  2778         (-[WebUserContentURLPattern matchesSubdomains]):
       
  2779         Call through to UserContentURLPattern.
       
  2780 
       
  2781 2010-04-13  Geoffrey Garen  <ggaren@apple.com>
       
  2782 
       
  2783         Reviewed by Oliver Hunt.
       
  2784 
       
  2785         Separated a DOMWrapperWorld's behavior of keeping wrappers alive from
       
  2786         its own lifetime, so a DOMWrapperWorld's controller can throw away
       
  2787         its wrappers even before its refcount reaches 0.
       
  2788 
       
  2789         * WebView/WebScriptWorld.h:
       
  2790         * WebView/WebScriptWorld.mm:
       
  2791         (-[WebScriptWorld unregisterWorld]): Exported this function through WebKit.
       
  2792 
       
  2793 2010-04-12  Timothy Hatcher  <timothy@apple.com>
       
  2794 
       
  2795         SecurityOrigin needs a way to remove individual OriginAccessEntries
       
  2796         https://bugs.webkit.org/show_bug.cgi?id=37449
       
  2797 
       
  2798         Reviewed by Dave Hyatt.
       
  2799 
       
  2800         * WebView/WebView.mm:
       
  2801         (+[WebView _removeOriginAccessWhitelistEntryWithSourceOrigin:destinationProtocol:destinationHost:allowDestinationSubdomains:]):
       
  2802         Call SecurityOrigin::removeOriginAccessWhitelistEntry.
       
  2803         * WebView/WebViewPrivate.h: Added _removeOriginAccessWhitelistEntryWithSourceOrigin.
       
  2804 
       
  2805 2010-04-13  Timothy Hatcher  <timothy@apple.com>
       
  2806 
       
  2807         Rename SecurityOrigin::whiteListAccessFromOrigin to addOriginAccessWhitelistEntry.
       
  2808         And SecurityOrigin::resetOriginAccessWhiteLists to resetOriginAccessWhitelists.
       
  2809 
       
  2810         SecurityOrigin needs a way to remove individual OriginAccessEntries
       
  2811         https://bugs.webkit.org/show_bug.cgi?id=37449
       
  2812 
       
  2813         Reviewed by Dave Hyatt.
       
  2814 
       
  2815         * WebView/WebView.mm:
       
  2816         (+[WebView _addOriginAccessWhitelistEntryWithSourceOrigin:destinationProtocol:destinationHost:allowDestinationSubdomains:]):
       
  2817         (+[WebView _resetOriginAccessWhitelists]):
       
  2818         * WebView/WebViewPrivate.h:
       
  2819 
       
  2820 2010-04-11  Sheriff Bot  <webkit.review.bot@gmail.com>
       
  2821 
       
  2822         Unreviewed, rolling out r57468.
       
  2823         http://trac.webkit.org/changeset/57468
       
  2824         https://bugs.webkit.org/show_bug.cgi?id=37433
       
  2825 
       
  2826         Broke the world...  Must have applied the patch wrong
       
  2827         (Requested by abarth on #webkit).
       
  2828 
       
  2829         * WebView/WebFrame.mm:
       
  2830         (-[WebFrame _canProvideDocumentSource]):
       
  2831         (-[WebFrame _receivedData:textEncodingName:]):
       
  2832 
       
  2833 2010-04-11  Adam Barth  <abarth@webkit.org>
       
  2834 
       
  2835         Reviewed by Eric Seidel.
       
  2836 
       
  2837         Factor DocumentWriter out of FrameLoader
       
  2838         https://bugs.webkit.org/show_bug.cgi?id=37175
       
  2839 
       
  2840         Update these callsites because the method moved to DocumentWriter.
       
  2841 
       
  2842         * WebView/WebFrame.mm:
       
  2843         (-[WebFrame _canProvideDocumentSource]):
       
  2844         (-[WebFrame _receivedData:textEncodingName:]):
       
  2845 
       
  2846 2010-04-10  Mark Rowe  <mrowe@apple.com>
       
  2847 
       
  2848         Reviewed by Dan Bernstein.
       
  2849 
       
  2850         <rdar://problem/7845305> Further adoption of formal protocols for delegates.
       
  2851 
       
  2852         Move EmptyProtocolDefinitions.h down in to WebCore, and add the new protocols. Adopt the protocols in the appropriate places.
       
  2853 
       
  2854         * Misc/EmptyProtocolDefinitions.h: Removed.
       
  2855         * Misc/WebDownload.mm:
       
  2856         * WebKitPrefix.h:
       
  2857 
       
  2858 2010-04-09  Jer Noble  <jer.noble@apple.com>
       
  2859 
       
  2860         Reviewed by Darin Adler.
       
  2861 
       
  2862         Work around QTMovieView bug (<rdar://problem/7712713>) by using a QTMovieLayer instead.
       
  2863         https://bugs.webkit.org/show_bug.cgi?id=37311 / <rdar://problem/7749993>
       
  2864 
       
  2865         * WebView/WebVideoFullscreenController.mm:
       
  2866         (-[WebVideoFullscreenController windowDidLoad]):
       
  2867         (-[WebVideoFullscreenController setMediaElement:WebCore::]):
       
  2868 
       
  2869 2010-04-09  Alexey Proskuryakov  <ap@apple.com>
       
  2870 
       
  2871         Reviewed by Maciej Stachowiak.
       
  2872 
       
  2873         https://bugs.webkit.org/show_bug.cgi?id=24572
       
  2874         XMLHttpRequest.statusText returns always "OK" on Mac
       
  2875 
       
  2876         * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
       
  2877 
       
  2878 2010-04-09  Eric Seidel  <eric@webkit.org>
       
  2879 
       
  2880         Unreviewed, rolling out r57343.
       
  2881         http://trac.webkit.org/changeset/57343
       
  2882         https://bugs.webkit.org/show_bug.cgi?id=37311
       
  2883 
       
  2884         Broke Tiger compile.
       
  2885 
       
  2886         * WebView/WebVideoFullscreenController.mm:
       
  2887         (-[WebVideoFullscreenController windowDidLoad]):
       
  2888         (-[WebVideoFullscreenController setMediaElement:WebCore::]):
       
  2889 
       
  2890 2010-04-09  Dan Bernstein  <mitz@apple.com>
       
  2891 
       
  2892         Reviewed by Darin Adler.
       
  2893 
       
  2894         <rdar://problem/7846015> REGRESSION (r57332) - Crash in [WebDynamicScrollBarsView(WebInternal) reflectScrolledClipView:] when opening the Downloads window
       
  2895 
       
  2896         * WebView/WebDynamicScrollBarsView.mm:
       
  2897         (-[WebDynamicScrollBarsView initWithCoder:]): Added. Calls super and then initializes _private.
       
  2898 
       
  2899 2010-04-09  Jer Noble  <jer.noble@apple.com>
       
  2900 
       
  2901         Reviewed by Darin Adler.
       
  2902 
       
  2903         Work around QTMovieView bug (<rdar://problem/7712713>) by using a QTMovieLayer instead.
       
  2904         https://bugs.webkit.org/show_bug.cgi?id=37311 / <rdar://problem/7749993>
       
  2905 
       
  2906         * WebView/WebVideoFullscreenController.mm:
       
  2907         (-[WebVideoFullscreenController windowDidLoad]):
       
  2908         (-[WebVideoFullscreenController setMediaElement:WebCore::]):
       
  2909 
       
  2910 2010-04-08  Mark Rowe  <mrowe@apple.com>
       
  2911 
       
  2912         Reviewed by John Sullivan.
       
  2913 
       
  2914         <rdar://problem/7814899> REGRESSION(r56008): iTunes crashes on quit inside -[NSScrollView dealloc]
       
  2915 
       
  2916         In r56008 new instance variables were added to WebDynamicScrollBarsView, increasing its size.
       
  2917         This causes problems for 32-bit applications that derive from WebDynamicScrollBarsView, as the
       
  2918         size and layout of their subclasses is baked in at compile time.  This results in instances
       
  2919         being allocated that are smaller than the new code expects, and may result in the new instance
       
  2920         variables sharing the same memory space as any instance variables that the subclass defines.
       
  2921 
       
  2922         We can avoid this problem by having the class contain only a single member that acts as a pointer
       
  2923         to a heap-allocated structure that acts as storage for the real instance variables.  This makes
       
  2924         us free to add instance variables in the future without risk of changing the size of the class.
       
  2925         To ensure that 32-bit applications that are built against this new WebDynamicScrollBarsView header
       
  2926         are able to run against older versions of WebKit we pad the class out to its previous size.  This
       
  2927         results in any subclasses of WebDynamicScrollBarsView being created with a layout that is compatible
       
  2928         with both versions of the code.
       
  2929 
       
  2930         This change could potentially break a subclass of WebDynamicScrollBarsView that directly accesses
       
  2931         instance variables of its superclass.  However, this is a private header and no known subclasses
       
  2932         of WebDynamicScrollBarsView access superclass instance variables in this fashion.
       
  2933 
       
  2934         * WebView/WebDynamicScrollBarsView.h:
       
  2935         * WebView/WebDynamicScrollBarsView.mm:
       
  2936         (-[WebDynamicScrollBarsView initWithFrame:]):
       
  2937         (-[WebDynamicScrollBarsView dealloc]):
       
  2938         (-[WebDynamicScrollBarsView finalize]):
       
  2939         (-[WebDynamicScrollBarsView setAllowsHorizontalScrolling:]):
       
  2940         (-[WebDynamicScrollBarsView setAllowsScrollersToOverlapContent:]):
       
  2941         (-[WebDynamicScrollBarsView setAlwaysHideHorizontalScroller:]):
       
  2942         (-[WebDynamicScrollBarsView setAlwaysHideVerticalScroller:]):
       
  2943         (-[WebDynamicScrollBarsView horizontalScrollingAllowed]):
       
  2944         (-[WebDynamicScrollBarsView verticalScrollingAllowed]):
       
  2945         (-[WebDynamicScrollBarsView contentViewFrame]):
       
  2946         (-[WebDynamicScrollBarsView tile]):
       
  2947         (-[WebDynamicScrollBarsView setSuppressLayout:]):
       
  2948         (-[WebDynamicScrollBarsView setScrollBarsSuppressed:repaintOnUnsuppress:]):
       
  2949         (-[WebDynamicScrollBarsView updateScrollers]):
       
  2950         (-[WebDynamicScrollBarsView reflectScrolledClipView:]):
       
  2951         (-[WebDynamicScrollBarsView allowsHorizontalScrolling]):
       
  2952         (-[WebDynamicScrollBarsView allowsVerticalScrolling]):
       
  2953         (-[WebDynamicScrollBarsView scrollingModes:WebCore::vertical:WebCore::]):
       
  2954         (-[WebDynamicScrollBarsView horizontalScrollingMode]):
       
  2955         (-[WebDynamicScrollBarsView verticalScrollingMode]):
       
  2956         (-[WebDynamicScrollBarsView setScrollingModes:vertical:andLock:]):
       
  2957         (-[WebDynamicScrollBarsView setHorizontalScrollingModeLocked:]):
       
  2958         (-[WebDynamicScrollBarsView setVerticalScrollingModeLocked:]):
       
  2959         (-[WebDynamicScrollBarsView setScrollingModesLocked:]):
       
  2960         (-[WebDynamicScrollBarsView horizontalScrollingModeLocked]):
       
  2961         (-[WebDynamicScrollBarsView verticalScrollingModeLocked]):
       
  2962         (-[WebDynamicScrollBarsView scrollWheel:]):
       
  2963 
       
  2964 2010-04-07  David Hyatt  <hyatt@apple.com>
       
  2965 
       
  2966         Reviewed by Oliver Hunt.
       
  2967 
       
  2968         https://bugs.webkit.org/show_bug.cgi?id=24300, don't expose history info via CSS
       
  2969 
       
  2970         Add SPI so that layout tests can access computed style including :visited information.
       
  2971 
       
  2972         * WebView/WebRenderNode.mm:
       
  2973         (copyRenderNode):
       
  2974         * WebView/WebView.mm:
       
  2975         (-[WebView _computedStyleIncludingVisitedInfo:forElement:]):
       
  2976         * WebView/WebViewInternal.h:
       
  2977         * WebView/WebViewPrivate.h:
       
  2978 
       
  2979 2010-04-07  Dan Bernstein  <mitz@apple.com>
       
  2980 
       
  2981         Reviewed by Adele Peterson.
       
  2982 
       
  2983         Refactor WebHTMLView printing code and add private methods to enter and exit printing mode.
       
  2984         https://bugs.webkit.org/show_bug.cgi?id=37246
       
  2985 
       
  2986         * Misc/WebNSPrintOperationExtras.h: Declared -_web_availablePaperWidth and -_web_availablePaperHeight.
       
  2987         * Misc/WebNSPrintOperationExtras.m:
       
  2988         (-[NSPrintOperation _web_availablePaperWidth]): Turned -[WebHTMLView _availablePaperWidthForPrintOperation:]
       
  2989         into this method.
       
  2990         (-[NSPrintOperation _web_availablePaperHeight]): Turned -[WebHTMLView _calculatePrintHeight] into this
       
  2991         method.
       
  2992         * WebView/WebHTMLView.mm:
       
  2993         (-[WebHTMLView _isInPrintMode]): Added this accessor.
       
  2994         (-[WebHTMLView _beginPrintModeWithPageWidth:shrinkToFit:]): Added. Moved the code from -knowsPageRange: that
       
  2995         computes the layout widths and enters printing mode into this private method.
       
  2996         (-[WebHTMLView _endPrintMode]): New private method (the old -_endPrintMode has been renamed).
       
  2997         (-[WebHTMLView _scaleFactorForPrintOperation:]): Use -[NSPrintOperation _web_availablePaperWidth].
       
  2998         (-[WebHTMLView _endPrintModeAndRestoreWindowAutodisplay]): Renamed -_endPrintMode to this, changed it to call
       
  2999         _endPrintMode.
       
  3000         (-[WebHTMLView _delayedEndPrintMode:]): Updated for rename.
       
  3001         (-[WebHTMLView knowsPageRange:]): Use -_beginPrintModeWithPageWidth:shrintToFit:,
       
  3002         -[NSPrintOperation _web_availablePaperWidth], and -[NSPrintOperation _web_availablePaperHeight]. Updated for
       
  3003         rename.
       
  3004         (-[WebHTMLView beginDocument]): Updated for rename.
       
  3005         (-[WebHTMLView endDocument]): Ditto.
       
  3006         * WebView/WebHTMLViewPrivate.h: Declared new private methods -_isInPrintMode,
       
  3007         -_beginPrintModeWithPageWidth:shrinkToFit: and -_endPrintMode.
       
  3008 
       
  3009 2010-04-07  Andrey Kosyakov  <caseq@chromium.org>
       
  3010 
       
  3011         Reviewed by Yury Semikhatsky.
       
  3012 
       
  3013         Removed redundant FrameLoaderClient::dispatchDidLoadResourceByXMLHttpRequest()
       
  3014         https://bugs.webkit.org/show_bug.cgi?id=36949
       
  3015 
       
  3016         * WebCoreSupport/WebFrameLoaderClient.h:
       
  3017         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  3018 
       
  3019 2010-04-06  Dan Bernstein  <mitz@apple.com>
       
  3020 
       
  3021         Tiger build fix after r57184.
       
  3022 
       
  3023         * WebView/WebHTMLViewPrivate.h:
       
  3024 
       
  3025 2010-04-06  Dan Bernstein  <mitz@apple.com>
       
  3026 
       
  3027         Tiger build fix after r57184.
       
  3028 
       
  3029         * WebView/WebHTMLViewPrivate.h:
       
  3030 
       
  3031 2010-04-06  Adam Barth  <abarth@webkit.org>
       
  3032 
       
  3033         Unreviewed.
       
  3034 
       
  3035         Speculative build fix for Tiger.
       
  3036 
       
  3037         * WebView/WebHTMLViewPrivate.h:
       
  3038 
       
  3039 2010-04-06  Dan Bernstein  <mitz@apple.com>
       
  3040 
       
  3041         Reviewed by Sam Weinig and Anders Carlsson.
       
  3042 
       
  3043         Expose WebHTMLView’s page breaking logic as SPI.
       
  3044 
       
  3045         * WebView/WebHTMLView.mm:
       
  3046         (-[WebHTMLView _adjustedBottomOfPageWithTop:bottom:limit:]): Factored out of -adjustPageHeightNew:top:bottom:limit:
       
  3047         (-[WebHTMLView adjustPageHeightNew:top:bottom:limit:]): Call -_adjustedBottomOfPageWithTop:bottom:limit:
       
  3048         * WebView/WebHTMLViewPrivate.h: Declared -_adjustedBottomOfPageWithTop:bottom:limit:
       
  3049 
       
  3050 2010-04-06  Mark Rowe  <mrowe@apple.com>
       
  3051 
       
  3052         Add an #if in order to make Tiger happy.
       
  3053 
       
  3054         * WebView/WebViewData.mm:
       
  3055         (-[WebViewPrivate init]):
       
  3056 
       
  3057 2010-04-06  Mark Rowe  <mrowe@apple.com>
       
  3058 
       
  3059         Build fix.
       
  3060 
       
  3061         * WebView/WebViewData.mm:
       
  3062         (-[WebViewPrivate init]): Use objc_collectingEnabled like we do elsewhere in WebKit.
       
  3063 
       
  3064 2010-04-05  Mark Rowe  <mrowe@apple.com>
       
  3065 
       
  3066         Reviewed by Adele Peterson.
       
  3067 
       
  3068         Test case for <http://webkit.org/b/37115> / <rdar://problem/7829331>.
       
  3069         REGRESSION(r56989): Crash in Mail in WebCore::Position::isCandidate when deleting block using block deletion UI
       
  3070 
       
  3071         * WebView/WebHTMLView.mm:
       
  3072         (-[WebHTMLView _updateFontPanel]): Ask the window whether it is the key window rather than doing the comparison
       
  3073         manually.  This allows DumpRenderTree's override of isKeyWindow to force this code path to be taken during tests.
       
  3074 
       
  3075 2010-04-05  Alexey Proskuryakov  <ap@apple.com>
       
  3076 
       
  3077         Reviewed by Darin Adler.
       
  3078 
       
  3079         https://bugs.webkit.org/show_bug.cgi?id=37111
       
  3080         <rdar://problem/7790327> Draw replacement text when plug-in host crashes
       
  3081 
       
  3082         * Plugins/Hosted/WebHostedNetscapePluginView.h: Removed _pluginDied - it was only used
       
  3083         for drawing replacement icon, and this information is now in WebCore.
       
  3084         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
       
  3085         (-[WebHostedNetscapePluginView pluginHostDied]): Tell RenderEmbeddedObject that the plug-in
       
  3086         has crashed.
       
  3087         (-[WebHostedNetscapePluginView drawRect:]): Removed the case for crashed plug-in host. It is
       
  3088         handled by WebCore now.
       
  3089 
       
  3090         * WebCoreSupport/WebViewFactory.mm: (-[WebViewFactory crashedPluginText]): Added a string
       
  3091         for plug-in failure.        
       
  3092 
       
  3093 2010-04-03  yael aharon  <yael.aharon@nokia.com>
       
  3094 
       
  3095         Reviewed by Darin Adler.
       
  3096 
       
  3097         Enable HTMLProgressElement for Safari on OSX
       
  3098         https://bugs.webkit.org/show_bug.cgi?id=36961
       
  3099 
       
  3100         * Configurations/FeatureDefines.xcconfig:
       
  3101 
       
  3102 2010-04-02  Jer Noble  <jer.noble@apple.com>
       
  3103 
       
  3104         Reviewed by Eric Carlson.
       
  3105 
       
  3106         https://bugs.webkit.org/show_bug.cgi?id=36624
       
  3107         Add an INIT macro for the WebKitSystemInterface function wkQTMovieSelectPreferredAlternates.
       
  3108 
       
  3109         * WebCoreSupport/WebSystemInterface.m:
       
  3110         (InitWebCoreSystemInterface):
       
  3111 
       
  3112 2010-04-02  Alexey Proskuryakov  <ap@apple.com>
       
  3113 
       
  3114         Reviewed by Darin Adler.
       
  3115 
       
  3116         https://bugs.webkit.org/show_bug.cgi?id=37043
       
  3117         Java regression tests spam stderr about being unable to set status message
       
  3118 
       
  3119         With this change, there is still spam about "Attempt to access JavaScript from destroyed
       
  3120         applet, type 9." I haven't investigated if that indicates a problem or not.
       
  3121 
       
  3122         * Plugins/WebPluginController.mm: (-[WebPluginController webPlugInContainerShowStatus:]):
       
  3123         Removed check for _documentView. We don't seem to care.
       
  3124 
       
  3125 2010-04-01  Kinuko Yasuda  <kinuko@chromium.org>
       
  3126 
       
  3127         Reviewed by Dmitry Titov.
       
  3128 
       
  3129         Add FileThread for async file operation support in FileReader and FileWriter
       
  3130         https://bugs.webkit.org/show_bug.cgi?id=36896
       
  3131 
       
  3132         Add FILE_READER or FILE_WRITER feature defines.
       
  3133 
       
  3134         * Configurations/FeatureDefines.xcconfig:
       
  3135 
       
  3136 2010-04-01  Ada Chan  <adachan@apple.com>
       
  3137 
       
  3138         Reviewed by Darin Adler.
       
  3139 
       
  3140         Change WebDatabaseManager::deleteOrigin() to return true if there are no errors in deleting the origin.
       
  3141         Ditto for WebDatabaseManager::deleteDatabase().
       
  3142         
       
  3143         https://bugs.webkit.org/show_bug.cgi?id=36988
       
  3144 
       
  3145         * Storage/WebDatabaseManager.mm:
       
  3146         (-[WebDatabaseManager deleteOrigin:]):
       
  3147         (-[WebDatabaseManager deleteDatabase:withOrigin:]):
       
  3148         * Storage/WebDatabaseManagerPrivate.h:
       
  3149 
       
  3150 2010-04-01  Alexey Proskuryakov  <ap@apple.com>
       
  3151 
       
  3152         Reviewed by Darin Adler.
       
  3153 
       
  3154         https://bugs.webkit.org/show_bug.cgi?id=36976
       
  3155         <rdar://problem/7817498>
       
  3156         REGRESSION(r54783): Silverlight plug-in causes Safari to crash if JavaScript is disabled
       
  3157 
       
  3158         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
       
  3159         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::get): The HashTable assertions aren't
       
  3160         there to catch potential future attempts to store empty/deleted values before these happen -
       
  3161         it's actually wrong to try to look up these values. Added an early return.
       
  3162         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::forget): Ditto.
       
  3163 
       
  3164 2010-04-01  Chris Marrin  <cmarrin@apple.com>
       
  3165 
       
  3166         Reviewed by Simon Fraser.
       
  3167 
       
  3168         Added layerTreeAsText function to DRT (for Mac)
       
  3169         https://bugs.webkit.org/show_bug.cgi?id=36782
       
  3170 
       
  3171         This is the WebKit side for Mac. It plumbs the
       
  3172         call from WebCore to DRT.
       
  3173 
       
  3174         * WebView/WebFrame.mm:WebKit (Mac) side of plumbing
       
  3175         (-[WebFrame _layerTreeAsText]):
       
  3176         * WebView/WebFramePrivate.h:
       
  3177 
       
  3178 2010-04-01  Alexey Proskuryakov  <ap@apple.com>
       
  3179 
       
  3180         Reviewed by Oliver Hunt.
       
  3181 
       
  3182         https://bugs.webkit.org/show_bug.cgi?id=36976
       
  3183         <rdar://problem/7817498>
       
  3184         REGRESSION(r54783): Silverlight plug-in causes Safari to crash if JavaScript is disabled
       
  3185 
       
  3186         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
       
  3187         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::get): Use find() instead of get(),
       
  3188         because the latter fails with an assertion when looking up 0 or -1.
       
  3189         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::forget): Be prepared for unexpected
       
  3190         object IDs coming from plug-in host.
       
  3191 
       
  3192 2010-03-31  Chris Fleizach  <cfleizach@apple.com>
       
  3193 
       
  3194         Reviewed by Darin Adler.
       
  3195 
       
  3196         Bug 36845 - AX: need a way to set the label of a AXWebArea through WebKit
       
  3197         https://bugs.webkit.org/show_bug.cgi?id=36845
       
  3198 
       
  3199         Provide a way through WebKit to set an accessible label that describes the web area.    
       
  3200 
       
  3201         * WebView/WebFrame.mm:
       
  3202         (-[WebFrame setAccessibleName:]):
       
  3203         * WebView/WebFramePrivate.h:
       
  3204 
       
  3205 2010-03-31  Marcus Bulach  <bulach@chromium.org>
       
  3206 
       
  3207         Reviewed by Jeremy Orlow.
       
  3208 
       
  3209         Adds Geolocation param for cancelGeolocationPermissionRequestForFrame.
       
  3210         https://bugs.webkit.org/show_bug.cgi?id=35031
       
  3211 
       
  3212         * WebCoreSupport/WebChromeClient.h:
       
  3213         (WebChromeClient::cancelGeolocationPermissionRequestForFrame):
       
  3214 
       
  3215 2010-03-30  Gavin Barraclough  <barraclough@apple.com>
       
  3216 
       
  3217         Rubber stamped by Sam Weinig.
       
  3218 
       
  3219         https://bugs.webkit.org/show_bug.cgi?id=36866
       
  3220         Move CString to WTF
       
  3221 
       
  3222         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
       
  3223         (WebKit::NetscapePluginInstanceProxy::getCookies):
       
  3224         (WebKit::NetscapePluginInstanceProxy::getProxy):
       
  3225         (WebKit::NetscapePluginInstanceProxy::getAuthenticationInfo):
       
  3226         (WebKit::NetscapePluginInstanceProxy::resolveURL):
       
  3227         * Plugins/WebBaseNetscapePluginView.h:
       
  3228         * Plugins/WebBaseNetscapePluginView.mm:
       
  3229         * Plugins/WebNetscapePluginView.mm:
       
  3230         (-[WebNetscapePluginView resolveURL:forTarget:]):
       
  3231 
       
  3232 2010-03-30  John Sullivan  <sullivan@apple.com>
       
  3233 
       
  3234         Reviewed by Dan Bernstein.
       
  3235 
       
  3236         https://bugs.webkit.org/show_bug.cgi?id=36848
       
  3237         <rdar://problem/7362913>
       
  3238         Menu items appropriate only for rich-content editing can appear in plain-text contexts
       
  3239 
       
  3240         * WebView/WebHTMLView.mm:
       
  3241         (-[WebHTMLView validRequestorForSendType:returnType:]):
       
  3242         Don't return self for non-string content if _canEditRichly is false.
       
  3243 
       
  3244 2010-03-29  Alexey Proskuryakov  <ap@apple.com>
       
  3245 
       
  3246         Reviewed by Darin Adler.
       
  3247 
       
  3248         https://bugs.webkit.org/show_bug.cgi?id=36791
       
  3249         Add assertions for instance proxy validity
       
  3250 
       
  3251         Add some assertions that the instance proxy hasn't been deleted. We sometimes keep a raw
       
  3252         pointer to one across complicated function calls, relying on the caller to protect the
       
  3253         reference.
       
  3254 
       
  3255         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
       
  3256         (WebKit::NetscapePluginInstanceProxy::renderContextID):
       
  3257         (WebKit::NetscapePluginInstanceProxy::pluginView):
       
  3258         (WebKit::NetscapePluginInstanceProxy::hostProxy):
       
  3259 
       
  3260 2010-03-30  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
       
  3261 
       
  3262         Reviewed by David Kilzer.
       
  3263 
       
  3264         Explicit guards for ENABLE_GEOLOCATION
       
  3265         https://bugs.webkit.org/show_bug.cgi?id=25756
       
  3266 
       
  3267         * WebCoreSupport/WebGeolocationMock.mm:
       
  3268         (-[WebGeolocationMock setError:code:]): Make the body conditional on 
       
  3269         ENABLE(GEOLOCATION)
       
  3270         (-[WebGeolocationMock setPosition:]): Ditto.
       
  3271 
       
  3272 2010-03-26  Kenneth Rohde Christiansen  <kenneth@webkit.org>
       
  3273 
       
  3274         Reviewed by Antti Koivisto.
       
  3275 
       
  3276         Change method name due to it dealing with both flattening
       
  3277         of frame sets and inner frames.
       
  3278 
       
  3279         * WebView/WebPreferenceKeysPrivate.h:
       
  3280         * WebView/WebPreferences.mm:
       
  3281         (+[WebPreferences initialize]):
       
  3282         (-[WebPreferences isFrameFlatteningEnabled]):
       
  3283         (-[WebPreferences setFrameFlatteningEnabled:]):
       
  3284         * WebView/WebPreferencesPrivate.h:
       
  3285         * WebView/WebView.mm:
       
  3286         (-[WebView _preferencesChangedNotification:]):
       
  3287 
       
  3288 2010-03-27  Darin Adler  <darin@apple.com>
       
  3289 
       
  3290         * Misc/WebNSFileManagerExtras.m:
       
  3291         (-[NSFileManager _webkit_pathWithUniqueFilenameForPath:]):
       
  3292         Removed stray "!". How did that get in there?
       
  3293 
       
  3294 2010-03-27  Darin Adler  <darin@apple.com>
       
  3295 
       
  3296         Reviewed by Mark Rowe.
       
  3297 
       
  3298         WebKit NSFileManager methods don't handle broken symlinks correctly.
       
  3299         Part of <rdar://problem/7574046>.
       
  3300 
       
  3301         * Misc/WebNSFileManagerExtras.h: Removed unused defines and methods.
       
  3302         * Misc/WebNSFileManagerExtras.m: Removed unused methods.
       
  3303         (fileExists): Added. For use instead of fileExistsAtPath: for cases where we'd like
       
  3304         to treat a broken symlink as a file that does indeed exist.
       
  3305         (-[NSFileManager _webkit_pathWithUniqueFilenameForPath:]): Use fileExists.
       
  3306 
       
  3307 2010-03-25  Alexey Proskuryakov  <ap@apple.com>
       
  3308 
       
  3309         Reviewed by Mark Rowe.
       
  3310 
       
  3311         * Plugins/Hosted/NetscapePluginHostProxy.mm: (WKPCRunSyncOpenPanel): Re-fetch host proxy in
       
  3312         a way that works in a function that doesn't have a pluginID argument for some reason.
       
  3313 
       
  3314 2010-03-25  Simon Fraser  <simon.fraser@apple.com>
       
  3315 
       
  3316         Build fix: no review.
       
  3317         
       
  3318         Another c_str() -> data().
       
  3319         
       
  3320         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
       
  3321         (WebKit::NetscapePluginInstanceProxy::enumerate):
       
  3322 
       
  3323 2010-03-25  Alexey Proskuryakov  <ap@apple.com>
       
  3324 
       
  3325         Reviewed by Mark Rowe.
       
  3326 
       
  3327         Correctness fix after r56493.
       
  3328 
       
  3329         * Plugins/Hosted/NetscapePluginHostProxy.mm: (WKPCRunSyncOpenPanel): We still need to update
       
  3330         our hostProxy reference, even though we didn't use to have instanceProxy. Nothing guarantees
       
  3331         that the host proxy won't go away while the open panel is up.
       
  3332 
       
  3333 2010-03-24  Mark Rowe  <mrowe@apple.com>
       
  3334 
       
  3335         Build fix after r56474.
       
  3336 
       
  3337         * Plugins/Hosted/NetscapePluginHostProxy.mm:
       
  3338         (WKPCRunSyncOpenPanel):
       
  3339 
       
  3340 2010-03-24  Alexey Proskuryakov  <ap@apple.com>
       
  3341 
       
  3342         Reviewed by Anders Carlsson.
       
  3343 
       
  3344         https://bugs.webkit.org/show_bug.cgi?id=36563
       
  3345         A plug-in makes Safari crash on http://www.itscodingtime.com/
       
  3346 
       
  3347         * Plugins/Hosted/NetscapePluginHostProxy.h:
       
  3348         (WebKit::NetscapePluginHostProxy::port): Assert that the object is still alive. This isn't
       
  3349         beautifully systemic, but helped catch a bug, and may help catch more.
       
  3350         (WebKit::NetscapePluginHostProxy::clientPort): Ditto.
       
  3351         (WebKit::NetscapePluginHostProxy::isProcessingRequests): Changed m_processingRequests to a
       
  3352         static. This doesn't change behavior much, but helps avoid writing into deallocated memory.
       
  3353 
       
  3354         * Plugins/Hosted/NetscapePluginHostProxy.mm:
       
  3355         (WebKit::NetscapePluginHostProxy::NetscapePluginHostProxy): Changed m_processingRequests
       
  3356         to a static.
       
  3357         (WebKit::NetscapePluginHostProxy::processRequests): Ditto. Changing m_processingRequests
       
  3358         after destroying the object in pluginHostDied() was wrong, but reasonably harmless, as there
       
  3359         wasn't much time for some other object to be allocated at this address.
       
  3360         (WKPCEvaluate): Refetch host proxy, as it may have been destroyed.
       
  3361         (WKPCInvoke): Ditto.
       
  3362         (WKPCInvokeDefault): Ditto.
       
  3363         (WKPCGetProperty): Ditto.
       
  3364         (WKPCSetProperty): Ditto.
       
  3365         (WKPCRemoveProperty): Ditto.
       
  3366         (WKPCHasProperty): Ditto.
       
  3367         (WKPCHasMethod): Ditto.
       
  3368         (WKPCEnumerate): Ditto.
       
  3369         (WKPCRunSyncOpenPanel): Ditto.
       
  3370 
       
  3371         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
       
  3372         (WebKit::NetscapePluginInstanceProxy::processRequestsAndWaitForReply): Bail out of the 
       
  3373         "event loop" if host proxy went away while processing a request.
       
  3374 
       
  3375 2010-03-24  Hayato Ito  <hayato@chromium.org>
       
  3376 
       
  3377         Reviewed by Shinichiro Hamaji.
       
  3378 
       
  3379         Refactor computePageRects so that Mac can make use of it.
       
  3380         https://bugs.webkit.org/show_bug.cgi?id=36159
       
  3381 
       
  3382         Refactoring only, so no new tests.
       
  3383 
       
  3384         * WebView/WebFrame.mm:
       
  3385         (-[WebFrame _computePageRectsWithPrintWidthScaleFactor:printHeight:]):
       
  3386 
       
  3387 2010-03-24  Kent Tamura  <tkent@chromium.org>
       
  3388 
       
  3389         Reviewed by Darin Adler.
       
  3390 
       
  3391         Make Icon::createIconForFiles() optional.
       
  3392         https://bugs.webkit.org/show_bug.cgi?id=35072
       
  3393 
       
  3394         - Rename iconForFiles() to chooseIconForFiles().
       
  3395         - Call Icon::createIconForFiles() from chooseIconForFiles().
       
  3396 
       
  3397         * WebCoreSupport/WebChromeClient.h:
       
  3398         * WebCoreSupport/WebChromeClient.mm:
       
  3399         (WebChromeClient::chooseIconForFiles):
       
  3400 
       
  3401 2010-03-23  Dan Bernstein  <mitz@apple.com>
       
  3402 
       
  3403         Reverted accidental change from r56429.
       
  3404 
       
  3405         * WebCoreSupport/WebContextMenuClient.mm:
       
  3406         (WebContextMenuClient::getCustomMenuFromDefaultItems):
       
  3407 
       
  3408 2010-03-23  Dan Bernstein  <mitz@apple.com>
       
  3409 
       
  3410         Reviewed by John Sullivan.
       
  3411 
       
  3412         WebKit part of
       
  3413         <rdar://problem/7197736> Plug-in clip rect does not update when overflow
       
  3414         clip changes
       
  3415         https://bugs.webkit.org/show_bug.cgi?id=36479.
       
  3416 
       
  3417         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
       
  3418         (-[WebHostedNetscapePluginView visibleRectDidChange]): Added. Calls
       
  3419         WKSyncSurfaceToView().
       
  3420         * Plugins/WebBaseNetscapePluginView.h:
       
  3421         * Plugins/WebBaseNetscapePluginView.mm:
       
  3422         (-[WebBaseNetscapePluginView _windowClipRect]): Changed to use Widget::windowClipRect().
       
  3423         (-[WebBaseNetscapePluginView visibleRectDidChange]): Added. Invokes -renewGState.
       
  3424 
       
  3425 2010-03-22  Kevin Decker  <kdecker@apple.com>
       
  3426 
       
  3427         Reviewed by Simon Fraser.
       
  3428 
       
  3429         https://bugs.webkit.org/show_bug.cgi?id=36328
       
  3430 
       
  3431         This patch entirely WebNullPluginView.
       
  3432         
       
  3433         * Plugins/WebNetscapePluginView.mm:
       
  3434         * Plugins/WebNullPluginView.h: Removed.
       
  3435         * Plugins/WebNullPluginView.mm: Removed.
       
  3436         * Resources/nullplugin.tiff: Removed.
       
  3437         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  3438         (WebFrameLoaderClient::createPlugin): Invoke the resource load delegate if the plug-in failed to load.
       
  3439 
       
  3440 2010-03-22  Alexey Proskuryakov  <ap@apple.com>
       
  3441 
       
  3442         Reviewed by John Sullivan.
       
  3443 
       
  3444         https://bugs.webkit.org/show_bug.cgi?id=36455
       
  3445         Make WebKit more resistant against plug-in crashes
       
  3446 
       
  3447         No tests, because crashing on build bots isn't good, even if it's only helper processes
       
  3448         that crash.
       
  3449 
       
  3450         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
       
  3451         (WebKit::NetscapePluginInstanceProxy::waitForReply): Protect "this", because this function
       
  3452         needs it after waiting for reply. Some callers used to do this, but not all, and we really
       
  3453         shouldn't depend on callers here.
       
  3454 
       
  3455         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
       
  3456         (WebKit::NetscapePluginInstanceProxy::wheelEvent): Don't protect the plug-in instance proxy,
       
  3457         because this function doesn't use it after waiting for reply.
       
  3458         (WebKit::NetscapePluginInstanceProxy::createBindingsInstance): Ditto.
       
  3459 
       
  3460         * Plugins/Hosted/ProxyInstance.mm: (WebKit::ProxyInstance::invoke): Added an m_instanceProxy
       
  3461         null check for another code path.
       
  3462 
       
  3463 2010-03-22  Kevin Decker  <kdecker@apple.com>
       
  3464 
       
  3465         Reviewed by John Sullivan.
       
  3466 
       
  3467         https://bugs.webkit.org/show_bug.cgi?id=36328
       
  3468 
       
  3469         * WebCoreSupport/WebViewFactory.mm:
       
  3470         (-[WebViewFactory missingPluginText]): Added.
       
  3471 
       
  3472 2010-03-18  Alexey Proskuryakov  <ap@apple.com>
       
  3473 
       
  3474         Reviewed by Darin Adler.
       
  3475 
       
  3476         https://bugs.webkit.org/show_bug.cgi?id=36337
       
  3477         Log an error when an OOP plug-in sends an unknown object id
       
  3478 
       
  3479         Making these LOG_ERROR and not ASSERTs, because I don't want early returns to look
       
  3480         temporary or redundant.
       
  3481 
       
  3482         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
       
  3483         (WebKit::NetscapePluginInstanceProxy::evaluate):
       
  3484         (WebKit::NetscapePluginInstanceProxy::invoke):
       
  3485         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
       
  3486         (WebKit::NetscapePluginInstanceProxy::construct):
       
  3487         (WebKit::NetscapePluginInstanceProxy::getProperty):
       
  3488         (WebKit::NetscapePluginInstanceProxy::setProperty):
       
  3489         (WebKit::NetscapePluginInstanceProxy::removeProperty):
       
  3490         (WebKit::NetscapePluginInstanceProxy::hasProperty):
       
  3491         (WebKit::NetscapePluginInstanceProxy::hasMethod):
       
  3492         (WebKit::NetscapePluginInstanceProxy::enumerate):
       
  3493 
       
  3494 2010-03-16  Alexey Proskuryakov  <ap@apple.com>
       
  3495 
       
  3496         Reviewed by Darin Adler.
       
  3497 
       
  3498         https://bugs.webkit.org/show_bug.cgi?id=36184
       
  3499         YouTube video resizing doesn't work with OOP plug-ins
       
  3500 
       
  3501         Test: plugins/resize-from-plugin.html
       
  3502 
       
  3503         We were calling _WKPHResizePluginInstance synchronously or asynchronously, depending on
       
  3504         whether the size has changed. But sync and async messages are not necessarily delivered in
       
  3505         order - plug-in host listens only to the former while waiting for a response to a message it
       
  3506         sent (a call to invoke() in this case).
       
  3507 
       
  3508         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
       
  3509         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
       
  3510         (WebKit::NetscapePluginInstanceProxy::resize):
       
  3511         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
       
  3512         (-[WebHostedNetscapePluginView updateAndSetWindow]):
       
  3513 
       
  3514 2010-03-16  Yury Semikhatsky <yurys@chromium.org>
       
  3515 
       
  3516         Reviewed by Pavel Feldman.
       
  3517 
       
  3518         Introduce InspectorFrontendClient that provides InspectorFrontend with an interface to the embedder. InspectorClient now serves as a delegate for InspectorController and does not contain methods for managing inspector frontend window. That allows to create remote InspectorFrontendHost.
       
  3519 
       
  3520         Introduce InspectorFrontendClient that would provide InspectorFrontend with an interface to the embedder
       
  3521         https://bugs.webkit.org/show_bug.cgi?id=35036
       
  3522 
       
  3523         * WebCoreSupport/WebInspectorClient.h:
       
  3524         * WebCoreSupport/WebInspectorClient.mm:
       
  3525         (WebInspectorClient::WebInspectorClient):
       
  3526         (WebInspectorClient::inspectorDestroyed):
       
  3527         (WebInspectorClient::openInspectorFrontend):
       
  3528         (WebInspectorClient::highlight):
       
  3529         (WebInspectorClient::hideHighlight):
       
  3530         (WebInspectorFrontendClient::WebInspectorFrontendClient):
       
  3531         (WebInspectorFrontendClient::frontendLoaded):
       
  3532         (WebInspectorFrontendClient::localizedStringsURL):
       
  3533         (WebInspectorFrontendClient::hiddenPanels):
       
  3534         (WebInspectorFrontendClient::bringToFront):
       
  3535         (WebInspectorFrontendClient::closeWindow):
       
  3536         (WebInspectorFrontendClient::attachWindow):
       
  3537         (WebInspectorFrontendClient::detachWindow):
       
  3538         (WebInspectorFrontendClient::setAttachedWindowHeight):
       
  3539         (WebInspectorFrontendClient::inspectedURLChanged):
       
  3540         (WebInspectorFrontendClient::updateWindowTitle):
       
  3541         (-[WebInspectorWindowController dealloc]):
       
  3542         (-[WebInspectorWindowController windowShouldClose:]):
       
  3543         (-[WebInspectorWindowController close]):
       
  3544         (-[WebInspectorWindowController showWindow:]):
       
  3545         (-[WebInspectorWindowController attach]):
       
  3546         (-[WebInspectorWindowController detach]):
       
  3547         (-[WebInspectorWindowController attached]):
       
  3548         (-[WebInspectorWindowController setFrontendClient:]):
       
  3549         (-[WebInspectorWindowController destroyInspectorView]):
       
  3550         (-[WebNodeHighlighter initWithInspectedWebView:]):
       
  3551         (-[WebNodeHighlighter dealloc]):
       
  3552         (-[WebNodeHighlighter highlightNode:]):
       
  3553         (-[WebNodeHighlighter hideHighlight]):
       
  3554         (-[WebNodeHighlighter didAttachWebNodeHighlight:]):
       
  3555         (-[WebNodeHighlighter willDetachWebNodeHighlight:]):
       
  3556         * WebInspector/WebInspector.mm:
       
  3557         (-[WebInspector attach:]):
       
  3558         (-[WebInspector detach:]):
       
  3559 
       
  3560 2010-03-15  Andy Estes  <aestes@apple.com>
       
  3561 
       
  3562         Reviewed by John Sullivan.
       
  3563 
       
  3564         Updated call to WKGetWheelEventDeltas() to match new method signature.
       
  3565 
       
  3566         https://bugs.webkit.org/show_bug.cgi?id=29601
       
  3567         <rdar://problem/7453254>
       
  3568 
       
  3569         * WebView/WebDynamicScrollBarsView.mm:
       
  3570         (-[WebDynamicScrollBarsView scrollWheel:]):
       
  3571 
       
  3572 2010-03-15  John Sullivan  <sullivan@apple.com>
       
  3573 
       
  3574         Reviewed by Adam Roben.
       
  3575         
       
  3576         -[WebFrame setAlwaysHideHorizontal/VerticalScroller:] prevents keyboard scrolling
       
  3577         <https://bugs.webkit.org/show_bug.cgi?id=36125>
       
  3578 
       
  3579         * WebView/WebDynamicScrollBarsView.h:
       
  3580         Added instance variables horizontalScrollingAllowedButScrollerHidden and
       
  3581         verticalScrollingAllowedButScrollerHidden. Renamed instance variables 
       
  3582         hideHorizontal/VerticalScroller to alwaysHideHorizontal/VerticalScroller for clarity.
       
  3583         Declared methods -horizontalScrollingAllowed and -verticalScrollingAllowed.
       
  3584         Added comments.
       
  3585         
       
  3586         * WebView/WebDynamicScrollBarsView.mm:
       
  3587         (-[WebDynamicScrollBarsView setAlwaysHideHorizontalScroller:]):
       
  3588         Updated for instance variable renaming.
       
  3589         (-[WebDynamicScrollBarsView setAlwaysHideVerticalScroller:]):
       
  3590         Ditto.
       
  3591         (-[WebDynamicScrollBarsView horizontalScrollingAllowed]):
       
  3592         New method, returns YES if the scroller is showing or the only reason that the scroller
       
  3593         is not showing is that setAlwaysHideHorizontalScrolling has been called.
       
  3594         (-[WebDynamicScrollBarsView verticalScrollingAllowed]):
       
  3595         New method, returns YES if the scroller is showing or the only reason that the scroller
       
  3596         is not showing is that setAlwaysHideVerticalScrolling has been called.
       
  3597         (-[WebDynamicScrollBarsView updateScrollers]):
       
  3598         Updated for instance variable renamings. Now updates horizontalScrollingAllowedButScrollerHidden
       
  3599         and verticalScrollingAllowedButScrollerHidden. Now takes the always-hidden state into account
       
  3600         in the early-return code path, to avoid taking it into account twice in the regular code path.
       
  3601         
       
  3602         * WebView/WebFrameView.mm:
       
  3603         (-[WebFrameView _scrollToBeginningOfDocument]):
       
  3604         Use _isScrollable instead of _hasScrollBars.
       
  3605         (-[WebFrameView _scrollToEndOfDocument]):
       
  3606         Ditto.
       
  3607         (-[WebFrameView scrollToBeginningOfDocument:]):
       
  3608         Use _largestScrollableChild instead of _largestChildWithScrollBars.
       
  3609         (-[WebFrameView scrollToEndOfDocument:]):
       
  3610         Ditto.
       
  3611         (-[WebFrameView _pageVertically:]):
       
  3612         Use _isScrollable and _largestScrollableChild instead of _hasScrollBars
       
  3613         and _largestChildWithScrollBars.
       
  3614         (-[WebFrameView _pageHorizontally:]):
       
  3615         Ditto.
       
  3616         (-[WebFrameView _scrollLineVertically:]):
       
  3617         Ditto.
       
  3618         (-[WebFrameView _scrollLineHorizontally:]):
       
  3619         Ditto.
       
  3620         (-[WebFrameView keyDown:]):
       
  3621         Use _largestScrollableChild instead of _largestChildWithScrollBars.
       
  3622         (-[WebFrameView _isScrollable]):
       
  3623         New method, calls -[WebDynamicScrollBarsView horizontalScrollingAllowed] and
       
  3624         -[WebDynamicScrollBarsView verticalScrollingAllowed]
       
  3625         (-[WebFrameView _largestScrollableChild]):
       
  3626         New method, like _largestChildWithScrollBars but uses _isScrollable.
       
  3627         (-[WebFrameView _hasScrollBars]):
       
  3628         Added a comment that this is no longer used by Safari, and can thus probably be
       
  3629         deleted once we no longer want to support it for nightly build compatibility with
       
  3630         old versions of Safari.
       
  3631         (-[WebFrameView _largestChildWithScrollBars]):
       
  3632         Ditto.
       
  3633         
       
  3634         * WebView/WebFrameViewPrivate.h:
       
  3635         Declared -_isScrollable and -_largestScrollableChild. Added comments to
       
  3636         _hasScrollBars and _largestChildWithScrollBars saying that they are no longer
       
  3637         used by Safari, and can thus probably be deleted once we no longer want to 
       
  3638         support them for nightly build compatibility with old versions of Safari.
       
  3639 
       
  3640 2010-03-15  John Sullivan  <sullivan@apple.com>
       
  3641 
       
  3642         Method name and parameter name mistakes from recent SPI addition
       
  3643         <https://bugs.webkit.org/show_bug.cgi?id=36119>
       
  3644 
       
  3645         Reviewed by Dan Bernstein.
       
  3646 
       
  3647         * WebView/WebDynamicScrollBarsView.h:
       
  3648         Renamed instance variable and method name from "setAllowXXX" to "setAllowsXXX".
       
  3649         
       
  3650         * WebView/WebDynamicScrollBarsView.mm:
       
  3651         (-[WebDynamicScrollBarsView setAllowsScrollersToOverlapContent:]):
       
  3652         Updated for renamed instance variable and method.
       
  3653         (-[WebDynamicScrollBarsView setAlwaysHideHorizontalScroller:]):
       
  3654         Changed parameter name from shouldBeVisible to shouldBeHidden.
       
  3655         (-[WebDynamicScrollBarsView setAlwaysHideVerticalScroller:]):
       
  3656         Ditto.
       
  3657         (-[WebDynamicScrollBarsView contentViewFrame]):
       
  3658         Updated for renamed instance variable.
       
  3659         (-[WebDynamicScrollBarsView tile]):
       
  3660         Ditto.
       
  3661         (-[WebDynamicScrollBarsView reflectScrolledClipView:]):
       
  3662         Ditto.
       
  3663 
       
  3664         * WebView/WebFrame.mm:
       
  3665         (-[WebFrame setAllowsScrollersToOverlapContent:]):
       
  3666         Renamed method from setAllowXXX, and updated for same change in WebDynamicScrollBarsView.
       
  3667 
       
  3668         * WebView/WebFramePrivate.h:
       
  3669         Renamed method name from "setAllowXXX" to "setAllowsXXX".
       
  3670 
       
  3671 2010-03-14  Darin Adler  <darin@apple.com>
       
  3672 
       
  3673         Reviewed by Mark Rowe.
       
  3674 
       
  3675         Remove unneeded dependency on non-string identifier for an NSTableColumn
       
  3676         https://bugs.webkit.org/show_bug.cgi?id=36106
       
  3677 
       
  3678         * WebView/WebTextCompletionController.mm:
       
  3679         (-[WebTextCompletionController _buildUI]): Use init instead of initWithIdentifier:
       
  3680         because the table has only one column and that column does not need an identifier.
       
  3681 
       
  3682 2010-03-12  Beth Dakin  <bdakin@apple.com>
       
  3683 
       
  3684         Reviewed by Simon Fraser.
       
  3685 
       
  3686         Fix for https://bugs.webkit.org/show_bug.cgi?id=34942 Fullscreen 
       
  3687         API naming is inconsistent
       
  3688         -and corresponding-
       
  3689         <rdar://problem/7729165>
       
  3690 
       
  3691         This patch changes all occurrences of "fullScreen" to the more 
       
  3692         popular "fullscreen."
       
  3693 
       
  3694         * Plugins/Hosted/NetscapePluginHostProxy.h:
       
  3695         (WebKit::NetscapePluginHostProxy::isFullscreenWindowShowing):
       
  3696         * Plugins/Hosted/NetscapePluginHostProxy.mm:
       
  3697         (WebKit::NetscapePluginHostProxy::NetscapePluginHostProxy):
       
  3698         (WebKit::NetscapePluginHostProxy::didEnterFullscreen):
       
  3699         (WebKit::NetscapePluginHostProxy::didExitFullscreen):
       
  3700         (WebKit::NetscapePluginHostProxy::setFullscreenWindowIsShowing):
       
  3701         (WKPCSetFullscreenWindowIsShowing):
       
  3702         * Plugins/Hosted/WebKitPluginClient.defs:
       
  3703         * Plugins/WebNetscapePluginView.mm:
       
  3704         (-[WebNetscapePluginView _workaroundSilverlightFullscreenBug:]):
       
  3705         (-[WebNetscapePluginView _createPlugin]):
       
  3706         (-[WebNetscapePluginView _destroyPlugin]):
       
  3707         * WebView/WebVideoFullscreenHUDWindowController.mm:
       
  3708         (-[WebVideoFullscreenHUDWindowController windowDidLoad]):
       
  3709 
       
  3710 2010-03-12  Andy Estes  <aestes@apple.com>
       
  3711 
       
  3712         Reviewed by Brady Eidson.
       
  3713 
       
  3714         Expose WebPDFView's underlying PDFDocument.
       
  3715 
       
  3716         https://bugs.webkit.org/show_bug.cgi?id=36045
       
  3717 
       
  3718         * WebView/WebDocumentPrivate.h: Create a new protocol called
       
  3719         WebDocumentPDF.
       
  3720         * WebView/WebPDFView.h: Have WebPDFView implement said protocol.
       
  3721         * WebView/WebPDFView.mm:
       
  3722         (-[WebPDFView PDFDocument]): Expose WebPDFView's underlying
       
  3723         PDFDocument by implementing -(PDFDocument*)PDFDocument from
       
  3724         WebDocumentPDF.
       
  3725 
       
  3726 2010-03-12  Andy Estes  <aestes@apple.com>
       
  3727 
       
  3728         Reviewed by Brady Eidson.
       
  3729 
       
  3730         Remove an unused method.
       
  3731 
       
  3732         https://bugs.webkit.org/show_bug.cgi?id=35940
       
  3733 
       
  3734         * Plugins/WebPluginController.mm:
       
  3735         removed - (void)showURL:(NSURL *) inFrame:(NSString *)
       
  3736 
       
  3737 2010-03-11  Mark Rowe  <mrowe@apple.com>
       
  3738 
       
  3739         Reviewed by David Kilzer.
       
  3740 
       
  3741         <rdar://problem/7745082> Make it possible to build WebKit for older Mac OS X versions from the current Mac OS X version
       
  3742 
       
  3743         Default to using the appropriate SDK if the target Mac OS X version is not the current Mac OS X version.
       
  3744 
       
  3745         * Configurations/Base.xcconfig:
       
  3746 
       
  3747 2010-03-11  Mark Rowe  <mrowe@apple.com>
       
  3748 
       
  3749         Reviewed by Tim Hatcher.
       
  3750 
       
  3751         <rdar://problem/7745082> Make it possible to build WebKit for older Mac OS X versions from the current Mac OS X version
       
  3752 
       
  3753         Introduce TARGET_MAC_OS_X_VERSION_MAJOR to represent the Mac OS X version that is being targeted.  It defaults to the
       
  3754         current Mac OS X version unless otherwise specified.
       
  3755 
       
  3756         Key off TARGET_MAC_OS_X_VERSION_MAJOR where we'd previously been keying off MAC_OS_X_VERSION_MAJOR.
       
  3757 
       
  3758         Explicitly map from the target Mac OS X version to the preferred compiler since Xcode's default compiler choice
       
  3759         may not be usable when targetting a different Mac OS X version.
       
  3760 
       
  3761         Key off TARGET_GCC_VERSION rather than MAC_OS_X_VERSION_MAJOR in locations where we'd previously been keying off
       
  3762         MAC_OS_X_VERSION_MAJOR but the decision is really related to the compiler version being used.
       
  3763 
       
  3764         * Configurations/Base.xcconfig:
       
  3765         * Configurations/DebugRelease.xcconfig:
       
  3766         * Configurations/FeatureDefines.xcconfig:
       
  3767         * Configurations/Version.xcconfig:
       
  3768 
       
  3769 2010-03-11  Anders Carlsson  <andersca@apple.com>
       
  3770 
       
  3771         Reviewed by David Hyatt.
       
  3772 
       
  3773         Remove invalidateContents, it isn't used and it never makes sense to only invalidate the contents.
       
  3774 
       
  3775         * WebCoreSupport/WebChromeClient.h:
       
  3776         * WebCoreSupport/WebChromeClient.mm:
       
  3777 
       
  3778 2010-03-11  Alexey Proskuryakov  <ap@apple.com>
       
  3779 
       
  3780         Reviewed by Geoff Garen.
       
  3781 
       
  3782         https://bugs.webkit.org/show_bug.cgi?id=35965
       
  3783         <rdar://problem/7742771> Crash when passing an object returned from plug-in back to the plug-in
       
  3784 
       
  3785         Test: plugins/round-trip-npobject.html
       
  3786 
       
  3787         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
       
  3788         (WebKit::NetscapePluginInstanceProxy::retainLocalObject): Corrected the check - there is
       
  3789         now a separate ProxyRuntimeObject class for proxy pbjects.
       
  3790         (WebKit::NetscapePluginInstanceProxy::releaseLocalObject): Ditto.
       
  3791 
       
  3792         * Plugins/Hosted/ProxyInstance.mm:
       
  3793         (WebKit::ProxyInstance::invoke): Check if m_instanceProxy is still non-zero. The plug-in
       
  3794         could have crashed while we were waiting for response.
       
  3795         (WebKit::ProxyInstance::setFieldValue): Ditto.
       
  3796 
       
  3797 2010-03-10  Simon Fraser  <simon.fraser@apple.com>
       
  3798 
       
  3799         Reviewed by Darin Adler.
       
  3800 
       
  3801         https://bugs.webkit.org/show_bug.cgi?id=35975
       
  3802         <rdar://problem/7739922> Flash 10.1b crashes when generating snapshots
       
  3803 
       
  3804         Do a version check before sending a drawRect event to a Flash plugin,
       
  3805         since 10.1.d51 has a bug that crashes when called this way.
       
  3806         
       
  3807         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
       
  3808         (-[WebHostedNetscapePluginView drawRect:]):
       
  3809         * Plugins/WebBaseNetscapePluginView.h:
       
  3810         * Plugins/WebBaseNetscapePluginView.mm:
       
  3811         (-[WebBaseNetscapePluginView supportsSnapshotting]):
       
  3812         * Plugins/WebNetscapePluginView.mm:
       
  3813         (-[WebNetscapePluginView drawRect:]):
       
  3814 
       
  3815 2010-03-10  John Sullivan  <sullivan@apple.com>
       
  3816 
       
  3817         Reviewed by Tim Hatcher.
       
  3818 
       
  3819         <rdar://problem/7735387> input type other than text won't work with autofill
       
  3820         <https://bugs.webkit.org/show_bug.cgi?id=35963>
       
  3821 
       
  3822         * WebView/WebHTMLRepresentation.mm:
       
  3823         (-[WebHTMLRepresentation elementDoesAutoComplete:]):
       
  3824         Return true for any text field that's not a password, rather than only
       
  3825         for TEXT type.
       
  3826 
       
  3827 2010-03-09  Brady Eidson  <beidson@apple.com>
       
  3828 
       
  3829         Reviewed by Tim Hatcher.
       
  3830 
       
  3831         REGRESSION: WebInspector docking busted on Windows
       
  3832         <rdar://problem/7728433> and https://bugs.webkit.org/show_bug.cgi?id=35953
       
  3833 
       
  3834         * WebCoreSupport/WebInspectorClient.mm:
       
  3835         (-[WebInspectorWindowController showWindow:]): Use the InspectorController:: copy of the should attach settings key.
       
  3836         (-[WebInspectorWindowController attach]): Ditto.
       
  3837         (-[WebInspectorWindowController detach]): Ditto.
       
  3838 
       
  3839 2010-03-09  Geoffrey Garen  <ggaren@apple.com>
       
  3840 
       
  3841         Reviewed by Darin Adler.
       
  3842 
       
  3843         Updated for FastMalloc reporting changes.
       
  3844         
       
  3845         * Misc/WebCoreStatistics.mm:
       
  3846         (+[WebCoreStatistics memoryStatistics]):
       
  3847 
       
  3848 2010-03-08  Simon Fraser  <simon.fraser@apple.com>
       
  3849 
       
  3850         Reviewed by Mark Rowe.
       
  3851 
       
  3852         Move the new method to the end of the MIG definitions file, to avoid breaking
       
  3853         compatibility between WebKit and older versions of WebKitPluginHost.
       
  3854 
       
  3855         * Plugins/Hosted/WebKitPluginHost.defs:
       
  3856 
       
  3857 2010-03-08  Simon Fraser  <simon.fraser@apple.com>
       
  3858 
       
  3859         Reviewed by Kevin Decker.
       
  3860 
       
  3861         <rdar://problem/7714340> Need to grab image snapshot of Core Animation plugins
       
  3862         
       
  3863         Allow plug-ins using the Core Animation drawing model to be captured when doing a flattening paint,
       
  3864         by sending them a drawRect event as if they were software-painting.
       
  3865 
       
  3866         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
       
  3867         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
       
  3868         (WebKit::NetscapePluginInstanceProxy::snapshot):
       
  3869         New snapshot() method that calls over to the plugin host, and then draws the image that comes back.
       
  3870         
       
  3871         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
       
  3872         (-[WebHostedNetscapePluginView drawRect:]): If we don't have a software renderer, but we're doing
       
  3873         a flattening paint, then call the snapshot method.
       
  3874         
       
  3875         * Plugins/Hosted/WebKitPluginHost.defs: Added snapshot method.
       
  3876         
       
  3877         * Plugins/WebBaseNetscapePluginView.h:
       
  3878         * Plugins/WebBaseNetscapePluginView.mm:
       
  3879         (-[WebBaseNetscapePluginView inFlatteningPaint]):
       
  3880         New utility method that asks the FrameView whether the current paint behavior is
       
  3881         flattening.
       
  3882         
       
  3883         * Plugins/WebNetscapePluginView.mm:
       
  3884         (-[WebNetscapePluginView drawRect:]): If the plug-in is using CA but this is a flattening
       
  3885         paint, go ahead and send a drawRect event to the plug-in.
       
  3886 
       
  3887 2010-03-08  Darin Adler  <darin@apple.com>
       
  3888 
       
  3889         Reviewed by Dan Bernstein.
       
  3890 
       
  3891         Fix crash when you quit inside an unload handler.
       
  3892         rdar://problem/6958347
       
  3893 
       
  3894         Test: manual-tests/quit-inside-unload.html
       
  3895 
       
  3896         * WebView/WebView.mm:
       
  3897         (-[WebView _closeWithFastTeardown]): Removed code to set
       
  3898         _private->closed since _close now does this earlier, before
       
  3899         calling this method.
       
  3900         (-[WebView _close]): Moved code to set _private->closed to the
       
  3901         top of this method.
       
  3902         (-[WebView setHostWindow:]): Rewrote the code that forbade
       
  3903         setting the host window after closing so that it only forbids
       
  3904         non-nil host windows. That way, the code to clear away the host
       
  3905         window can run safely after setting _private->closed, yet client
       
  3906         code cannot set a new host window after closing.
       
  3907 
       
  3908 2010-03-08  Darin Adler  <darin@apple.com>
       
  3909 
       
  3910         Roll out a file I checked in by accident.
       
  3911 
       
  3912         * WebView/WebView.mm: Back to previous version.
       
  3913 
       
  3914 2010-03-08  Chris Marrin  <cmarrin@apple.com>
       
  3915 
       
  3916         Reviewed by Darin Adler.
       
  3917 
       
  3918         Turn on HW accel on Leopard even if coreVideoHas7228836Fix() is false, when WebGL is enabled
       
  3919         https://bugs.webkit.org/show_bug.cgi?id=35759
       
  3920 
       
  3921         This allows WebGL to work on Leopard without the fix. It exposes these users to the crash
       
  3922         that happens because of the CoreVideo bug, but it limits the exposure to those who have 
       
  3923         chosen to enable WebGL.
       
  3924 
       
  3925         * WebView/WebView.mm:
       
  3926         (-[WebView _preferencesChangedNotification:]):
       
  3927 
       
  3928 2010-03-02  Adam Treat  <atreat@rim.com>
       
  3929 
       
  3930         Reviewed by Dave Hyatt.
       
  3931 
       
  3932         Adapt the mac port to the refactoring of repaint methods.
       
  3933 
       
  3934         https://bugs.webkit.org/show_bug.cgi?id=34214
       
  3935 
       
  3936         * WebCoreSupport/WebChromeClient.h:
       
  3937         * WebCoreSupport/WebChromeClient.mm:
       
  3938         (WebChromeClient::invalidateContents):
       
  3939         (WebChromeClient::invalidateWindow):
       
  3940         (WebChromeClient::invalidateContentsAndWindow):
       
  3941         (WebChromeClient::invalidateContentsForSlowScroll):
       
  3942 
       
  3943 2010-03-08  Jian Li  <jianli@chromium.org>
       
  3944 
       
  3945         Reviewed by Dmitry Titov.
       
  3946 
       
  3947         Blob.slice support.
       
  3948         https://bugs.webkit.org/show_bug.cgi?id=32993
       
  3949 
       
  3950         Add ENABLE_BLOB_SLICE feature define.
       
  3951 
       
  3952         * Configurations/FeatureDefines.xcconfig:
       
  3953 
       
  3954 2010-03-08  Eric Uhrhane  <ericu@chromium.org>
       
  3955 
       
  3956         Reviewed by David Levin.
       
  3957 
       
  3958         Remove the now-redundant Settings fields for the Database
       
  3959         https://bugs.webkit.org/show_bug.cgi?id=35763
       
  3960 
       
  3961         No new tests; this code isn't called.
       
  3962 
       
  3963         * WebView/WebView.mm: Remove the call into Settings.
       
  3964         (-[WebView _preferencesChangedNotification:]):
       
  3965 
       
  3966 2010-03-07  Mark Rowe  <mrowe@apple.com>
       
  3967 
       
  3968         Rubber-stamped by Cameron Zwarich.
       
  3969 
       
  3970         Remove unnecessary includes from header files, adding them to the handful of implementation files that need them.
       
  3971 
       
  3972         * Misc/WebIconDatabase.mm:
       
  3973 
       
  3974 2010-03-07  Mark Rowe  <mrowe@apple.com>
       
  3975 
       
  3976         Rubber-stamped by Cameron Zwarich.
       
  3977 
       
  3978         Remove unnecessary includes from header files, adding them to the handful of implementation files that need them.
       
  3979 
       
  3980         * Misc/WebNSPasteboardExtras.mm:
       
  3981 
       
  3982 2010-03-04  Mark Rowe  <mrowe@apple.com>
       
  3983 
       
  3984         Reviewed by Sam Weinig.
       
  3985 
       
  3986         <rdar://problem/7717249> DOMSVG.h includes a non-existent DOMSVGFEMorphologyElement.h
       
  3987 
       
  3988         * MigrateHeaders.make: Migrate DOMSVGFEMorphologyElement.h and DOMSVGFEMorphologyElementInternal.h.
       
  3989 
       
  3990 2010-03-04  Mark Rowe  <mrowe@apple.com>
       
  3991 
       
  3992         Reviewed by Sam Weinig.
       
  3993 
       
  3994         Use a framework-style include to pull in WebInspector.h for consistency
       
  3995         with other parts of WebKit.
       
  3996 
       
  3997         * WebInspector/WebInspectorPrivate.h:
       
  3998 
       
  3999 2010-03-04  Brady Eidson  <beidson@apple.com>
       
  4000 
       
  4001         Reviewed by Geoff Garen.
       
  4002 
       
  4003         REGRESSION (31281): -[WebArchive initWithCoder:] leaks
       
  4004         <rdar://problem/7702420> and https://bugs.webkit.org/show_bug.cgi?id=35534
       
  4005 
       
  4006         * WebView/WebArchive.mm:
       
  4007         (-[WebArchive initWithCoder:]): Don't retain objects we don't own.
       
  4008 
       
  4009 2010-03-03  Alexey Proskuryakov  <ap@apple.com>
       
  4010 
       
  4011         Reviewed by Timothy Hatcher.
       
  4012 
       
  4013         https://bugs.webkit.org/show_bug.cgi?id=35692
       
  4014         <rdar://problem/7703622> Crash when calling abort() on an XHR while in a windowless WebView
       
  4015 
       
  4016         * Panels/WebAuthenticationPanel.m: (-[WebAuthenticationPanel runAsModalDialogWithChallenge:]):
       
  4017         Retain the challenge, just like it's done for sheet.
       
  4018 
       
  4019 2010-03-02  Eric Uhrhane  <ericu@chromium.org>
       
  4020 
       
  4021         Reviewed by David Levin.
       
  4022 
       
  4023         Move database enable bit fully out of settings
       
  4024         This is stage one of a three-stage commit [webkit, then chromium, then
       
  4025         webkit again].  In this change I'm adding calls to
       
  4026         Database::setIsAvailable inside Settings::setDatabaseEnabled and
       
  4027         anywhere else that called it, and switching webkit fully over to using
       
  4028         that flag [added in a previous checkin].  Phase two will remove
       
  4029         Chromium's use of Settings for the Database, and phase three will remove
       
  4030         the Setting for the Database enable entirely, leaving only
       
  4031         Database::isAvailable/setIsAvailable.
       
  4032 
       
  4033         No new tests; tested by existing storage tests.
       
  4034 
       
  4035         https://bugs.webkit.org/show_bug.cgi?id=35310
       
  4036 
       
  4037         * WebView/WebView.mm:  Added a call to Database::setIsAvailable.
       
  4038         (-[WebView _preferencesChangedNotification:]):
       
  4039 
       
  4040 2010-03-02  Adam Roben  <aroben@apple.com>
       
  4041 
       
  4042         Add -[WebView _registerURLSchemeAsSecure:]
       
  4043 
       
  4044         Fixes <http://webkit.org/b/35580> <rdar://problem/7706407> Expose
       
  4045         SecurityOrigin::registerURLSchemeAsSecure as WebKit SPI
       
  4046 
       
  4047         Reviewed by Tim Hatcher.
       
  4048 
       
  4049         * WebView/WebView.mm:
       
  4050         (+[WebView _registerURLSchemeAsSecure:]):
       
  4051         * WebView/WebViewPrivate.h:
       
  4052         Added. Calls through to SecurityOrigin::registerURLSchemeAsSecure.
       
  4053 
       
  4054 2010-03-01  Jakob Petsovits  <jpetsovits@rim.com>
       
  4055 
       
  4056         Reviewed by Adam Barth.
       
  4057 
       
  4058         Adapt to the new ZoomMode enum.
       
  4059         https://bugs.webkit.org/show_bug.cgi?id=35347
       
  4060 
       
  4061         * WebView/WebView.mm:
       
  4062         (-[WebView _preferencesChangedNotification:]):
       
  4063         (-[WebView _setZoomMultiplier:isTextOnly:]):
       
  4064         (-[WebView _realZoomMultiplierIsTextOnly]):
       
  4065 
       
  4066 2010-02-27  Jing Jin  <jjin@apple.com>
       
  4067 
       
  4068         Reviewed by Timothy Hatcher.
       
  4069 
       
  4070         Move implementation of Bug 35449 into WebFramePrivate.
       
  4071 
       
  4072         * WebView/WebFrame.h:
       
  4073         * WebView/WebFrame.mm:
       
  4074         (-[WebFrame setAllowScrollersToOverlapContent:]):
       
  4075         (-[WebFrame setAlwaysHideHorizontalScroller:]):
       
  4076         (-[WebFrame setAlwaysHideVerticalScroller:]):
       
  4077         * WebView/WebFramePrivate.h:
       
  4078 
       
  4079 2010-02-26  Jing Jin  <jjin@apple.com>
       
  4080 
       
  4081         Reviewed by Timothy Hatcher.
       
  4082 
       
  4083         https://bugs.webkit.org/show_bug.cgi?id=35449
       
  4084         Add ability to hide WebFrame scrollbars and to allow scrollbars to overlap with content.
       
  4085 
       
  4086         * WebView/WebDynamicScrollBarsView.h:
       
  4087         * WebView/WebDynamicScrollBarsView.mm:
       
  4088         (-[WebDynamicScrollBarsView setAllowScrollersToOverlapContent:]): Allows scrollbars to 
       
  4089         overlap with the document and re-layouts the document.
       
  4090         (-[WebDynamicScrollBarsView setAlwaysHideHorizontalScroller:]): Hides the horizontal scrollbar.
       
  4091         (-[WebDynamicScrollBarsView setAlwaysHideVerticalScroller:]): Hides the vertical scrollbar.
       
  4092         (-[WebDynamicScrollBarsView contentViewFrame]): Calculates the appropriate frame based
       
  4093         on allowScrollersToOverlapContent.
       
  4094         (-[WebDynamicScrollBarsView tile]): If allowScrollersToOverlapContent is YES, set the
       
  4095         contentView's frame so it overlaps with the scrollbar.
       
  4096         (-[WebDynamicScrollBarsView updateScrollers]): Take into account hideHorizontalScroller
       
  4097         and hideVerticalScroller.
       
  4098         (-[WebDynamicScrollBarsView reflectScrolledClipView:]): set drawsBackground to NO when
       
  4099         scrollbars are overlapping with content, so we don't get trails during scrollbar draw updates.
       
  4100         * WebView/WebDynamicScrollBarsViewInternal.h:
       
  4101         * WebView/WebFrame.h:
       
  4102         * WebView/WebFrame.mm:
       
  4103         (-[WebFrame setAllowScrollersToOverlapContent:]): Hook for [WebDynamicScrollBarsView setAllowScrollersToOverlapContent:]
       
  4104         (-[WebFrame setAlwaysHideHorizontalScroller:]): Hook for [WebDynamicScrollBarsView setAlwaysHideHorizontalScroller:]
       
  4105         (-[WebFrame setAlwaysHideVerticalScroller:]): Hook for [WebDynamicScrollBarsView setAlwaysHideVerticalScroller:]
       
  4106 
       
  4107 2010-02-26  Gavin Barraclough  <barraclough@apple.com>
       
  4108 
       
  4109         Reviewed by Alexey Proskuryakov.
       
  4110 
       
  4111         Bug 35401 - Fix handling of errors in handling calls over bridge,
       
  4112         where base object bridge-type does not match method bridge-type.
       
  4113 
       
  4114         The code assumes users will only attempt to invoke a Java method
       
  4115         on a Java base object, etc.
       
  4116         Add language specific subclasses of RuntimeMethod, and pass the
       
  4117         RuntimeMethod into invokeMethod, so we can typecheck before
       
  4118         casting.  Throw an exception on type mismatch.
       
  4119 
       
  4120         * Plugins/Hosted/ProxyInstance.h:
       
  4121         * Plugins/Hosted/ProxyInstance.mm:
       
  4122         (WebKit::PluginRuntimeMethod::PluginRuntimeMethod): new class to distinguish this type of RuntimeMethod.
       
  4123         (WebKit::ProxyInstance::getMethod): create an appropriate sublclass of RuntimeMethod.
       
  4124         (WebKit::ProxyInstance::invokeMethod): dynamically check the type of the RuntimeMethod.
       
  4125 
       
  4126 2010-02-25  Alexey Proskuryakov  <ap@apple.com>
       
  4127 
       
  4128         Reviewed by Geoffrey Garen.
       
  4129 
       
  4130         https://bugs.webkit.org/show_bug.cgi?id=35394
       
  4131         <rdar://problem/7685262> Make passing objects between Java and plug-ins work
       
  4132 
       
  4133         Added a ProxyInstance implementation of RuntimeObject.
       
  4134 
       
  4135         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
       
  4136         (WebKit::NetscapePluginInstanceProxy::addValueToArray):
       
  4137         * Plugins/Hosted/ProxyInstance.h:
       
  4138         * Plugins/Hosted/ProxyInstance.mm:
       
  4139         (WebKit::ProxyInstance::newRuntimeObject):
       
  4140         (WebKit::ProxyInstance::getClass):
       
  4141         * Plugins/Hosted/ProxyRuntimeObject.h: Added.
       
  4142         (WebKit::ProxyRuntimeObject::classInfo):
       
  4143         * Plugins/Hosted/ProxyRuntimeObject.mm: Added.
       
  4144         (WebKit::ProxyRuntimeObject::ProxyRuntimeObject):
       
  4145         (WebKit::ProxyRuntimeObject::~ProxyRuntimeObject):
       
  4146         (WebKit::ProxyRuntimeObject::getInternalProxyInstance):
       
  4147 
       
  4148 2010-02-24  Adam Barth  <abarth@webkit.org>
       
  4149 
       
  4150         Reviewed by Darin Fisher.
       
  4151 
       
  4152         [Chromium API] Disambiguate allowJavaScript from didNotAllowScript
       
  4153         https://bugs.webkit.org/show_bug.cgi?id=35205
       
  4154 
       
  4155         Make these two callsites explicit about not running script immediately.
       
  4156 
       
  4157         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
       
  4158         (WebKit::NetscapePluginInstanceProxy::getWindowNPObject):
       
  4159         (WebKit::NetscapePluginInstanceProxy::demarshalValueFromArray):
       
  4160 
       
  4161 2010-02-23  Brady Eidson  <beidson@apple.com>
       
  4162 
       
  4163         Reviewed by Tim Hatcher and Pavel Feldman.
       
  4164 
       
  4165         Regression (r55107) - WebInspector docking is busted.
       
  4166         https://bugs.webkit.org/show_bug.cgi?id=35274
       
  4167 
       
  4168         * WebCoreSupport/WebInspectorClient.mm:
       
  4169         (-[WebInspectorWindowController showWindow:]): Swap the order of the "should attach?" check
       
  4170           to get the expected behavior.
       
  4171 
       
  4172 2010-02-23  Dan Bernstein  <mitz@apple.com>
       
  4173 
       
  4174         Reviewed by Simon Fraser.
       
  4175 
       
  4176         <rdar://problem/7611158> Incomplete repaint of YouTube timeline thumb while scrolling
       
  4177         https://bugs.webkit.org/show_bug.cgi?id=34381
       
  4178 
       
  4179         Test: fast/repaint/repaint-during-scroll.html
       
  4180 
       
  4181         NSClipView offsets any rects marked as needing display during scrolling
       
  4182         by the scroll offset. Compensate for this when -setNeedsDisplay: is called
       
  4183         during scrolling.
       
  4184 
       
  4185         * WebView/WebHTMLView.mm:
       
  4186         (-[WebHTMLView _frameOrBoundsChanged]): Set inScrollPositionChanged to YES
       
  4187         around to call to FrameView::scrollPositionChanged().
       
  4188         (-[WebHTMLView setNeedsDisplayInRect:]): When called beneath
       
  4189         scrollPositionChanged(), adjust the rect by the inverse of the scroll offset.
       
  4190 
       
  4191 2010-02-23  Steve Block  <steveblock@google.com>
       
  4192 
       
  4193         Reviewed by Darin Adler.
       
  4194 
       
  4195         Adds ChromeClient::cancelGeolocationPermissionRequestForFrame
       
  4196         https://bugs.webkit.org/show_bug.cgi?id=34962
       
  4197 
       
  4198         This method is required so that a Geolocation object can cancel an
       
  4199         asynchronous permission request. This allows the chrome client to cancel
       
  4200         any UI it is showing for the permission request.
       
  4201 
       
  4202         * WebCoreSupport/WebChromeClient.h:
       
  4203         (WebChromeClient::cancelGeolocationPermissionRequestForFrame):
       
  4204 
       
  4205 2010-02-22  Alexey Proskuryakov  <ap@apple.com>
       
  4206 
       
  4207         Rubber-stamped by Geoff Garen.
       
  4208 
       
  4209         Rename RuntimeObjectImp to RuntimeObject.
       
  4210 
       
  4211         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
       
  4212         (WebKit::NetscapePluginInstanceProxy::addValueToArray):
       
  4213         (WebKit::NetscapePluginInstanceProxy::retainLocalObject):
       
  4214         (WebKit::NetscapePluginInstanceProxy::releaseLocalObject):
       
  4215 
       
  4216 2010-02-22  Brady Eidson  <beidson@apple.com>
       
  4217 
       
  4218         Reviewed by Tim Hatcher.
       
  4219 
       
  4220         Disable WebView docking to views that are too small.
       
  4221         <rdar://problem/7248409> and https://bugs.webkit.org/show_bug.cgi?id=35254
       
  4222 
       
  4223         * WebCoreSupport/WebInspectorClient.mm:
       
  4224         (-[WebInspectorWindowController showWindow:]): No matter the preference, don't open the inspector 
       
  4225           window attached if WebCore says it shouldn't be attached.
       
  4226 
       
  4227 2010-02-22  Simon Fraser  <simon.fraser@apple.com>
       
  4228 
       
  4229         Reviewed by John Sullivan.
       
  4230 
       
  4231         <rdar://problem/7285392> 
       
  4232         On Leopard, we have to disable hardware acceleration if we detect that the
       
  4233         installed Core Video framework has bug <rdar://problem/7228836>.
       
  4234         
       
  4235         * WebView/WebView.mm:
       
  4236         (coreVideoHas7228836Fix):
       
  4237         (-[WebView _preferencesChangedNotification:]):
       
  4238 
       
  4239 2010-02-21  Dan Bernstein  <mitz@apple.com>
       
  4240 
       
  4241         Reviewed by Darin Adler.
       
  4242 
       
  4243         False warnings about needing layout in
       
  4244         -[WebHTMLView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
       
  4245         https://bugs.webkit.org/show_bug.cgi?id=35218
       
  4246 
       
  4247         * WebView/WebHTMLView.mm:
       
  4248         (-[WebHTMLView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]):
       
  4249         Suppress the warning and the forced layout if the view is not being drawn
       
  4250         in this display operation.
       
  4251 
       
  4252 2010-02-21  Kevin Decker  <kdecker@apple.com>
       
  4253 
       
  4254         Reviewed by Sam Weinig.
       
  4255 
       
  4256         plugInViewWithArguments: API sends wrong parameter for WebPlugInBaseURLKey
       
  4257         https://bugs.webkit.org/show_bug.cgi?id=35215
       
  4258         <rdar://problem/7673157>
       
  4259         
       
  4260         The plugInViewWithArguments: API passes a dictionary of plugin arguments. One of the parameters
       
  4261         is WebPlugInBaseURLKey, which is a key that represents the base URL of the document containing
       
  4262         the plug-in's view. Instead of sending the base URL, code in  WebFrameLoaderClient::createPlugin
       
  4263         would incorrectly pass the source URL of the plug-in resource.
       
  4264 
       
  4265         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  4266         (WebFrameLoaderClient::createPlugin): When building the plug-in arguments dictionary, pass the
       
  4267         real base URL for the WebPlugInBaseURLKey key.
       
  4268 
       
  4269 2010-02-19  Maciej Stachowiak  <mjs@apple.com>
       
  4270 
       
  4271         Reviewed by David Levin.
       
  4272 
       
  4273         Add an ENABLE flag for sandboxed iframes to make it possible to disable it in releases
       
  4274         https://bugs.webkit.org/show_bug.cgi?id=35147
       
  4275 
       
  4276         * Configurations/FeatureDefines.xcconfig:
       
  4277 
       
  4278 2010-02-19  Alexey Proskuryakov  <ap@apple.com>
       
  4279 
       
  4280         Reviewed by Maciej Stachowiak.
       
  4281 
       
  4282         https://bugs.webkit.org/show_bug.cgi?id=35132
       
  4283         <rdar://problem/7664353> Mouse cursor sometimes flickers over Flash content (35132)
       
  4284 
       
  4285         * Plugins/WebNetscapePluginEventHandlerCarbon.mm:
       
  4286         (WebNetscapePluginEventHandlerCarbon::mouseMoved): Send adjustCursor events on every mouse
       
  4287         move. This matches Firefox, and is actually required for plug-ins to manipulate cursor wihout
       
  4288         resorting to techniques such as fast firing timers.
       
  4289 
       
  4290         * Plugins/WebNetscapePluginView.mm:
       
  4291         (-[WebNetscapePluginView handleMouseEntered:]): Some plug-ins handle mouse cursor internally,
       
  4292         but those that don't just need to get an arrow cursor (matching Firefox). This means that
       
  4293         e.g. a plugin inside <A> won't get a finger mouse pointer.
       
  4294 
       
  4295         * Plugins/WebHostedNetscapePluginView.mm:
       
  4296         (-[WebNetscapePluginView handleMouseEntered:]):
       
  4297         (-[WebNetscapePluginView handleMouseExited:]):
       
  4298         Implement this behavior here, too. Also, out of process code didn't reset mouse pointer on
       
  4299         mouse exit, which it needed to do.
       
  4300 
       
  4301         * WebView/WebHTMLView.mm:
       
  4302         (needsCursorRectsSupportAtPoint):
       
  4303         (setCursor):
       
  4304         (resetCursorRects):
       
  4305         Make sure that the same workaround we have for Web content also applies to Netscape plug-ins,
       
  4306         as AppKit would reset the mouse pointer to arrow if given a chance.
       
  4307         (+[WebHTMLViewPrivate initialize]): Renamed setCursorIMP on Leopard and higher to prevent
       
  4308         confusion - the method we override is completely different.
       
  4309         (-[WebHTMLView hitTest:]): Added a FIXME about a likely bug.
       
  4310 
       
  4311 2010-02-19  Simon Fraser  <simon.fraser@apple.com>
       
  4312 
       
  4313         Reviewed by Dan Bernstein.
       
  4314 
       
  4315         <rdar://problem/7535894> Page contents missing from snapshot on Newsweek.com article
       
  4316         
       
  4317         Followup to avoid capturing compositing layers twice in snapshots. Add private
       
  4318         methods to WebView to specify whether drawing the WebView into an image will
       
  4319         include flattened compositing layers (the default behavior) or not.
       
  4320 
       
  4321         * WebView/WebFrame.mm:
       
  4322         (-[WebFrame _drawRect:contentsOnly:]): Consult the WebView flag to see if we
       
  4323         want flattening.
       
  4324         
       
  4325         * WebView/WebViewPrivate.h: New methods.
       
  4326         * WebView/WebView.mm: Ditto.
       
  4327         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
       
  4328         (-[WebView _setIncludesFlattenedCompositingLayersWhenDrawingToBitmap:]):
       
  4329         (-[WebView _includesFlattenedCompositingLayersWhenDrawingToBitmap]):
       
  4330 
       
  4331         * WebView/WebViewData.h: New member variable.
       
  4332 
       
  4333 2010-02-19  Alexey Proskuryakov  <ap@apple.com>
       
  4334 
       
  4335         Reviewed by Dan Bernstein.
       
  4336 
       
  4337         https://bugs.webkit.org/show_bug.cgi?id=35165
       
  4338         plugins/set-status.html fails on Windows bot
       
  4339 
       
  4340         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
       
  4341         (WebKit::NetscapePluginInstanceProxy::status):
       
  4342         * Plugins/WebNetscapePluginView.mm:
       
  4343         (-[WebNetscapePluginView status:]):
       
  4344         Match Windows port behavior (and also Firefox one, in a way) - pass null status messages as
       
  4345         empty ones to chrome.
       
  4346 
       
  4347 2010-02-18  Simon Fraser  <simon.fraser@apple.com>
       
  4348 
       
  4349         Reviewed by Dan Bernstein.
       
  4350 
       
  4351         <rdar://problem/7535894> Page contents missing from snapshot on Newsweek.com article
       
  4352 
       
  4353         Add logic to determine when painting via the software rendering path will give an equivalent
       
  4354         result to the accelerated compositing presentation. This tests for the presence of 3D transforms.
       
  4355 
       
  4356         Also have -[WebFrame _drawRect:contentsOnly:] set the PaintBehaviorFlattenCompositingLayers
       
  4357         paint behavior when painting into a bitmap context, so that snapshots contain composited layers.
       
  4358 
       
  4359         * WebView/WebFrame.mm:
       
  4360         (-[WebFrame _drawRect:contentsOnly:]): Set the PaintBehaviorFlattenCompositingLayers flag
       
  4361         when painting into a bitmap context.
       
  4362         * WebView/WebView.mm:
       
  4363         (-[WebView _isSoftwareRenderable]): Returns YES if all frames can be software-rendered.
       
  4364         * WebView/WebViewPrivate.h: New _isSoftwareRenderable method.
       
  4365 
       
  4366 2010-02-18  Alexey Proskuryakov  <ap@apple.com>
       
  4367 
       
  4368         Reviewed by Dan Bernstein.
       
  4369 
       
  4370         https://bugs.webkit.org/show_bug.cgi?id=35134
       
  4371         <rdar://problem/7246280> Crash when a plugin calls NPN_SetStatus(0)
       
  4372 
       
  4373         Test: plugins/set-status.html
       
  4374 
       
  4375         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
       
  4376         (WebKit::NetscapePluginInstanceProxy::status):
       
  4377         (WebKit::NetscapePluginInstanceProxy::loadURL):
       
  4378         Added null checks for CFStringCreateWithCString arguments.
       
  4379 
       
  4380 2010-02-17  Dmitry Titov  <dimich@chromium.org>
       
  4381 
       
  4382         Reviewed by David Levin, Darin Fisher, Simon Hausmann.
       
  4383 
       
  4384         When a live iframe element is moved between pages, it still depends on the old page.
       
  4385         https://bugs.webkit.org/show_bug.cgi?id=34382
       
  4386 
       
  4387         * WebCoreSupport/WebFrameLoaderClient.h:
       
  4388         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  4389         Added empty implementation of a new virtual method.
       
  4390 
       
  4391         (WebFrameLoaderClient::didTransferChildFrameToNewDocument):
       
  4392 
       
  4393 2010-02-17  Kent Tamura  <tkent@chromium.org>
       
  4394 
       
  4395         Reviewed by Eric Seidel.
       
  4396 
       
  4397         Introduces new Icon loading interface in order to support
       
  4398         asynchronous loading.
       
  4399         https://bugs.webkit.org/show_bug.cgi?id=32054
       
  4400 
       
  4401         Add an empty implementation of ChromeClient::iconForFiles().
       
  4402 
       
  4403         * WebCoreSupport/WebChromeClient.h:
       
  4404         * WebCoreSupport/WebChromeClient.mm:
       
  4405         (WebChromeClient::iconForFiles):
       
  4406 
       
  4407 2010-02-17  Timothy Hatcher  <timothy@apple.com>
       
  4408 
       
  4409         Add a way for WebView and its dependancies to be selectively included
       
  4410         in WebKitStatistics leak tracking. By default WebView is not included and
       
  4411         you need to subclass WebView and implement +isIncludedInWebKitStatistics
       
  4412         to be included.
       
  4413 
       
  4414         rdar://problem/7567677&7572900
       
  4415         https://webkit.org/b/35045
       
  4416 
       
  4417         Reviewed by Adam Roben.
       
  4418 
       
  4419         * WebView/WebDataSource.mm:
       
  4420         (-[WebDataSource _initWithDocumentLoader:]): Increment WebDataSourceCount if the WebFrame is included in statistics.
       
  4421         (-[WebDataSource dealloc]): Only --WebDataSourceCount if _private->includedInWebKitStatistics is YES.
       
  4422         (-[WebDataSource finalize]): Ditto.
       
  4423         * WebView/WebFrame.mm:
       
  4424         (-[WebFrame _isIncludedInWebKitStatistics]): Return _private->includedInWebKitStatistics.
       
  4425         (-[WebFrame _initWithWebFrameView:webView:]): Increment WebFrameCount if the WebView's class is included in statistics.
       
  4426         (-[WebFrame dealloc]): Only --WebFrameCount if _private->includedInWebKitStatistics is YES.
       
  4427         (-[WebFrame finalize]): Ditto.
       
  4428         * WebView/WebFrameInternal.h:
       
  4429         * WebView/WebFrameView.mm:
       
  4430         (-[WebFrameView _setWebFrame:]): Increment WebFrameViewCount if the WebFrame is included in statistics.
       
  4431         (-[WebFrameView initWithFrame:]): Move ++WebFrameViewCount from here since we don't
       
  4432         know what WebFrame we belong to yet.
       
  4433         (-[WebFrameView dealloc]): Only --WebFrameViewCount if _private->includedInWebKitStatistics is YES.
       
  4434         (-[WebFrameView finalize]): Ditto.
       
  4435         * WebView/WebHTMLRepresentation.mm:
       
  4436         (-[WebHTMLRepresentation init]): Move ++WebHTMLRepresentationCount from here since we don't
       
  4437         know what WebFrame we belong to yet.
       
  4438         (-[WebHTMLRepresentation dealloc]): Only --WebHTMLRepresentationCount if _private->includedInWebKitStatistics is YES.
       
  4439         (-[WebHTMLRepresentation finalize]): Ditto.
       
  4440         (-[WebHTMLRepresentation setDataSource:]): Increment WebHTMLRepresentationCount if the WebFrame of the dataSource is
       
  4441         included in statistics.
       
  4442         * WebView/WebView.mm:
       
  4443         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
       
  4444         (-[WebView dealloc]):
       
  4445         (+[WebView shouldIncludeInWebKitStatistics]): Return NO, so any WebView wont be included.
       
  4446         Subclasses that care can return YES to be included.
       
  4447         * WebView/WebViewInternal.h:
       
  4448 
       
  4449 2010-02-16  Darin Adler  <darin@apple.com>
       
  4450 
       
  4451         Reviewed by Sam Weinig.
       
  4452 
       
  4453         Generalize delayed plug-in start for background tabs for use for other media
       
  4454         https://bugs.webkit.org/show_bug.cgi?id=34981
       
  4455 
       
  4456         * WebView/WebHTMLView.mm:
       
  4457         (-[WebHTMLView viewWillMoveToWindow:]): Added comment.
       
  4458         (-[WebHTMLView viewDidMoveToWindow]): Ditto.
       
  4459 
       
  4460         * WebView/WebView.mm:
       
  4461         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
       
  4462         Call setCanStartMedia right away so that if this view is not in a window, it
       
  4463         will not start any media.
       
  4464         (-[WebView viewWillMoveToWindow:]): Call setCanStartMedia(false) when moving
       
  4465         to a window of nil.
       
  4466         (-[WebView viewDidMoveToWindow]): Call setCanStartMedia(true) when moved to
       
  4467         a window that is non-nil.
       
  4468 
       
  4469 2010-02-16  Eric Carlson  <eric.carlson@apple.com>
       
  4470 
       
  4471         Reviewed by Simon Fraser.
       
  4472 
       
  4473         https://bugs.webkit.org/show_bug.cgi?id=34988
       
  4474         WebHTMLView.mm has two -willRemoveSubview: methods
       
  4475 
       
  4476         * WebView/WebHTMLView.mm:
       
  4477         (-[WebHTMLView willRemoveSubview:]): Consolidate the two copies of this method.
       
  4478 
       
  4479 2010-02-16  Alexey Proskuryakov  <ap@apple.com>
       
  4480 
       
  4481         Reviewed by Geoffrey Garen and Kevin Decker.
       
  4482 
       
  4483         https://bugs.webkit.org/show_bug.cgi?id=34989
       
  4484         <rdar://problem/7417965> Cursor disappears on scroll bars that are over plugin content
       
  4485 
       
  4486         This fixes event dispatch for both Cocoa and Carbon event models (mouseEntered/mouseExited
       
  4487         in the former case, and adjustCursor in the latter).
       
  4488 
       
  4489         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
       
  4490         (-[WebHostedNetscapePluginView handleMouseEntered:]):
       
  4491         (-[WebHostedNetscapePluginView handleMouseExited:]):
       
  4492         * Plugins/WebBaseNetscapePluginView.h:
       
  4493         * Plugins/WebBaseNetscapePluginView.mm:
       
  4494         (-[WebBaseNetscapePluginView handleMouseEntered:]):
       
  4495         (-[WebBaseNetscapePluginView handleMouseExited:]):
       
  4496         * Plugins/WebNetscapePluginView.h:
       
  4497         * Plugins/WebNetscapePluginView.mm:
       
  4498         (-[WebNetscapePluginView handleMouseEntered:]):
       
  4499         (-[WebNetscapePluginView handleMouseExited:]):
       
  4500         AppKit cannot reliably dispatch events for overlapping views. We are now asking WebCore to
       
  4501         notify plug-in views of mouse entered/exited as part of DOM event dispatch.
       
  4502 
       
  4503         * WebCoreSupport/WebFrameLoaderClient.mm: (NetscapePluginWidget::handleEvent): Besides
       
  4504         mouse moved, dispatch plugin mouse entered/exit events in HTMLPlugInElement default event
       
  4505         handler. Other mouse events are passed down by EventHandler.
       
  4506 
       
  4507 2010-02-15  Alexey Proskuryakov  <ap@apple.com>
       
  4508 
       
  4509         More build fixing (for what is actually a 64-bit failure, as 32-bit apparently includes
       
  4510         headers that aren't included in 64-bit).
       
  4511 
       
  4512         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
       
  4513         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
       
  4514         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::contains):
       
  4515         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::get):
       
  4516         Move inline functions to .cpp; also made the class Noncopyable.
       
  4517 
       
  4518 2010-02-15  Alexey Proskuryakov  <ap@apple.com>
       
  4519 
       
  4520         Mac release build fix attempt.
       
  4521 
       
  4522         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
       
  4523         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
       
  4524         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::~LocalObjectMap):
       
  4525         Implement destructor in .cpp file, where necessary headers are already included.
       
  4526 
       
  4527 2010-02-12  Alexey Proskuryakov  <ap@apple.com>
       
  4528 
       
  4529         Reviewed by Kevin Decker.
       
  4530 
       
  4531         <rdar://problem/7130641> Browser objects identity is not preserved by Safari
       
  4532 
       
  4533         Out of process part.
       
  4534 
       
  4535         To avoid excessive IPC, plugin process doesn't send each NPObject release/retain call to
       
  4536         Safari. It only sends one when the last one is removed, and it can destroy the proxy
       
  4537         NPObject.
       
  4538 
       
  4539         However, the browser may be sending the same object out to plug-in as a function call
       
  4540         argument at the same time - neither side can know what the other one is up to. The solution
       
  4541         is to make the "destroying object" call return a boolean result, making it possible for 
       
  4542         the browser to make plugin host keep the proxy with zero refcount for a little longer.
       
  4543 
       
  4544         * Plugins/Hosted/NetscapePluginHostProxy.mm:
       
  4545         (WKPCForgetBrowserObject): This function (that used to be named ReleaseObject) is only
       
  4546         called when plug-in releases all of its references, so renamed it. Its boolean result
       
  4547         is returned as call success or failure.
       
  4548 
       
  4549         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
       
  4550         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap): Made the numeric ID to JSObject map
       
  4551         two-way.
       
  4552 
       
  4553         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
       
  4554         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject): This method is tricky
       
  4555         in that it creates objects with refcount of 1, but doesn't increase refcount when returning
       
  4556         found objects. This extra count accounts for the "reference" kept by plugin process.
       
  4557         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::retain): Only retaining for the
       
  4558         duration of calls out to plug-in, which means that refcount is almost always equal to 1.
       
  4559         Note that we can't use "++" here, due to how std::pair works!
       
  4560         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::release): Ditto.
       
  4561         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::clear): Clear all references when
       
  4562         stopping plug-in.
       
  4563         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::forget): Like release(), but only
       
  4564         functional when recount is 1 (meaning that the object is not being sent out to plug-in at
       
  4565         the moment).
       
  4566         (WebKit::NetscapePluginInstanceProxy::NetscapePluginInstanceProxy): Updated for other changes.
       
  4567         (WebKit::NetscapePluginInstanceProxy::cleanup): Ditto.
       
  4568         (WebKit::NetscapePluginInstanceProxy::getWindowNPObject): Ditto.
       
  4569         (WebKit::NetscapePluginInstanceProxy::getPluginElementNPObject): Ditto.
       
  4570         (WebKit::NetscapePluginInstanceProxy::forgetBrowserObjectID): Ditto.
       
  4571         (WebKit::NetscapePluginInstanceProxy::evaluate): Ditto.
       
  4572         (WebKit::NetscapePluginInstanceProxy::invoke): Ditto.
       
  4573         (WebKit::NetscapePluginInstanceProxy::invokeDefault): Ditto.
       
  4574         (WebKit::NetscapePluginInstanceProxy::construct): Ditto.
       
  4575         (WebKit::NetscapePluginInstanceProxy::getProperty): Ditto.
       
  4576         (WebKit::NetscapePluginInstanceProxy::setProperty): Ditto.
       
  4577         (WebKit::NetscapePluginInstanceProxy::removeProperty): Ditto.
       
  4578         (WebKit::NetscapePluginInstanceProxy::hasProperty): Ditto.
       
  4579         (WebKit::NetscapePluginInstanceProxy::hasMethod): Ditto.
       
  4580         (WebKit::NetscapePluginInstanceProxy::enumerate): Ditto.
       
  4581         (WebKit::NetscapePluginInstanceProxy::addValueToArray): Ditto.
       
  4582         (WebKit::NetscapePluginInstanceProxy::demarshalValueFromArray): Ditto.
       
  4583         (WebKit::NetscapePluginInstanceProxy::retainLocalObject): Helper for calling retain when
       
  4584         making calls out to plug-in. No-op for objects that aren't wrapped to be sent (i.e. for
       
  4585         objects wrapping ProxyInstance wrappers for plug-in objects being sent bak).
       
  4586         (WebKit::NetscapePluginInstanceProxy::releaseLocalObject): Ditto.
       
  4587 
       
  4588         * Plugins/Hosted/ProxyInstance.mm:
       
  4589         (WebKit::ProxyInstance::invoke): Retain/release arguments during call. 
       
  4590         (WebKit::ProxyInstance::setFieldValue): Ditto.
       
  4591 
       
  4592         * Plugins/Hosted/WebKitPluginClient.defs: Renamed PCReleaseObject to PCForgetBrowserObject.
       
  4593 
       
  4594 2010-02-12  Darin Adler  <darin@apple.com>
       
  4595 
       
  4596         Reviewed by Sam Weinig.
       
  4597 
       
  4598         Removed unneeded custom implementation of isDescendantOf.
       
  4599 
       
  4600         * Plugins/WebBaseNetscapePluginView.mm:
       
  4601         (-[WebBaseNetscapePluginView shouldClipOutPlugin]): Use the
       
  4602         -[NSView isDescendantOf:] method instead of our own method
       
  4603         named superviewsHaveSuperviews.
       
  4604 
       
  4605 2010-02-12  Dan Bernstein  <mitz@apple.com>
       
  4606 
       
  4607         Reviewed by Darin Adler.
       
  4608 
       
  4609         <rdar://problem/7615234> REGRESSION (r48586): Loading an HTML page causes
       
  4610         PDFKit to be loaded
       
  4611 
       
  4612         * WebView/WebPDFDocumentExtras.h: Removed the category declaration and
       
  4613         addWebPDFDocumentExtras(). Declare allScriptsInPDFDocument().
       
  4614         * WebView/WebPDFDocumentExtras.mm:
       
  4615         (allScriptsInPDFDocument): Changed the -_web_allScripts method into this function.
       
  4616         * WebView/WebPDFRepresentation.mm: Removed +initialize.
       
  4617         (-[WebPDFRepresentation finishedLoadingWithDataSource:]): Use
       
  4618         allScriptsInPDFDocument() instead of -_web_allScripts.
       
  4619 
       
  4620 2010-02-10  Geoffrey Garen  <ggaren@apple.com>
       
  4621 
       
  4622         Reviewed by Oliver Hunt.
       
  4623 
       
  4624         Exported some new JavaScript heap introspection.
       
  4625 
       
  4626         * Misc/WebCoreStatistics.h:
       
  4627         * Misc/WebCoreStatistics.mm:
       
  4628         (+[WebCoreStatistics javaScriptObjectTypeCounts]): Just like
       
  4629         javaScriptProtectedObjectTypeCounts, except this function enumerates all
       
  4630         live objects, not just protected objects.
       
  4631 
       
  4632 2010-02-08  Maciej Stachowiak  <mjs@apple.com>
       
  4633 
       
  4634         Reviewed by Cameron Zwarich.
       
  4635 
       
  4636         Restore ENABLE_RUBY flag so vendors can ship with Ruby disabled if they choose.
       
  4637         https://bugs.webkit.org/show_bug.cgi?id=34698
       
  4638 
       
  4639         * Configurations/FeatureDefines.xcconfig:
       
  4640 
       
  4641 2010-02-09  Alexey Proskuryakov  <ap@apple.com>
       
  4642 
       
  4643         Reviewed by Geoffrey Garen.
       
  4644 
       
  4645         https://bugs.webkit.org/show_bug.cgi?id=34490
       
  4646         WebCore::ImageEventSender::dispatchPendingEvents() crashes in certain conditions
       
  4647 
       
  4648         * ForwardingHeaders/wtf/ValueCheck.h: Added.
       
  4649 
       
  4650 2010-02-10  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
       
  4651 
       
  4652         Reviewed by Kenneth Rohde Christiansen.
       
  4653 
       
  4654         Support frameset flattening
       
  4655         https://bugs.webkit.org/show_bug.cgi?id=32717
       
  4656 
       
  4657         Add support for enabling/disabling FrameSet Flattening on the Mac port.
       
  4658 
       
  4659         * WebView/WebPreferenceKeysPrivate.h:
       
  4660         * WebView/WebPreferences.mm:
       
  4661         (+[WebPreferences initialize]):
       
  4662         (-[WebPreferences isFrameSetFlatteningEnabled]):
       
  4663         (-[WebPreferences setFrameSetFlatteningEnabled:]):
       
  4664         * WebView/WebPreferencesPrivate.h:
       
  4665         * WebView/WebView.mm:
       
  4666         (-[WebView _preferencesChangedNotification:]):
       
  4667 
       
  4668 2010-02-09  Alexey Proskuryakov  <ap@apple.com>
       
  4669 
       
  4670         Reviewed by Anders Carlsson.
       
  4671 
       
  4672         https://bugs.webkit.org/show_bug.cgi?id=34771
       
  4673         A stray mouse moved event is sent to plug-ins after mouse exit
       
  4674 
       
  4675         * WebCoreSupport/WebFrameLoaderClient.mm: (NetscapePluginWidget::handleEvent): A mouseout
       
  4676         DOM event is dispatched while handling NSMouseMoved - but we shouldn't be sending a
       
  4677         mouse moved event to plug-ins at this point.
       
  4678 
       
  4679 2010-02-09  Shinichiro Hamaji  <hamaji@chromium.org>
       
  4680 
       
  4681         Reviewed by Darin Adler.
       
  4682 
       
  4683         Provide a way to get total number of pages to be printed
       
  4684         https://bugs.webkit.org/show_bug.cgi?id=34699
       
  4685 
       
  4686         * Misc/WebCoreStatistics.h:
       
  4687         * Misc/WebCoreStatistics.mm:
       
  4688         (-[WebFrame numberOfPages:pageWidthInPixels:]):
       
  4689 
       
  4690 2010-02-08  Alexey Proskuryakov  <ap@apple.com>
       
  4691 
       
  4692         Reviewed by Darin Adler.
       
  4693 
       
  4694         https://bugs.webkit.org/show_bug.cgi?id=34727
       
  4695         Assertion crashes and freezes when plug-in property access results in an exception
       
  4696 
       
  4697         * Plugins/Hosted/WebKitPluginClient.defs: Made PCSetProperty and PCRemoveProperty async.
       
  4698         A plug-in can call back whil processing this call (e.g. for NPN_SetException), so we need
       
  4699         to listen for messages while waiting for reply.
       
  4700 
       
  4701         * Plugins/Hosted/NetscapePluginHostProxy.mm:
       
  4702         (WKPCEvaluate): If there is no instance proxy, return KERN_FAILURE. This improves consistency
       
  4703         between method implementations, and leaves us with one less IPC call to make in failure case
       
  4704         (returning false with KERN_SUCCESS and returning KERN_FAILURE looks the same from plugin
       
  4705         host code).
       
  4706         (WKPCInvoke): Ditto.
       
  4707         (WKPCInvokeDefault): Ditto.
       
  4708         (WKPCGetProperty): Ditto.
       
  4709         (WKPCSetProperty): Send a reply once done.
       
  4710         (WKPCRemoveProperty): Ditto.
       
  4711         (WKPCHasProperty): If there is no instance proxy, return KERN_FAILURE.
       
  4712         (WKPCHasMethod): Ditto.
       
  4713         (WKPCEnumerate): Ditto.
       
  4714 
       
  4715 2010-02-08  Alexey Proskuryakov  <ap@apple.com>
       
  4716 
       
  4717         Reviewed by Anders Carlsson.
       
  4718 
       
  4719         <rdar://problem/6530010> OOP: Support NPN_SetException
       
  4720 
       
  4721         Tested by plugins/netscape-throw-exception.html (removed it from skipped list).
       
  4722 
       
  4723         * Plugins/Hosted/NetscapePluginHostProxy.mm:
       
  4724         (WKPCSetException):
       
  4725         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
       
  4726         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
       
  4727         (WebKit::globalExceptionString):
       
  4728         (WebKit::NetscapePluginInstanceProxy::setGlobalException):
       
  4729         (WebKit::NetscapePluginInstanceProxy::moveGlobalExceptionToExecState):
       
  4730         * Plugins/Hosted/ProxyInstance.mm:
       
  4731         (WebKit::ProxyInstance::invoke):
       
  4732         (WebKit::ProxyInstance::getPropertyNames):
       
  4733         (WebKit::ProxyInstance::fieldValue):
       
  4734         (WebKit::ProxyInstance::setFieldValue):
       
  4735         * Plugins/Hosted/WebKitPluginClient.defs:
       
  4736         Route exception string to a global that's checked after calling into plug-in (just like in
       
  4737         in-process case).
       
  4738 
       
  4739 2010-02-05  Kevin Decker  <kdecker@apple.com>
       
  4740 
       
  4741         Reviewed by Mark Rowe.
       
  4742 
       
  4743         https://bugs.webkit.org/show_bug.cgi?id=34661
       
  4744         <rdar://problem/7614067> REGRESSION (Safari 4.0-> Safari 4.0.4): NPP_SetWindow no longer sets a clipRect of (0,0,0,0) when it becomes hidden
       
  4745         
       
  4746         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
       
  4747         (-[WebHostedNetscapePluginView updateAndSetWindow]): When clipping out NPDrawingModelCoreAnimation plug-ins, provide a zero'd out clipRect.
       
  4748         * Plugins/WebBaseNetscapePluginView.h: Moved superviewsHaveSuperviews to the base class.
       
  4749         * Plugins/WebBaseNetscapePluginView.mm:
       
  4750         (-[WebBaseNetscapePluginView superviewsHaveSuperviews]): Added to the base class; extracted from WebNetscapePluginView.
       
  4751         (-[WebBaseNetscapePluginView shouldClipOutPlugin]): Added new method with code extracted from WebNetscapePluginView.
       
  4752         * Plugins/WebNetscapePluginView.mm:
       
  4753         (-[WebNetscapePluginView saveAndSetNewPortStateForUpdate:]): When clipping out NPDrawingModelCoreAnimation plug-ins, provide a zero'd out clipRect.
       
  4754 
       
  4755 2010-02-04  Mark Rowe  <mrowe@apple.com>
       
  4756 
       
  4757         Rubber-stamped by Dan Bernstein.
       
  4758 
       
  4759         Fix the ability to #include <WebKit/DOMFile.h>.
       
  4760 
       
  4761         * MigrateHeaders.make: Mark DOMBlob.h as a public header since the already-public DOMFile.h depends on it.
       
  4762 
       
  4763 2010-02-04  John Sullivan  <sullivan@apple.com>
       
  4764 
       
  4765         https://bugs.webkit.org/show_bug.cgi?id=34611
       
  4766         WebLocalizedString() could use an assertion that it is being called on the main thread
       
  4767 
       
  4768         Reviewed by Tim Hatcher.
       
  4769 
       
  4770         * Misc/WebLocalizableStrings.m: Removed.
       
  4771         * Misc/WebLocalizableStrings.mm: Copied from mac/Misc/WebLocalizableStrings.m.
       
  4772         Renamed to use .mm extension so it can include a C++ header.
       
  4773         (WebLocalizedString):
       
  4774         Added an assertion that this is being called on the main thread.
       
  4775 
       
  4776 2010-02-04  Dan Bernstein  <mitz@apple.com>
       
  4777 
       
  4778         Reviewed by Simon Fraser.
       
  4779 
       
  4780         REGRESSION (r53718): When scrolling a tall window by page, the overlap between pages is too big
       
  4781         https://bugs.webkit.org/show_bug.cgi?id=34371
       
  4782 
       
  4783         * WebView/WebFrameView.mm:
       
  4784         (-[WebFrameView _verticalPageScrollDistance]): Use Scrollbar methods instead of
       
  4785         constants, and cap the scroll distance.
       
  4786         (-[WebFrameView initWithFrame:]): Use Scrollbar::pixelsPerLineStep() instead of
       
  4787         cScrollbarPixelsPerLineStep.
       
  4788         (-[WebFrameView _horizontalPageScrollDistance]):Use Scrollbar methods instead of
       
  4789         constants, and cap the scroll distance.
       
  4790 
       
  4791 2010-02-01  Shinichiro Hamaji  <hamaji@chromium.org>
       
  4792 
       
  4793         Reviewed by Eric Seidel.
       
  4794 
       
  4795         Provide a way to get page number with layoutTestController
       
  4796         https://bugs.webkit.org/show_bug.cgi?id=33840
       
  4797 
       
  4798         * Misc/WebCoreStatistics.h:
       
  4799         * Misc/WebCoreStatistics.mm:
       
  4800         (-[WebFrame pageNumberForElement:element:pageWidth:]):
       
  4801 
       
  4802 2010-01-29  Gavin Barraclough  <barraclough@apple.com>
       
  4803 
       
  4804         Reviewed by Sam Weinig + Oliver Hunt.
       
  4805 
       
  4806         Bug 34346 - With JSC bindings, make processingUserGesture work with events in Isolated Worlds
       
  4807 
       
  4808         Pass processeing user gensture flag to media play/pause methods.
       
  4809 
       
  4810         * WebView/WebVideoFullscreenHUDWindowController.mm:
       
  4811         (-[WebVideoFullscreenHUDWindowController setPlaying:]):
       
  4812 
       
  4813 2010-02-01  Dan Bernstein  <mitz@apple.com>
       
  4814 
       
  4815         Reviewed by Anders Carlsson.
       
  4816 
       
  4817         <rdar://problem/7044385> Crash at NetscapePlugInStreamLoader::didReceiveResponse()
       
  4818 
       
  4819         The crash was caused by having two streams with a streamID of 1.
       
  4820 
       
  4821         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
       
  4822         (WebKit::NetscapePluginInstanceProxy::NetscapePluginInstanceProxy): Fixed a typo. Now
       
  4823         correctly increments m_currentURLRequestID to account for the manual stream.
       
  4824         (WebKit::NetscapePluginInstanceProxy::disconnectStream): If the stream is the manual stream,
       
  4825         null it out instead of trying to remove it from the map. Added an assertion.
       
  4826         (WebKit::NetscapePluginInstanceProxy::loadRequest): Added an assertion.
       
  4827 
       
  4828 == Rolled over to ChangeLog-2010-01-29 ==